Add log analyzor for CentOS7

Change-Id: I75ffe7927c6f61a7d649d01df7d54c2b433e61f3
This commit is contained in:
Lei Lei 2015-03-04 15:12:00 -08:00
parent cc2bec05c7
commit 5c6b787407
1 changed files with 9 additions and 0 deletions

View File

@ -1,9 +1,18 @@
#set os_version = $getVar("profile_name","")
#if $str($getVar('anamon_enabled','')) == "1"
#if $getVar("compass_server", "") != ""
wget -O /tmp/anamon "http://$compass_server:$http_port/cobbler/aux/anamon"
#if 'CentOS-7' in os_version
python /tmp/anamon --watchfile "/tmp/syslog /tmp/anaconda.log /tmp/packaging.log" --name "$name" --server "$compass_server" --port "$http_port"
#else
python /tmp/anamon --name "$name" --server "$compass_server" --port "$http_port"
#end if
#else
wget -O /tmp/anamon "http://$server:$http_port/cobbler/aux/anamon"
#if 'CentOS-7' in os_version
python /tmp/anamon --watchfile "/tmp/syslog /tmp/anaconda.log /tmp/packaging.log" --name "$name" --server "$server" --port "$http_port"
#else
python /tmp/anamon --name "$name" --server "$server" --port "$http_port"
#end if
#end if
#end if