PDA

View Full Version : Problems with my own Checks


axel
23-09-2005, 08:21
Hi

I have some Problems with my own checks.
This are my Checks

UserParameter=viruses[count],grep viruses /tmp/zabbix.data |cut -d\ -f2
UserParameter=mailqueue[count],grep mailqueue /tmp/zabbix.data |cut -d\ -f2
UserParameter=checked[count],grep checked /tmp/zabbix.data |cut -d\ -f2
UserParameter=antispam[count],grep antispam /tmp/zabbix.data |cut -d\ -f2

i got for example 30 minutes data but after that my Item jumps to Unsupportet.



Example:
017430:20050923:082402 In check_security()
017430:20050923:082402 Connection from [xx.xx.xx.247]. Allowed servers [xx.xx.xx.247]
017430:20050923:082402 Before read()
017430:20050923:082402 After read() 2 [15]
017430:20050923:082402 Got line:viruses[count]
017430:20050923:082402 Sending back:ZBX_NOTSUPPORTED

some minutes before:
017432:20050923:082331 In check_security()
017432:20050923:082331 Connection from [xx.xx.xx.247]. Allowed servers [xx.xx.xx.247]
017432:20050923:082331 Before read()
017432:20050923:082331 After read() 2 [15]
017432:20050923:082331 Got line:viruses[count]
017432:20050923:082331 Sending back:2


And i have another question to the proc.num funktion.
At my local server the funktion works perfekt. But at some remote Server it is unsupportet. (same agent) i think i miss something what do i need to install that this funktion works correct ?

Alexei
23-09-2005, 09:15
Perhaps at some point /tmp/zabbix.data does not exist or is empty?

It may happen if you create it by doing something like:

echo "viruses[count]" >/tmp/zabbix.data

Do this instead:

echo "viruses[count]" >/tmp/zabbix.data.tmp
mv /tmp/zabbix.data.tmp /tmp/zabbix.data

axel
23-09-2005, 10:50
ok thx i try this