Updated every 90 seconds

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Updated every 90 seconds

Post 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 ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Updated every 90 seconds

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Updated every 90 seconds

Post 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 ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Updated every 90 seconds

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Updated every 90 seconds

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Updated every 90 seconds

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked