Linux

check_loadaverage

Description:

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

Compatible With

  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

Download URL


Project Files
Project Photos
Project Notes
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;;
Reviews (1) Add a Review
great
by xoroz, September 30, 2018

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



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (3)
Favorites
0
Views
22,854