Re: [Nagios-devel] question regarding nagios.cmd

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] question regarding nagios.cmd

Post by Guest »

enediel gonzalez wrote:
> Hello
>
> I'm using nagios Nagios 2.0b3 on debian sarge
>
> Reviewing the scripts for recurrent downtime available on
> www.nagiosexchange.org I could insert some schedule downtime on nagios.
>
> But even when I declared downtimes on the near future, let's say in 2
> hours, I executed the scripts (manually), I checked on the nagios
> interface and I saw the new entries on nagios !perfect!,
> I deleted all entries on the nagios interface after, and (for testing
> purposes) I tried to execute the same process several times (in the same
> order described, inserting, deleting).
>
> Nagios never had duplicated entries for scheduled downtimes, but came
> the moment when the same script used in my test did not modify the
> nagios configuration anymore.
>
> specifically I was trying to execute downtime_job.pl available on
> http://www.nagiosexchange.org/Downtimes ... _view]=363
>
>
> and properly configured
> the script didn't returned me any error, no logs,neither nagios.
>
> I checked the file permissions for nagios.cmd,
> I executed the script using the root's account,
> also
> chmod 777 /usr/local/nagios/var/rw (for testing purposes)
>
>
> ?Is something specific on nagios that doesn't allow me test this way?
> I'll appreciate any answer
>

grep your nagios.log for 'poll()' or some such. If polling the
command-pipe errors out it won't re-open or be able to read it any more.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked