Page 1 of 1

Updated every 90 seconds

Posted: Fri Jan 18, 2013 8:03 am
by MPIvan
Hi,

I'd like to decreasing the default seconds used to refresh all the views on
nagios.

Actually I read: "Updated every 90 seconds"

so if i change something, that change i like to see it immediately. Or if something is change like i wrote up there, if some port is down i would like to see that status change immediately.

any idea ?

Re: Updated every 90 seconds

Posted: Tue Jan 22, 2013 2:59 pm
by abrist
You could alter the cgi.cfg refresh rate:
From:

Code: Select all

refresh_rate=90
To:

Code: Select all

refresh_rate=30
(or less)

This could have a negative impact on large installations if the refresh is less then the time it takes to update the cgi.

Reference the following doc for all cgi.cfg options.
http://nagios.sourceforge.net/docs/3_0/configcgi.html

Re: Updated every 90 seconds

Posted: Fri Jan 25, 2013 3:42 am
by MPIvan
Tnx abrist for the reply.

It works ok it refresh the page after the time i gave but this not solve my problem (i think this was it but i was wrong), and that is, when there is a change, i don't see that change immediately and i was think that this change will do the think. I have installed and configured Nagios on Ubuntu Server and for now i have monitor one cisco router ... and the thing is that if there is a link down i dont see immediately that change ... is there a way to do this faster ... to see that change of the status faster ?

Re: Updated every 90 seconds

Posted: Fri Jan 25, 2013 2:14 pm
by sreinhardt
It sounds like you should either alter the check periods to a faster interval, or implement snmp traps for that cisco device. Then you would be able to have the cisco device send you a notification immediately upon port link changes.

snmptt plugin

Re: Updated every 90 seconds

Posted: Mon Jan 28, 2013 10:49 am
by MPIvan
Hi sreinhardt
im not sure that i do the right thing but i change the check_period in nagios.cfg file and also i found other intervals to change like
check_host_freshness=0
host_freshness_check_interval=60
check_service_freshness=1
service_freshness_check_interval=60
the timeout value:
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
but still nothing i have no fast response, and maybe i have to synchronize the times between timeout freshness and other times ... like if the port is down (steel i dont have read all the nagios.cfg file) maybe there is a period of time to check if the port is really down and if its from down to up state there is a period to check that. And of course i talk about all services not just for port status and SNMP ... i will try the with the Trap now and see what will happen. But i dont think that will help because even if the nagios know about the change maybe there be a some period to show it to me ...

sure if you have some solution pls sharing with us ... of course i will do the same

Re: Updated every 90 seconds

Posted: Mon Jan 28, 2013 11:21 am
by abrist
The state change will not be immediate if Nagios has yet to check the service and change the state. You will need to reduce the check time on the service and reduce the timeout value. Again, in large installations, reducing either too much will lead to unexpected behavior.