force "CURRENT SERVICE STATE" check

Andreas Ericsson ae at op5.se
Mon Feb 14 14:43:14 CET 2005


Leonardo Henrique Machado wrote:
> I noticed that nagios does a check on every services and hosts and
> outputs in the following format:
> ----------
> [1106359200] CURRENT SERVICE STATE: comp1;Usuarios;OK;HARD;1;Output
> [1106359200] CURRENT SERVICE STATE: comp2;Usuarios;OK;HARD;1;Output
> [1106359200] CURRENT SERVICE STATE: comp3;Usuarios;OK;HARD;1;Output
> [1106359200] CURRENT SERVICE STATE: comp4;Usuarios;OK;HARD;1;Output
> [1106359200] CURRENT SERVICE STATE: comp5;Usuarios;OK;HARD;1;Output
> -----------
> 
> I have 2 questions about it:
> 
> 1- When does CURRENT SERVICE STATE check occurs? At startup?

Yes.

> 2- How can I force nagios to output the CURRENT SERVICE STATE every 5
> minutes and redirect the output to file?
> 

Why would you want to? Nagios writes it every time the state changes and 
every time it rotates its logs. It's possible through a loadable 
NEB-module or some such, I expect.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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