Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

svissa

Reviews(3)
bysvissa, August 15, 2012
Hey, This helped me a lot.

This didn't worked for me, i have changed the first 2 lines, then it worked like a charm..

ADDRESS=$(echo ${QUERY_STRING} | grep -oE "address=.*" | cut -f 1 -d "&" | cut -f 2 -d "=" | head -n1)
HOST=$(echo ${QUERY_STRING} | grep -oE "(^|[?&])host=.+" | cut -f 2 -d "=" | head -n1)

Thanks,
Sri
bysvissa, May 26, 2012
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
bysvissa, May 23, 2012
hi,

How to check file freshness on Remote SMB/Windows Shares ?
Owner's reply

The plugin *should* work for any directory structure that exists in the local filesystem. Haven't tested it specifically with something like NFS, and I've never used Samba, so can't speak to that.