question regarding nagios.cmd

enediel gonzalez enediel at hotmail.com
Tue Dec 6 03:48:16 CET 2005


Thanks a lot for your answer
I found a set of entries on nagios.log like the following ones

[1128627994] service_result_worker_thread(): poll(): EINTR (impossible)
[1128633624] service_result_worker_thread(): poll(): EINTR (impossible)

How I should interact with nagios in a safe way to avoid this kind of 
problem, I need to put some processes on debian that will configure 
automatically the shedule downtimes.

If the answer is well explained somewhere, please just send me the 
references to find it.

Best regards
Enediel
Linux user 398956
Debian GNU/Linux




>From: Andreas Ericsson <ae at op5.se>
>To: enediel gonzalez <enediel at hotmail.com>
>CC: nagios-devel at lists.sourceforge.net
>Subject: Re: [Nagios-devel] question regarding  nagios.cmd
>Date: Tue, 06 Dec 2005 01:00:53 +0100
>
>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
>_______________________________________________
>Nagios-devel mailing list
>Nagios-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-devel




-------------------------------------------------------
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