nagios.cmd does not seem to work properly
Cedric Jeanneret
cedric.jeanneret at camptocamp.com
Thu May 6 16:38:45 CEST 2010
Hello,
We'd like to use nagios.cmd pipe to send some signals. According to the examples in documentation, we can do a simple thing like that :
/bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM;host1;1;1;1;Some One;Some Acknowledgement Comment\n" $now > $commandfile
The problem is, it seems it's not taken in account - no log in nagios.log, no message is printed in shell, and more over nagios doesn't seem to do anything.
I tested with an error inside the command, and it seems to be parsed:
[1273156151] Warning: Unrecognized external command -> SCHEDULE_HOST_SVC_CHECKs;fqdn;1273156151
but nothing else happens.
Is there a way to be sure that nagios do what we ask?
The main thing is:
- we're using NSCA plugin so that we have about 80 servers with their own nagios, sending results and status to a single host
- we tried to run this command only on remote hosts - maybe we have to use it on the nsca server ?
Any help is welcome.
Thank you in advance !
Best regards,
C.
--
Cédric Jeanneret | System Administrator
021 619 10 32 | Camptocamp SA
cedric.jeanneret at camptocamp.com | PSE-A / EPFL
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list