Status Information in to Logfile

Jim Avery jim at jimavery.me.uk
Mon Nov 8 18:16:22 CET 2010


On 8 November 2010 16:45,  <Matt.Garrett at shell.com> wrote:
> If a Service state is ok and its state has not changed from the last state
> it does not Log a message in the nagios.log file
>
> However for a external application we would like to be able to log all
> Service Information
>
>
>
> Tried looking in the nagios.cfg but all the logging options are set to 1 e.g
> on
>
>
>
> The only way we found so far was to make the plugin exit code 2 which then
> forces a log entry but would prefer to have normal exit 0


According to the documentation , you need to set the relevant
stalking_options in the service definition.  See:

http://nagios.sourceforge.net/docs/3_0/stalking.html

and

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service


I can't say I've ever tried it myself though.


Cheers,

Jim

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list