cancel
Showing results for 
Search instead for 
Did you mean: 

Nagios monitoring on Linux.

SOLVED
Go to solution
Silver_1
Regular Advisor

Nagios monitoring on Linux.

Hi,

We have a farm of Linux servers and we have Nagios to monitor them.

Anybody know how can i change the load average notification. I want nagios to send alerts only when the load average is more than 25.

Any help is appreciated.
3 REPLIES
Sung Oh
Respected Contributor

Re: Nagios monitoring on Linux.

Hi,

look under notification section for your notification configuration.

http://nagios.sourceforge.net/download/contrib/documentation/english/Nagios_2_0_Docs.pdf

Regards,
Sung
Arno Kuyper_1
Trusted Contributor
Solution

Re: Nagios monitoring on Linux.

Hi Silver

It depents on what you have set your notification. You have 2 options in the standard check_load script W (warning) and C (critical). You can first try it on the commandline the syntax is (from /usr/local/nagios/libexec)
nagios:# ./check_load -w a,b,c -c x,y,z
where a,b,c and x,y,z are the values for 1,5 and 15 minute loads. So for your 25 on Critical try: ./check_load -w 20,10,5 -c 25,20,10. If it works for you than you can set these values in your services configfile

Check this site for some explaination on load:
http://www.teamquest.com/resources/gunther/display/5/index.htm

It's a complicated calculation....

Hope it helps,

Arno
Bill Thorsteinson
Honored Contributor

Re: Nagios monitoring on Linux.

If you never want warnings below 25
try options something like.
check_load -w 25,25,25 -c 35,30,30.
Howerver the previous entry may be more
appropriate as sustained load of 25 may
indicate problems. I would consider any
load average of 25 indicative of problems.

If this is a bunch of batch processes
running at the same time, spread the load.
On a mail server, investiage the option
to return a temporary unable response
for incomming mail if load is too high.

Check the definition in services.cfg and
see if the load average is set there.
If so it gives you more flexibility in
setting the limits by server.