[Linux-cluster] Nagios check

Maciej Bogucki maciej.bogucki at artegence.com
Mon Apr 7 10:01:09 UTC 2008


>> thanks a lot for your script. If you look at [1], i'm the guy that had
>> commented on that ;)
> :)))
> 
>> I don't seem to have /proc/cluster? is that a rhel4 specific thing
>> maybe? or do i need to load something first?
> 
> Yes, it is for rhel4. I don't have any rhel5 with GFS, so I can't help You.

Hello,

Here is the patch, now It should work with rhel5.

--- check_rhcs.original        2006-12-22 13:47:36.000000000 +0100
+++ check_rhcs    2008-04-07 11:59:23.000000000 +0200
@@ -27,13 +27,13 @@
        echo "UNKNOWN - $*"; exit 3
 }

-procfsf=/proc/cluster/services
+#procfsf="cman_tool services"

 if [ ! -f $procfsf ] ; then
        critical "RHCS not running"
 fi

-procfss=$(cat /proc/cluster/services)
+procfss=`cman_tool services`
 check_clvmd=$(echo "$procfss"|grep "^DLM Lock Space"|grep "clvmd"|head
-1|awk '{print $7}')
 check_dlm=$(echo "$procfss"|grep "^DLM Lock Space"|grep -v "clvmd"|head
-1|awk '{print $7}')
 check_fenced=$(echo "$procfss"|grep "^Fence Domain"|head -1|awk '{print
$6}')


Best Regards
Maciej Bogucki




More information about the Linux-cluster mailing list