Hi Ethan.
Sorry for bothering but im having problems with Nagios 1.1 and external
commands. This wasnt happening with Nagios 1.0. I have submited with
success external commands using the nagios.cmd file, they appear in the
log, but sometimes they are not processed. For example, if i submit two
external commands, one saying that a service is in warning state and the
other that it is OK, although both appear in /var/log/messages sometimes
just the first generates a SERVICE ALERT and calls an event handler.
I have looked at CVS and i read something about external commands
bugfix... my question is if this bugfix will solve my problem and if so,
can i apply a quick patch in Nagios 1.1 to fix this? If this isnt
linear, should i downgrade to version 1.0?
If you want some logs, please find them bellow (see service SMS_IA on
host bill and you can see that the SERVICE ALERT just occurs once).
Best regards,
Sergio Freire
[root@bill1 etc]# cat /var/log/messages| grep "Jul 9 02:00" | grep
nagios
Jul 9 02:00:02 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:02 bill1 nagios: Warning: The results of service 'GWUCP_SM'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:02 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_OO;3;SMS_OO OK
Jul 9 02:00:02 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_IA;3;SMS_IA OK
Jul 9 02:00:17 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core' are stale by 3 seconds (threshold=47 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:17 bill1 nagios: Warning: The results of service
'GWFSK_TTS' on host 'fsk' are stale by 5 seconds (threshold=45
seconds). I'm forcing an immediate check of the service.
Jul 9 02:00:17 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_OO;0;SMS_OO STOP
Jul 9 02:00:22 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_IA;0;SMS_IA STOP
Jul 9 02:00:27 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill2' are stale by 5 seconds (threshold=45
seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:27 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 5 seconds (threshold=45
seconds). I'm forcing an immediate check of the service.
Jul 9 02:00:27 bill1 nagios: Warning: The results of service 'GWUCP_IO'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:37 bill1 nagios: SERVICE ALERT:
sva2;PING;WARNING;HARD;1;PING WARNING - Packet loss = 40%, RTA = 12.55
ms
Jul 9 02:00:37 bill1 nagios: SERVICE EVENT HANDLER:
sva2;PING;WARNING;HARD;1;handler_smsc
Jul 9 02:00:37 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill1' are stale by 5 seconds (threshold=45
seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:37 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:37 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core_timor' are stale by 5 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:00:47 bill1 nagios: SERVICE ALERT:
core;CORE_IO;OK;HARD;3;Status is OK
Jul 9 02:00:47 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;OK;HARD;3;handler_smsc
Jul 9 02:00:48 bill1 nagios: SERVICE ALERT:
sva;PING;WARNING;HARD;1;PING WARNING - Packet loss = 20%, RTA = 21.58 ms
Jul 9 02:00:48 bill1 nagios: SERVICE EVENT HANDLER:
sva;PING;WARNING;HARD;1;handler_smsc
Jul 9 02:00:57 bill1 nagios: Warning: The results of service 'GWFSK_IO'
on host 'fsk' are stale by 25 seconds (threshold=45 seconds). I'm
forcing an immediate check of the service.
Jul 9 02:01:07 bill1 nagios: SERVICE ALERT: sva2;PING;OK;HARD;1;
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]