Page 1 of 2

Interval Length & logs

Posted: Fri Jun 28, 2013 8:09 am
by TheSgrash
Hi all, I'm evaluating Nagios XI!
I'm interested in the lowest interval_length... I set the interval_length in nagios.cfg = 1... is there a way to lower it?
Which is the lowest interval between checks? 1 second?

and

Is there a log file from which I may read
[Time] Nagios made check XY on host XY
[Time] Nagios made check ZY on host YX
and so on?

Re: Interval Length & logs

Posted: Fri Jun 28, 2013 9:17 am
by slansing
You could enable freshness checking on the services, but this is NOT recommend for active checks, or in great amounts. You never want your checks that low if they as that will increase system load by quite a lot, and cause processing issues. You can view nagios's log at:

/usr/local/nagios/var/nagios.log

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 3:59 am
by TheSgrash
it is precisely my goal!
I want to test Nagios' performance (cpu/memory/bandwidth load) with a lot of services*hosts and a check period of a second or less
so it isn't possible to lower that value... mmm...

and regarding logs in nagios.log there isn't a log line for every check... how can i obtain that? or is there a way to read these informations without stressing the disk i/o?

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 9:22 am
by slansing
As I was saying, you could use freshness checking:

http://nagios.sourceforge.net/docs/3_0/freshness.html

You would use the freshness interval to define a check in seconds.

Yes, the nagios log should generally have all the check information, though some protocols have their own logs, the information should still pass through the nagios.log. What do you mean access without stressing I/O?? It is not very stressful to my knowledge.

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 10:54 am
by TheSgrash
at the moment i observe 1 host with 5 services every second... in the nagios.log i only see 5 checks... the others? i expect to see a line per second... am I wrong?

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 1:01 pm
by abrist
TheSgrash wrote: interval_length in nagios.cfg = 1
This setting should set your interval length to one second.
Are these active checks or passive checks?

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 4:19 pm
by TheSgrash
all active

Re: Interval Length & logs

Posted: Mon Jul 01, 2013 4:21 pm
by abrist
When are the next scheduled checks for said services?

Re: Interval Length & logs

Posted: Tue Jul 02, 2013 3:29 am
by TheSgrash
the web interface says in 5 seconds and, if I wait, it do it
but I can only suppose it because there isn't a trace in the logs

Re: Interval Length & logs

Posted: Tue Jul 02, 2013 4:35 am
by TheSgrash
maybe this can help:
these are last entries from my nagios.log:

Code: Select all

[1372761253] Auto-save of retention data completed successfully.
[1372763053] Auto-save of retention data completed successfully.
[1372764853] Auto-save of retention data completed successfully.
[1372766653] Auto-save of retention data completed successfully.
[1372768453] Auto-save of retention data completed successfully.
[1372770253] Auto-save of retention data completed successfully.
[1372772053] Auto-save of retention data completed successfully.
[1372773853] Auto-save of retention data completed successfully.
[1372775653] Auto-save of retention data completed successfully.
[1372777453] Auto-save of retention data completed successfully.