Afaik, you can change it. Write it to the external command file, var/rw/nagios.cmd, something like; [1208943268] PROCESS_SERVICE_CHECK_RESULT;<server name>;<service name>;0;<result from check>
You can read more about passive checks on http://nagios.sourceforge.net/docs/3_0/passivechecks.html and external command file on http://nagios.sourceforge.net/docs/3_0/configmain.html#command_file Kind regards, Mikael Schmidt IT-consultant IXX IT-Partner AB Helsingborgsv 60, 262 72 Ängelholm Tel: 0431 - 44 51 00 Fax: 0431 - 195 80 www.ixx.se -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yu Watanabe Sent: den 21 april 2008 05:44 To: [EMAIL PROTECTED] Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] About passive check Hello Thomas, I am planning to use this feature in the cluster environment. >It is pending when you start nagios, before a check is entered. >What is the use case? There may be another way to get the result you >desire. The idea is : 1. Enable active checks for servers that are in RUNNING status. 2. Disable active checks for servers that are in WAIT status. and set the Service Status "PENDING" ************************* Yu Watanabe Thomas Stocking さんは書きました: >No, that state is generated internally by Nagios. It is nagios-specific >(the service has not yet been checked), so logically, it does not make >sense to set it to this externally... >It is pending when you start nagios, before a check is entered. >What is the use case? There may be another way to get the result you >desire. >Thomas Stocking > >Yu Watanabe wrote: >> Hello, >> >> So , in other words, modifying the source code is necessary for >> this feature? >> >> I mean is there any external commands that changes the >> service status into PENDING? >> >> Yu Watanabe >> >> Marc Powell さんは書きました: >> >>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] [mailto:nagios-users- >>>> [EMAIL PROTECTED] On Behalf Of Yu Watanabe >>>> Sent: Friday, April 18, 2008 6:13 AM >>>> To: nagios-users@lists.sourceforge.net >>>> Subject: [Nagios-users] About passive check >>>> >>>> Hello >>>> >>>> I have a question regarding to passive check. >>>> >>>> Is there any way to change the service status into "PENDING" >>>> by using passive check? >>>> >>> Any way? Yes, modify the nagios source to add that feature. Already done >>> way? No, none that I've ever seen. >>> >>> -- >>> Marc >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> 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 >>> >>> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> 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 >> > > >NOTICE: This email is intended only for the use of the party to which it is >addressed and may contain information that is privileged, confidential, or >protected by law. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this email or its contents is strictly prohibited.If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You. > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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