RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1577085 - `crm_mon -s`: Improve printed outputs and return codes
Summary: `crm_mon -s`: Improve printed outputs and return codes
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pacemaker
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: pre-dev-freeze
: ---
Assignee: Ken Gaillot
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-11 07:51 UTC by Reid Wahl
Modified: 2024-12-20 18:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-26 15:15:58 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1576103 0 low CLOSED `crm_mon -s` prints "CLUSTER OK" when there are unclean (online) nodes 2024-12-20 18:45:11 UTC
Red Hat Knowledge Base (Solution) 3461161 0 None None None 2018-05-28 08:06:45 UTC

Description Reid Wahl 2018-05-11 07:51:03 UTC
Description of problem:

Customer has raised the concern that the output and return codes of `crm_mon -s` do not always accurately reflect the status of the cluster.

`crm_mon -s` is meant to provide a one-line output suitable for Nagios. Per the guidelines here (https://www.monitoring-plugins.org/doc/guidelines.html#AEN78), Nagios plugins can return one of four statuses: OK, Warning, Critical, or Unknown.


Excerpts from the customer:

    Bugzilla 1576103... looks like it says that both unclean (online)
    and unclean (offline) would be warning states.  Currently offline
    is critical, should the bugzilla be reworded such that we are
    recommending unclean (online) be warning and unclean (offline) be
    a critical error? ...a single system being down in a two node cluster
    would result and lack of redundancy with imminent failure is just
    around the corner and would probably step up to the level of
    critical.) Though maybe some kind of mathematical equation that if
    greater than or equal to fifty percent of the nodes are offline it
    would go from warning to critical as having one offline node in a
    cluster leaves you in a position of imminent disaster, however in a
    three or more node cluster having one unclean offline node would
    still only be a warning level as another node could fail before it
    becomes critical. This math may be over simplistic but because maybe
    in a 10 node cluster having 4 nodes offline might cause a
    unacceptable slow down.      

    New potential consideration for the simple output.
    ...I would think that ["no DC"] would be a candidate to be an
    "Unknown" as it might be a configuration issue like maybe you
    running the report on a box that doesn't yet have a cluster
    configured. ...Regardless of whether I am right or wrong on how the
    prior works I would think that the ideal simple output would have
    at least one unknown result for when the script is somehow added to
    a box that does not have either cluster installed on it, to
    returning an unknown result along the lines of "Can't find cluster
    software, some specific application, config file,…,  or a cluster 
    configuration"


--------------------

Version-Release number of selected component (if applicable):

pacemaker-1.1.18-11
master


--------------------

How reproducible:

Always


--------------------

Steps to Reproduce:

Run `crm_mon -s` with varying degrees of resource cleanliness and numbers of offline nodes. Exact details TBD.


--------------------

Actual results:

Output and return codes may be too nonspecific. For example, "OK" and "Warning" are the only options.


--------------------

Expected results:

Exact details TBD. Output and return codes accurately reflect status of cluster in alignment with Nagios plugin guidelines. For example, certain conditions may qualify as a critical state.


--------------------

Additional info:

Related to Bug 1576103 - `crm_mon -s` prints "CLUSTER OK" when there are unclean (online) nodes

Comment 4 Ken Gaillot 2019-03-27 20:58:27 UTC
Due to this not making the 7.7 time frame, I'm moving it to RHEL 8 only, as RHEL 7 will only be getting bug fixes from this point.

The approach I'm leaning to here is creating a new tool (maybe called crm_check) that would solely be a monitoring plugin, since it doesn't really overlap with crm_mon much. We would likely handle Bug 1576103 at the same time.

Unfortunately due to developer constraints, I cannot commit to a release time frame.

Comment 7 Ken Gaillot 2021-07-26 15:15:58 UTC
Upstream has deprecated the crm_mon -s option and will eventually drop it. Users are recommended to use a community-supplied or custom plugin instead.

If demand warrants, we could write a new plugin (separate from crm_mon) and submit it upstream. However at this time, especially given the diversity of monitoring systems in use (nagios, prometheus, zabbix, etc.), it seems unlikely to be a priority.


Note You need to log in before you can comment on or make changes to this bug.