Hi all,
I need to check if processes are running on a linux machine with a custom parameter that executes the simple script :
TEST=$(ps auxw | grep $1 | grep -v grep | wc -l)
if [ $TEST -eq 1 ]
then
echo 1
else
echo 0
fi
But when i create the item, the only value returned is 0, and when i execute the script manually, it returns 1......
Here are the two relevant lines of my zabbix_agentd.conf :
Server=svtczabap01p,svtczabap02p,10.56.163.28
.....
UserParameter=was.check[*],/etc/zabbix/scripts/was_status.sh "$1"
ps : the server i use is 10.56.163.28 with RHEL5 and zabbix 1.6
thanks for your replies!!
I need to check if processes are running on a linux machine with a custom parameter that executes the simple script :
TEST=$(ps auxw | grep $1 | grep -v grep | wc -l)
if [ $TEST -eq 1 ]
then
echo 1
else
echo 0
fi
But when i create the item, the only value returned is 0, and when i execute the script manually, it returns 1......
Here are the two relevant lines of my zabbix_agentd.conf :
Server=svtczabap01p,svtczabap02p,10.56.163.28
.....
UserParameter=was.check[*],/etc/zabbix/scripts/was_status.sh "$1"
ps : the server i use is 10.56.163.28 with RHEL5 and zabbix 1.6
thanks for your replies!!

.
Comment