Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Plugin to check storage's performance. It doesn't need any extra libraries.
Current Version
1.3
Last Release Date
2019-01-25
Owner
Enzo Medina
License
GPL
Compatible With
This plugin checks several metrics returned by the "lssystemstats" command. In general, it checks all lines that have a percentage value: cpu, compression cpu, write cache, total cache. Plus, latency is calculated as the máximum latency value. Thresholds levels can be adjusted, just edit the plugin. It also adds some other metric to the performance part of the result, so they can be graphed with Nagios XI.
Setup: 1.- Login to Nagios Server with nagios user. 2.- Generate a SSH key. 3.- Login to v7000, create a nagios user and attach the public SSH key to it. 4.- Copy the plugin to Nagios Server: /usr/local/nagios/libexec/check_ibm_v7000_perf.sh 5.- Test it: /usr/local/nagios/libexec/check_ibm_v7000_perf.sh -H 192.168.1.100 -K /home/nagios/.ssh/id_rsa 6.- Create a command in nagios: define command { command_name check_v7000_performance command_line $USER1$/check_ibm_v7000_perf.sh -H $HOSTADDRESS$ -K /home/nagios/.ssh/id_rsa }
Any suggestions will be appreciated.
- Contributors - Andrew Haji carlinhos700 npx
Add UNKNOWN state when the query fail elif [[ -z $CPU_PC ]] || [[ -z $COMPRESSION_CPU_PC ]] || [[ -z $WRITE_CACHE_PC ]] || [[ -z $TOTAL_CACHE_PC ]] || [[ -z $BIGGEST_LATENCY ]]; then FINAL_STATUS="UNKNOWN" RETURN_STATUS=$STATE_UNKNOWN
As stated in the dev guidelines (https://nagios-plugins.org/doc/guidelines.html#AEN200) I had to change the following line to include spaces between each performance data otherwise it would only graph the first entry (CPU). PERFORMANCE="cpu=$CPU_PC; comp_cpu=$COMPRESSION_CPU_PC; wcache=$WRITE_CACHE_PC; tcache=$TOTAL_CACHE_PC; latency=$BIGGEST_LATENCY" 146 PERFORMANCE="$PERFORMANCE; fc_mb=$FC_MB; fc_io=$FC_IO; sas_mb=$SAS_MB; sas_io=$SAS_IO; iscsi_mb=$ISCSI_MB; iscsi_io=$ISCSI_IO"
You must be logged in to submit a review.
To:
From: