Build precise queries to find exactly what you need
Press ESC to close
1. Works fine with MB Size root@lankini:/usr/local/nagios/libexec# ./check_esx -H 172.16.16.51 -f authfile -l vmfs -s datastore1 -o used -w 67703 CHECK_ESX OK – Storages : ‘datastore1′(used)=67703 MB (61.79%) | datastore1=67703MB;67703;
3. not fine with % style root@lankini:/usr/local/nagios/libexec# ./check_esx -H 172.16.16.51 -f authfile -l vmfs -s datastore1 -o used -w 90 CHECK_ESX WARNING – Storages : ‘datastore1′(used)=67703 MB (61.79%) | datastore1=67703MB;90;
4. root@lankini:/usr/local/nagios/libexec# ./check_esx -H 172.16.16.51 -f authfile -l vmfs -s datastore1 -o used CHECK_ESX OK – Storages : ‘datastore1′(used)=67703 MB (61.79%) | datastore1=67703MB;;
PerfData structure Info :: http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
As per my understanding, ‘label’=value[UOM];[warn];[crit];[min];[max]
[ UOM is Unit of Measure ] 1.min and max are not required if UOM=% Here the script is using MBYTES
If the Script Can update the [min] and [max] fileds in the perf data output. Then We can use -w 90 ( % here) direclty to check on % basis Else We have to use like -w 67703 ( -w MBSize ). Giving size in MB for a number of DISK across different VM’s is complex. If it is % basis then it is straight forward.
Please help in modifying the script to update [MIN][MAX] with min and max values in MB.
Here is the Example of C: Drive Space Check, This works perfectly.
1. root@lankini:/usr/local/nagios/libexec# ./check_nt -H 172.16.32.38 -v USEDDISKSPACE -p 12489 -s nagios124 -l c -w 80 c: – total: 15.00 Gb – used: 13.83 Gb (92%) – free 1.16 Gb (8%) | ‘c: Used Space’=13.83Gb;12.00;0.00;0.00;15.00 2. root@lankini:/usr/local/nagios/libexec# ./check_nt -H 172.16.32.38 -v USEDDISKSPACE -p 12489 -s nagios124 -l c -c 90 c: – total: 15.00 Gb – used: 13.83 Gb (92%) – free 1.16 Gb (8%) | ‘c: Used Space’=13.83Gb;0.00;13.50;0.00;15.00 ‘LABEL’=UOM;Warning;Critical;mininum;maximum
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!