/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/nagios-ndpf-sensors/scripts/check_wms_load_monitor
ViewVC logotype

Contents of /trunk/nl.nikhef.ndpf.tools/nagios-ndpf-sensors/scripts/check_wms_load_monitor

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2465 - (show annotations) (download)
Thu Dec 15 15:30:24 2011 UTC (10 years, 1 month ago) by ronalds
File size: 526 byte(s)
0.3.20 - added check_wms_load_monitor
1 #!/bin/sh
2
3 OK=0
4 WARN=1
5 CRITICAL=2
6 UNKNOWN=3
7
8 out=`/opt/glite/sbin/glite_wms_wmproxy_load_monitor --oper jobSubmit \
9 --load1 10 --load5 10 --load15 10 \
10 --memusage 90 --swapusage 10 --diskusage 95 \
11 --fdnum 1000 --jdnum 1500 --ftpconn 300 2>&1`
12 res=$?
13
14 case $res in
15 1) retval=$WARN
16 msg="WARNING: WMS is not accepting submissions\n$out"
17 ;;
18 0) retval=$OK
19 msg="OK: WMS is accepting submissions\n$out"
20 ;;
21 *) retval=$UNKNOWN
22 msg="UNKNOWN: unexpected return value $res\n$out"
23 ;;
24 esac
25
26 echo -e "$msg"
27 exit $retval
28

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28