On Jan 2, 2008, at 8:48 PM, Thomas Glanzmann wrote:
Hello,
I just hacked up a crm nagios plugin which works for me. It does not
check "crm_verify -LV" but I am going to add that. I don't like it
very
much but it does a good job for me. Is there a way to get the
informations I currently check out of "cibadmin -o status -Q" or
something like that in a way that I don't have to do wild guessing on
the output of "crm_mon -1 -r"?
There is a pe_status library which contains an API for querying the
current state of the cluster.
This is what crm_mon uses (try having a look at the crm_mon.c file to
see how it works)
The information I currently check for are
the following:
- Are all nodes running?
- Is there a DC?
- Are all resources started?
- Are there any orphaned resources?
- Are there any failed actions?
I attached my "check_crm" nagios plugin. I also attached a OCF
Resource
Agent that works perfectly on top of the tomcat init script which
comes
with Debian Etch. So they're at least documented.
Thomas
<
check_crm
.txt><tomcattg.txt>_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems