Cedric Jeanneret wrote: > 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. > > Enable the nagios debug ( see bottom of nagios.cfg file ) and test again what you insert . Although the nagios debug file fills up and grows quite fast so you need to make sure to have sufficient space to have the input you want .
from what I know - external commands are logged in the nagios log - again check the option in the nagios.cfg Assaf -- Never,Ever Cut A Deal With a Dragon I am doing a Charity Bike ride On the 27 of June for the Capital to Coast Charity. Please help by Donating http://www.justgiving.com/Lovefilm-capital-to-coast ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users@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