Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sschapiro:openstack:upstream
clustermon
bz561413-14-Send-quorum-state-change-trap.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bz561413-14-Send-quorum-state-change-trap.patch of Package clustermon
From 8d1e11dbb60a98e79c983f7485aeb498c0e0fb69 Mon Sep 17 00:00:00 2001 From: Lon Hohberger <lhh@redhat.com> Date: Fri, 14 May 2010 12:22:23 -0400 Subject: [PATCH 14/16] modclusterd: Send quorum state change trap Signed-off-by: Lon Hohberger <lhh@redhat.com> --- .../clumon/src/snmp-agent/clusterMonitorSnmp.cpp | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp b/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp index 3afe972..9eeadfb 100644 --- a/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp +++ b/ricci/modules/cluster/clumon/src/snmp-agent/clusterMonitorSnmp.cpp @@ -53,6 +53,16 @@ check_cluster_state(unsigned int clientreg, void *clientarg) cluster->config_version()); trap.Send(); } + + if (old_status->quorate(true) != cluster->quorate(true)) { + // Send configuration version update trap + Trap trap(rhcQuorumState_trap, rhcQuorumState_len); + + trap.Add(rhcClusterQuorate_oid, + rhcClusterQuorate_len, + cluster->quorate(true)); + trap.Send(); + } } -- 1.6.2.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor