<DIV> </DIV>
<DIV>Thanks Marc, </DIV>
<DIV> </DIV>
<DIV>I actually found that same document during my search and it worked out well. Now </DIV>
<DIV>to the root of the reason why I needed to enable external commands. I have a host that was going up and down all throughout the weekend due to power issues. This host is now up </DIV>
<DIV>and functioning, yet nagios is still reporting it as being down. I just ran the check again </DIV>
<DIV>manually through the web interface, and it's still reporting the host as down. I can ping </DIV>
<DIV>the host fine from the box that nagios is running on, all other hosts are showing fine. It's </DIV>
<DIV>just this one host. Is there some kind of cache or anything that I might need to clear </DIV>
<DIV>in order to correct this issue? <BR><BR><B><I>Marc Powell <marc@ena.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Does the /usr/local/nagios/var/rw directory exist and have permissions<BR>such that nagios (and also your web server) can write to it? I do not<BR>believe that directory is created by the nagios install as it's just a<BR>suggested location so you would need to create it yourself.<BR><BR>http://nagios.sourceforge.net/docs/1_0/commandfile.html might be useful.<BR><BR>--<BR>Marc<BR><BR>> -----Original Message-----<BR>> From: Sxan [mailto:sxanrr@yahoo.com]<BR>> Sent: Monday, July 11, 2005 9:41 AM<BR>> To: Sxan; Marc Powell; nagios-users@lists.sourceforge.net<BR>> Subject: RE: [Nagios-users] check_external_commands option<BR>> <BR>> <BR>> <BR>> Update:<BR>> <BR>> I apologize, but I must have just missed seeing it in the log file.<BR>You<BR>> are correct about the<BR>> error with Nagios and the nagios.cmd file. Here is the error in
 the<BR>log...<BR>> <BR>> [1121088502] Error: Could not create external command file<BR>> '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No suc<BR>> h file or directory. If this file already exists and you are sure<BR>that<BR>> another copy of Nagios is not running, you should del<BR>> ete this file.<BR>> [1121088502] Bailing out due to errors encountered while trying to<BR>open<BR>> the external command file for reading... (PID=3627)<BR>> <BR>> So is this a common error with an easy fix? I'm going to be googling<BR>for<BR>> the resolution and checking the faq's, but any replies would still be<BR>> appreciated. Thanks!<BR>> <BR>> Sxan <SXANRR@YAHOO.COM>wrote:<BR>> <BR>> <BR>> <BR>> Thanks for the reply, as far as what you suggested, I checked<BR>the<BR>> log and<BR>> there are no errors in there that are outside the scope of the<BR>> normal notifications<BR>> that Nagios gives. Does using the external
 commands require that<BR>it<BR>> be configured<BR>> in more places than just the nagios.cfg? I'm guessing that maybe<BR>I'm<BR>> missing<BR>> some other variable that the external command checking depends<BR>on or<BR>> something.<BR>> Thanks again for the reply and help.<BR>> <BR>> Marc Powell <MARC@ENA.COM>wrote:<BR>> <BR>> <BR>> <BR>> > -----Original Message-----<BR>> > From: nagios-users-admin@lists.sourceforge.net<BR>> [mailto:nagios-users-<BR>> > admin@lists.sourceforge.net] On Behalf Of Sxan<BR>> > Sent: Friday, July 08, 2005 9:36 AM<BR>> > To: nagios-users@lists.sourceforge.net<BR>> > Subject: [Nagios-users] check_external_commands option<BR>> ><BR>> ><BR>> > Hey all,<BR>> ><BR>> > I have a question regarding the<BR>check_external_commands<BR>> option in the<BR>> > nagios.cfg<BR>> > file. Basically, I tried to schedule some downtime,<BR>saw that<BR>> I
 needed<BR>> to<BR>> > have that<BR>> > option enabled, so I went into the nagios.cfg file and<BR>> changed the 0<BR>> to a<BR>> > 1 for that line<BR>> > like it is below:<BR>> ><BR>> > check_external_commands=1<BR>> ><BR>> > I saved the .cfg and now when I try and restart<BR>nagios, it<BR>> won't<BR>> start. I<BR>> > just get:<BR>> ><BR>> > honda:/usr/local/nagios/etc # sh /etc/init.d/nagios<BR>restart<BR>> > Running configuration check...done<BR>> > Stopping network monitor: nagios<BR>> > Starting network monitor: nagios<BR>> > PID TTY TIME CMD<BR>> > honda:/usr/local/nagios/etc #<BR>> ><BR>> > If I run the following<BR>> > ..../nagios/etc/../bin/nagios -v nagios.cfg Everything<BR>> checks out ok<BR>> with<BR>> > just a couple warnings<BR>> > that have been there before. Am I missing something<BR>else I<BR>> should be<BR>> >
 doing? Like perhaps<BR>> > specifying somewhere in the configs who has the right<BR>to run<BR>> external<BR>> > commands? Thanks.<BR>> <BR>> Did you check nagios.log? Chances are that nagios isn't<BR>able<BR>> to actually<BR>> create the command pipe (nagios.cmd) in the path<BR>specified by<BR>> command_file in nagios.cfg.<BR>> <BR>> --<BR>> Marc<BR>> <BR>> <BR>> -------------------------------------------------------<BR>> This SF.Net email is sponsored by the 'Do More With<BR>Dual!'<BR>> webinar happening<BR>> July 14 at 8am PDT/11am EDT. We! invite you to explore<BR>the<BR>> latest in dual<BR>> core and dual graphics technology at this free one hour<BR>event<BR>> hosted by HP,<BR>> AMD, and NVIDIA. To register visit<BR>> http://www.hp.com/go/dualwebinar<BR>> _______________________________________________<BR>> Nagios-users mailing list<BR>>
 Nagios-users@lists.sourceforge.net<BR>><BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>> ::: Please include Nagios version, plugin version (-v)<BR>and OS<BR>> when reporting any issue.<BR>> ::: Messages without supporting info will risk being<BR>sent to<BR>> /dev/null<BR>> <BR>> <BR>> <BR>> ________________________________<BR>> <BR>> Yahoo! Mail for Mobile<BR>> Take Yahoo! Mail with you!<BR>> <HTTP: evt="31132/*http://mobile.yahoo.com/learn/mail" us.rd.yahoo.com><BR>> Check email on your mobile phone.<BR>> <BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam protection around<BR>> http://mail.yahoo.com<BR><BR><BR>-------------------------------------------------------<BR>This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening<BR>July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual<BR>core and dual
 graphics technology at this free one hour event hosted by HP,<BR>AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar<BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>::: Messages without supporting info will risk being sent to /dev/null<BR></BLOCKQUOTE><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com