Jun 3, 2008 9:38 AM
Setting Component from COMMAND DataSource using nagios plug.
-
Like (0)
for ev in self.thresholds.check(path, time.time(), value):
ev['eventKey'] = cmd.key(label)
ev['component'] = cmd.component
self.sendThresholdEvent(**ev)
for ev in self.thresholds.check(path, time.time(), value):
log.debug("Returned Threshold Data")
log.debug("eventKey: %s component: %s" % (cmd.key(label), cmd.component))
log.debug(ev)
ev['eventKey'] = cmd.key(label)
self.sendThresholdEvent(**ev)
DEBUG:zen.zencommand:Process check_pillar_filesystem.py -H 10.5.3.26 -c r3ad-th1s -i 2 stopped (0), 0.445986 elapsed
DEBUG:zen.zencommand:The result of "$ZENHOME/Products/PillarMonitor/libexec/check_pillar_filesystem.py -H 10.5.3.26 -c r3ad-th1s -i 2" was "STATUS OK| online=1 performance=1 ha=0 redundancy=1 readonly=1 pinneddata=1 management=1"
DEBUG:zen.zencommand:storing online = 1.0 in: Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_online
DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_online.rrd: 1.0
DEBUG:zen.zencommand:rrd save result: 1.0
DEBUG:zen.thresholds:Checking value 1.0 on Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_online
DEBUG:zen.MinMaxCheck:Checking FilesystemHealth_online 1.0 against min 1 and max 1
DEBUG:zen.zencommand:storing performance = 1.0 in: Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_performance
DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_performance.rrd: 1.0
DEBUG:zen.zencommand:rrd save result: 1.0
DEBUG:zen.thresholds:Checking value 1.0 on Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_performance
DEBUG:zen.MinMaxCheck:Checking FilesystemHealth_performance 1.0 against min 1 and max 1
DEBUG:zen.zencommand:storing ha = 0.0 in: Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_ha
DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_ha.rrd: 0.0
DEBUG:zen.zencommand:rrd save result: 0.0
DEBUG:zen.thresholds:Checking value 0.0 on Devices/pilot1/PillarFile/ProdFS/FilesystemHealth_ha
DEBUG:zen.MinMaxCheck:Checking FilesystemHealth_ha 0.0 against min 1 and max 1
INFO:zen.MinMaxCheck:label: ProdFS self.context().componentName: ProdFS
DEBUG:zen.zencommand:Returned Threshold Data
DEBUG:zen.zencommand:eventKey: PillarFilesystem|FilesystemHealth_ha component:
DEBUG:zen.zencommand:{'device': 'pilot1', 'eventClass': '/Pillar', 'component': 'ProdFS', 'severity': 4, 'summary': 'pilot1 ProdFS threshold of FilesystemHealth not met: current value 0.00'}
DEBUG:zen.zencommand:Sending event {'severity': 4, 'component': 'ProdFS', 'agent': 'zencommand', 'summary': 'pilot1 ProdFS threshold of FilesystemHealth not met: current value 0.00', 'manager': 'localhost', 'eventKey': 'PillarFilesystem|FilesystemHealth_ha', 'device': 'pilot1', 'eventClass': '/Pillar'}
DEBUG:zen.zencommand:Returned Threshold Data
DEBUG:zen.zencommand:eventKey: PillarFilesystem|FilesystemHealth_ha component:
DEBUG:zen.zencommand:{'device': 'pilot1', 'eventClass': '/Pillar', 'component': 'ProdFS', 'severity': 4, 'summary': 'pilot1 ProdFS threshold of FilesystemHealth not met: current value 0.00'}
for ev in self.thresholds.check(path, time.time(), value):
log.debug("Returned Threshold Data")
log.debug("eventKey: %s component: %s" % (cmd.key(label), cmd.component))
log.debug(ev)
ev['eventKey'] = cmd.key(label)
#Check to see if the component exists
if cmd.component == '':
#use the component returned from MinMaxThreshold instead.
cmd.component = ev['component']
else:
#fall back on default behavior if component is not empty.
ev['component'] = cmd.component
self.sendThresholdEvent(**ev)
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||