Details
Assignee
UnassignedUnassignedReporter
Robin WilliamsRobin WilliamsComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Robin Williams
Robin WilliamsComponents
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created December 9, 2009 at 6:07 PM
Updated July 26, 2023 at 2:20 PM
David replied to a message I posted in discuss which I'll post at the bottom requesting that I create a bug (more of a feature request). If possible at some point I'd like an outage to be generated from a poller only if the specific condition in the poller is met, and not generate an outage if the device is merely 'unsnmpable' or unreachable. Example in pasted email below:
---------------
Hi,
I've defined some custom pollers in poller-configuration.xml which use
the snmpmonitor to look for an oid, and an operator/operand pair, for
example:
<service name="AlarmACmains" interval="300000"
user-defined="true" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="10000"/>
<parameter key="port" value="161"/>
<parameter key="oid" value=".1.3.6.1.4.1.12148.9.7.1.11.0"/>
<parameter key="operator" value="!="/>
<parameter key="operand" value="1"/>
</service>
This works okay, but if the device is actually node down or powered off,
the poller service still has an 'outage'. While I appreciate this might
be the correct behavior in some circumstances, I'd rather it only
actually give an outage if the value returned is specifically wrong
(i.e. 1) not if it just cannot receive a response to the snmp query -
otherwise I'll continually get sms'd that AC mains has gone, when there
has just been a network blip (which I might not care about). Is this
possible, or am I just misunderstanding the use of pollers? I did
notice the serviceUnresponsiveEnabled flag, but I don't think this is
what I'm looking for, as I think that'd still produce an outage if it
cannot connect to the port.
Any advice anyone?
Thanks.
Robin.