[ClusterLabs] Antw: [EXT] Final Pacemaker 2.0.5 release now available
Ken Gaillot
kgaillot at redhat.com
Thu Dec 3 10:30:23 EST 2020
On Thu, 2020-12-03 at 00:22 -0800, Reid Wahl wrote:
> On Thu, Dec 3, 2020 at 12:21 AM Reid Wahl <nwahl at redhat.com> wrote:
> >
> > Have you tried `crm_mon -s`?
> >
> > # crm_mon --help-all | grep ' \-s'
> > -s, --simple-status Display the cluster status once
> > as
> > a simple one line output (suitable for nagios)
> >
> > Caveat: This isn't without flaws.
> > - Bug 1576103 - `crm_mon -s` prints "CLUSTER OK" when there are
> > unclean (online) nodes
> > (https://bugzilla.redhat.com/show_bug.cgi?id=1576103)
> > - `crm_mon -s` prints `"CLUSTER OK"` when there are nodes in
> > `UNCLEAN (online)` status
> > (https://access.redhat.com/solutions/3441221)
>
> Meant to also link:
> - Bug 1577085 - `crm_mon -s`: Improve printed outputs and return
> codes (https://bugzilla.redhat.com/show_bug.cgi?id=1577085)
> - `crm_mon -s` return codes do not accurately reflect status of
> cluster (https://access.redhat.com/solutions/3461161)
Indeed, crm_mon -s was intended for nagios-compatible output. However,
it's pretty lousy as a nagios plugin -- it can't even go to error, only
warning, and it offers no control over what conditions or threshholds
trigger warning.
So, I'm thinking of deprecating it as of the next release (2.1.0) in
favor of recommending community-supplied plugins like check_crm
(mentioned below). I'm open to someone supplying a separate plugin to
be distributed with pacemaker, but I don't have time to spend on it
myself.
Also, Prometheus seems to be gaining steam over nagios-compatible
monitors these days, and there is a separate ClusterLabs project for a
Prometheus exporter:
https://github.com/ClusterLabs/ha_cluster_exporter
> > I dunno if Check CRM still works, given that it was last updated 7
> > years ago:
> > -
> > https://exchange.nagios.org/directory/Plugins/Clustering-and-High-2DAvailability/Check-CRM/details
> >
> > On Wed, Dec 2, 2020 at 11:21 PM Ulrich Windl
> > <Ulrich.Windl at rz.uni-regensburg.de> wrote:
> > >
> > > > > > Christopher Lumens <clumens at redhat.com> schrieb am
> > > > > > 02.12.2020 um 19:14 in
> > >
> > > Nachricht <
> > > 851583983.28225008.1606932881629.JavaMail.zimbra at redhat.com>:
> > > > Hi all,
> > > >
> > > > The final release of Pacemaker version 2.0.5 is now available
> > > > at:
> > >
> > > [...]
> > > >
> > > > * crm_mon additionally supports a --resource= option for
> > > > resource-based
> > > > filtering, similar to the --node= option introduced in a
> > > > previous release.
> > >
> > > Another nice extension based on this would be a nagios-compatible
> > > output and exit code. I imagine:
> > > OK if the resource is running (or is in its desired state)
> > > WARNING if the resource is starting or stopping
> > > CRITICAL if the resource is stopped (or not in ist desired state)
> > > UNKNOWN if the status cannot be queried or the resource is not
> > > known.
> > >
> > > Of cource: Likewise for the nodes
> > >
> > > clones and master/slave probably would need some special care.
> > >
> > > Opinions on that?
> > >
> > > Regards,
> > > Ulrich
> > >
> > >
> > > _______________________________________________
> > > Manage your subscription:
> > > https://lists.clusterlabs.org/mailman/listinfo/users
> > >
> > > ClusterLabs home: https://www.clusterlabs.org/
> > >
> >
> >
> > --
> > Regards,
> >
> > Reid Wahl, RHCA
> > Senior Software Maintenance Engineer, Red Hat
> > CEE - Platform Support Delivery - ClusterHA
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Users
mailing list