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 ?
You do, of course, have to run this on the Nagios server, since that's where the pipe is. The message in your log seems to indicate you typo'd the SCHEDULE_HOST_SVC_CHECK command. If you're using NSCA, your pipe works: it submits commands to Nagios the same way. ------------------------------------------------------------------------------ _______________________________________________ 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