check_snmp_process unknown state
Posted: Mon Feb 13, 2012 3:35 am
Hello,
Several times per day I get an unknown state from all my check_snmp_processes checks. This started after I enabled the memory and cpu part.
When it returns an unknown state the service returns this: 11 process matching apache2 (> 0), Mem : 8.2Mb OK, No data for CPU (1 line(s)):UNKNOWN.
I checked the tmp file and it seems to have been wiped.
root@xena:/tmp# cat tmp_Nagios_proc.192.168.100.13.apache2
1329121305:2309
I can't find anywhere in check_snmp_process.pl that it deletes the file so I guess that would mean that it somehow fails to read the old values and when it is to write a new tmp file it only has the current value to write down which would explain why it only contains one line.
After 5 new checks it returns to an OK state.
Have anyone experienced this and have a solution?
Regards
Magnus
Several times per day I get an unknown state from all my check_snmp_processes checks. This started after I enabled the memory and cpu part.
When it returns an unknown state the service returns this: 11 process matching apache2 (> 0), Mem : 8.2Mb OK, No data for CPU (1 line(s)):UNKNOWN.
I checked the tmp file and it seems to have been wiped.
root@xena:/tmp# cat tmp_Nagios_proc.192.168.100.13.apache2
1329121305:2309
I can't find anywhere in check_snmp_process.pl that it deletes the file so I guess that would mean that it somehow fails to read the old values and when it is to write a new tmp file it only has the current value to write down which would explain why it only contains one line.
After 5 new checks it returns to an OK state.
Have anyone experienced this and have a solution?
Regards
Magnus