Interval Length & logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Interval Length & logs

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Interval Length & logs

Post 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
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Re: Interval Length & logs

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Interval Length & logs

Post 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.
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Re: Interval Length & logs

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

Re: Interval Length & logs

Post 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?
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.
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Re: Interval Length & logs

Post by TheSgrash »

all active
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Interval Length & logs

Post by abrist »

When are the next scheduled checks for said services?
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.
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Re: Interval Length & logs

Post 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
TheSgrash
Posts: 8
Joined: Fri Jun 28, 2013 8:07 am

Re: Interval Length & logs

Post 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.
Locked