question regarding nagios.cmd

Andreas Ericsson ae at op5.se
Tue Dec 6 01:00:53 CET 2005


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.38.0.html?&tx_netnagext_pi1[p_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                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click




More information about the Developers mailing list