Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This is a plugin designed using Bash script. This plugin is created so that 'Performance Gauges' in Nagios XI work properly, showing appropriate 'Warning' and 'Critical' regions.
Current Version
1.0
Last Release Date
September 17, 2014
Owner
Mandar Shinde
Website
http://www.yourownlinux.com/2014/09/nagios-bash-plugin-to-monitor-load-average-on-linux-server.html
Download URL
http://goo.gl/zvk9YF
Compatible With
For Performance Gauges to show details properly, performance data should be in following format:
'VarName'=CurrentValue Unit;WarningValue;CriticalValue;MininumValue;MaximumValue
Important:
1. It uses the output of 'uptime' command.
2. Warning and Critical thresholds are 80% and 90% of the total number of processor cores.
For Ex: If you are using 16 core processor, Warning threshold will be 80% of 16 i.e. '12.8' and Critical threshold will be 90% of 16 i.e. '14.4'
3. If the calculated value, may it be 1 min load, 5 min load or 15 min load, exceeds the thresholds, status will be set accordingly (OK, WARNING or CRITICAL).
How To Use:
To monitor remote Linux server:
1. Keep the plugin in /usr/local/nagios/libexec directory.
2. Add following line to the nrpe.cfg file:
command[check_loadaverage.sh]=sudo /usr/local/nagios/libexec/check_loadaverage.sh
3. Add the following line to /etc/sudoers file:
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_loadaverage.sh
Usage:
On Monitoring Server:
./check_nrpe -H 128.9.45.13 -c check_loadavg.sh
Output:
OK- Load Average: 0.09, 0.05, 0.01 | load1=0.09;6.4;7.2;; load5=0.05;6.4;7.2;; load15=0.01;6.4;7.2;;
very nice way to auto get the number of process and setup the warning / critical threshold! my output: bash check_load.sh OK- Load Average: 0.00, 0.00, 0.00 | load1=0.00;3.2;3.6;; load5=0.00;3.2;3.6;; load15=0.00;3.2;3.6;; great work cheers
You must be logged in to submit a review.
To:
From: