Host and/or Service availability report

Marc Powell marc at ena.com
Mon Jul 31 16:33:31 CEST 2006


Only if nagios can determine what the initial state was. Normally,
nagios does not log the first check of a host or service, only when it
changes state. As such, when you run reporting now, nagios is probably
showing the states as undetermined because it doesn't have anything in
the logs to use to determine initial state (unless your selected host or
service has changed state since restart). That's why you need to specify
an initial assumed state and what that state should be (OK).
Alternately, enabling the 'log_initial_states' option in nagios.cfg and
restarting will log the first check for everything and therefore provide
you with that initial state from that time forward. This is the same
behavior you would have seen when you first installed nagios.

--
Marc

> -----Original Message-----
> From: Justin Craig [mailto:jrcraig.email at gmail.com]
> Sent: Monday, July 31, 2006 8:26 AM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Host and/or Service availability report
> 
> Okay that's fine, but if I go to a host a view availability, shouldn't
the
> time from when nagios started to current time be refected here?
> 
> Justin
> 
> 
> On 7/31/06, Marc Powell <marc at ena.com> wrote:
> 
> 	I indicated that the Axe approach would removed all history. --
> 
> 	"Axe: stop nagios; remove nagios.log ; start nagios; remove
> archives/*.
> 	       *******That will remove all history for all hosts and
> 	services*******"
> 
> 	You'll likely need to use Assumed States for your availability
> reports
> 	until the initial state data gets re-populated.
> 
> 	--
> 	Marc
> 
> 	> -----Original Message-----
> 	> From: Justin Craig [mailto:jrcraig.email at gmail.com]
> 	> Sent: Monday, July 31, 2006 7:29 AM
> 	> To: Marc Powell
> 	> Subject: Re: [Nagios-users] Host and/or Service availability
> report
> 	>
> 	> Thanks Marc, I cleared the logs and al lthe old data was
purged.
> I
> 	> started Nagios again and now it's not reporting availablity on
any
> 	hosts?
> 	>
> 	> Justin
> 	>
> 	>
> 	> On 7/28/06, Marc Powell <marc at ena.com> wrote:

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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