Page 1 of 1

Nagios can know how much time has been down the devices?

Posted: Wed Jul 15, 2015 2:26 pm
by Jessuzz94
For example, if nagios is monitoring one site with servers, and the energy shut down all servers and the nagios server, when it restart, in the reports nagios can view the information about the down time of the servers monitored?, or lost the information when it shutdown too?

Re: Nagios can know how much time has been down the devices?

Posted: Wed Jul 15, 2015 3:14 pm
by jdalrymple
Availability report. It's on the status page for each host and service.

Re: Nagios can know how much time has been down the devices?

Posted: Wed Jul 15, 2015 3:45 pm
by Jessuzz94
Yeah, i think it doesnt work, i put a test: i shut down the switch for some minutes and i did the "Trends" report and work

But i do another test,i shutted down nagios server and the switch monitored, so, i wanted that nagios report the time that the switch was down, but it doesnt did. its like was up all time, i think if nagios is down it cant report the informations of the time states :c

Re: Nagios can know how much time has been down the devices?

Posted: Wed Jul 15, 2015 4:23 pm
by jdalrymple
This is most likely due to your retry_interval and max_check_attempts. A host isn't down until it's in a HARD down state. If it stays SOFT it won't show up as an outage on the availability report just because we assume it was a "hiccup" - hence max_check_attempts purpose.

Re: Nagios can know how much time has been down the devices?

Posted: Thu Jul 16, 2015 11:43 am
by Jessuzz94
how can i configure the objects definitions for the host to do the inmediatly hard state when the host downs?

Re: Nagios can know how much time has been down the devices?

Posted: Thu Jul 16, 2015 2:44 pm
by jdalrymple
set max_check_attempts to 1:
max_check_attempts: This directive is used to define the number of times that Nagios will retry the host check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the host check. Note: If you do not want to check the status of the host, you must still set this to a minimum value of 1. To bypass the host check, just leave the check_command option blank.

Re: Nagios can know how much time has been down the devices?

Posted: Thu Jul 16, 2015 3:06 pm
by Jessuzz94
Oh okay, i will test!, very thanks!, i will read the objects definitions

Re: Nagios can know how much time has been down the devices?

Posted: Thu Jul 16, 2015 3:17 pm
by jdalrymple
No problem. Here is a link to all the object definitions:

http://nagios.sourceforge.net/docs/nagi ... tions.html is the objects definition page - however sourceforge is having issues at the moment so it may not be available until they get their problems resolved.

Is it OK to lock this thread?

Re: Nagios can know how much time has been down the devices?

Posted: Thu Jul 16, 2015 3:49 pm
by Jessuzz94
Yeah is saw that is no connection, yes, thanks!