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 25, 2014
Owner
Mandar Shinde
Website
http://www.yourownlinux.com/2014/09/nagios-bash-plugin-to-monitor-cpu-utilization-on-linux-server.html
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 'sar' command. 2. Warning and Critical thresholds are 80% and 90% for %user, %system, % nice, %iowait and %steal time. 3. Warning and Critical thresholds for %idle time makes no sense.
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_cputime.sh]=sudo /usr/local/nagios/libexec/check_cputime.sh
3. Add the following line to /etc/sudoers file:
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_cputime.sh
Usage:
On Monitoring Server:
./check_nrpe -H 128.9.45.13 -c check_cputime.sh
Output:
OK- %user=8.03%, %nice=0.00%, %system=21.07%, %iowait=0.00%, %steal=0.00%, %idle=70.90% | '%user'=8.03%;80;90;0;100 '%nice'=0.00%;80;90;0;100 '%system'=21.07%;80;90;0;100 '%iowait'=0.00%;80;90;0;100 '%steal'=0.00%;80;90;0;100 %idle=70.90%;;;0;100
You must be logged in to submit a review.
To:
From: