Re: Nagios check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> 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

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux