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 2160206 - RFE: Add sample script for pacemaker alerts that support SNMPv3.
Summary: RFE: Add sample script for pacemaker alerts that support SNMPv3.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pacemaker
Version: 8.7
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: 8.9
Assignee: Ken Gaillot
QA Contact: cluster-qe
Steven J. Levine
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-11 18:43 UTC by Shane Bradley
Modified: 2023-11-14 16:49 UTC (History)
5 users (show)

Fixed In Version: pacemaker-2.1.6-1.el8
Doc Type: Enhancement
Doc Text:
.The `alert_snmp.sh.sample` alert agent now supports SNMPv3 The `alert_snmp.sh.sample` alert agent, which is the sample alert agent provided with Pacemaker, now supports the SNMPv3 protocol as well as SNMPv2. With this update, you can copy the `alert_snmp.sh.sample` agent without modification to use SNMPv3 with Pacemaker alerts.
Clone Of:
Environment:
Last Closed: 2023-11-14 15:32:36 UTC
Type: Enhancement
Target Upstream Version: 2.1.6
Embargoed:


Attachments (Terms of Use)
Proposed sample SNMP alert agent (6.47 KB, application/x-shellscript)
2023-03-09 22:17 UTC, Ken Gaillot
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6698 0 None None None 2023-05-16 14:10:08 UTC
Red Hat Issue Tracker RHELPLAN-144874 0 None None None 2023-01-11 18:45:59 UTC
Red Hat Knowledge Base (Solution) 6993764 0 None None None 2023-01-11 18:52:18 UTC
Red Hat Product Errata RHEA-2023:6970 0 None None None 2023-11-14 15:33:44 UTC

Comment 2 Ken Gaillot 2023-02-28 23:26:09 UTC
Created attachment 1947070 [details]
Proposed sample agent (obsolete)

Comment 3 Ken Gaillot 2023-02-28 23:32:27 UTC
I've attached a proposed fixed sample agent.

The SNMP trap version, community, and options can be set when configuring the alert in pcs, for example:

    pcs alert create path=/srv/alerts/alert_snmp.sh options trap_version=3 \
        trap_community="" trap_options="-l authNoPriv -a MD5 -u testuser -A secret1" \
        meta timestamp-format="%Y-%m-%d,%H:%M:%S.%01N"

Comment 9 Ken Gaillot 2023-03-06 19:37:53 UTC
Created attachment 1948503 [details]
Proposed sample agent

I've attached an updated version of the sample agent that ensures the community is empty if v3 is used.

Comment 10 Ken Gaillot 2023-03-06 19:38:56 UTC
Let me know if the new sample is good

Comment 11 Ken Gaillot 2023-03-09 22:17:32 UTC
Created attachment 1949424 [details]
Proposed sample SNMP alert agent

Comment 12 Ken Gaillot 2023-03-09 22:18:24 UTC
Updated the attached agent again, the previous version wouldn't have worked with SNMP v2c. The current version should work with SNMP v1, v2c, and v3.

Comment 13 Ken Gaillot 2023-03-13 14:11:50 UTC
Latest attached agent has been merged in the upstream main branch as of commit 0f88388. If any issues are found, we can update it again.

Comment 20 Markéta Smazová 2023-06-28 14:49:44 UTC
verified as SanityOnly in pacemaker-2.1.6-1.el8

Comment 25 errata-xmlrpc 2023-11-14 15:32:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pacemaker bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:6970


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