REST Resources
-
/ /acks /acks/{ack-id} -
/alarms -
/alarms/{alarm-id} -
/nodes -
/nodes/{node-id} -
/outages -
/outages/{outage-id} -
/outages/count -
/outages/forNode/{node-id} -
/requisitions -
/requisitions/{foreign-source} -
/requisitions/{foreign-source}/nodes/{node-id} -
/sched-outages -
/sched-outages/{outage-name} -
/stats/alarms -
/stats/alarms/by-severity
/api/space/opennms/stats/alarms/by-severity
The following operations are supported on this resource:
- GET - Get alarm statistics by severity.
GET /stats/alarms/by-severity | Version 1 |
This API is used to retrieve information about statistics of all the nodes based on severity.
Sample Usage
GET /stats/alarms/by-severity
- Accept Headers:
application/vnd.net.juniper.space.opennms+xml;version=1
<severities>
<alarmStatistics acknowledgedCount="0" totalCount="17" unacknowledgedCount="17">
<newestAcked>
<alarm type="3" count="52" id="186" severity="WARNING">
<description>This is a translated entity configuration change event. Source: 1 User: root</description>
<parms>.1.3.6.1.4.1.2636.3.18.1.7.1.2.104=9942992(TimeTicks,text);.1.3.6.1.4.1.2636.3.18.1.7.1.3.104=B9oBAgMoBgArAAA%61(OctetString,base64);.1.3.6.1.4.1.2636.3.18.1.7.1.4.104=1(Int32,text);.1.3.6.1.4.1.2636.3.18.1.7.1.5.104=root(OctetString,text);.1.3.6.1.4.1.2636.3.18.1.7.1.6.104=%crId:15695968%changeType:inband%moduleName:Platform.ConsolidatedConfig)%(OctetString,text);.1.3.6.1.6.3.1.1.4.3.0=.1.3.6.1.4.1.2636.1.1.1.2.31(ObjectIdentifier,text);configSource=1(string,text);configUser=root(string,text)</parms>
<firstEventTime>2017-03-16T15:33:07Z</firstEventTime>
<ipAddress>192.168.27.72</ipAddress>
<lastEvent display="Y" log="Y" id="5956" severity="WARNING">
<createTime>2017-03-17T09:43:15.022Z</createTime>
<description>This is a translated entity configuration change event. Source: 1 User: root</description>
<host>192.168.27.72</host>
<logMessage>root" changed entity EX_4200_192.168.27.72 from source: 1</logMessage>
<parms>.1.3.6.1.4.1.2636.3.18.1.7.1.2.104=9942992(TimeTicks,text);.1.3.6.1.4.1.2636.3.18.1.7.1.3.104=B9oBAgMoBgArAAA%61(OctetString,base64);.1.3.6.1.4.1.2636.3.18.1.7.1.4.104=1(Int32,text);.1.3.6.1.4.1.2636.3.18.1.7.1.5.104=root(OctetString,text);.1.3.6.1.4.1.2636.3.18.1.7.1.6.104=%crId:15695968%changeType:inband%moduleName:Platform.ConsolidatedConfig)%(OctetString,text);.1.3.6.1.6.3.1.1.4.3.0=.1.3.6.1.4.1.2636.1.1.1.2.31(ObjectIdentifier,text);configSource=1(string,text);configUser=root(string,text)</parms>
<snmp>.1.3.6.1.4.1.2636.4.5,undefined,v2,1,6,space</snmp>
<snmpHost>192.168.27.72</snmpHost>
<source>event-translator</source>
<time>2017-03-17T09:43:14Z</time>
<uei>uei.opennms.org/internal/translator/entityConfigChanged</uei>
<ipAddress>192.168.27.72</ipAddress>
<nodeId>6</nodeId>
<nodeLabel>EX_4200</nodeLabel>
</lastEvent>
<lastEventTime>2017-03-17T09:43:14Z</lastEventTime>
<logMessage>root" changed entity EX_4200_192.168.27.72 from source: 1</logMessage>
<nodeId>6</nodeId>
<nodeLabel>EX_4200</nodeLabel>
<reductionKey>uei.opennms.org/internal/translator/entityConfigChanged::6:192.168.27.72</reductionKey>
<suppressedTime>2017-03-16T15:33:07Z</suppressedTime>
<suppressedUntil>2017-03-16T15:33:07Z</suppressedUntil>
<uei>uei.opennms.org/internal/translator/entityConfigChanged</uei>
<x733ProbableCause>0</x733ProbableCause>
</alarm>
</newestAcked>
<newestUnacked>
<alarm type="3" count="52" id="186" severity="WARNING">
<description>This is a translated entity configuration change event. Source: 1 User: root</description>
<parms>.1.3.6.1.4.1.2636.3.18.1.7.1.2.104=9942992(TimeTicks,text);.1.3.6.1.4.1.2636.3.18.1.7.1.3.104=B9oBAgMoBgArAAA%61(OctetString,base64);.1.3.6.1.4.1.2636.3.18.1.7.1.4.104=1(Int32,text);.1.3.6.1.4.1.2636.3.18.1.7.1.5.104=root(OctetString,text);.1.3.6.1.4.1.2636.3.18.1.7.1.6.104=%crId:15695968%changeType:inband%moduleName:Platform.ConsolidatedConfig)%(OctetString,text);.1.3.6.1.6.3.1.1.4.3.0=.1.3.6.1.4.1.2636.1.1.1.2.31(ObjectIdentifier,text);configSource=1(string,text);configUser=root(string,text)</parms>
<firstEventTime>2017-03-16T15:33:07Z</firstEventTime>
<ipAddress>192.168.27.72</ipAddress>
<lastEvent display="Y" log="Y" id="5956" severity="WARNING">
<createTime>2017-03-17T09:43:15.022Z</createTime>
<description>This is a translated entity configuration change event. Source: 1 User: root</description>
<host>192.168.27.72</host>
<logMessage>root" changed entity EX_4200_192.168.27.72 from source: 1</logMessage>
<parms>.1.3.6.1.4.1.2636.3.18.1.7.1.2.104=9942992(TimeTicks,text);.1.3.6.1.4.1.2636.3.18.1.7.1.3.104=B9oBAgMoBgArAAA%61(OctetString,base64);.1.3.6.1.4.1.2636.3.18.1.7.1.4.104=1(Int32,text);.1.3.6.1.4.1.2636.3.18.1.7.1.5.104=root(OctetString,text);.1.3.6.1.4.1.2636.3.18.1.7.1.6.104=%crId:15695968%changeType:inband%moduleName:Platform.ConsolidatedConfig)%(OctetString,text);.1.3.6.1.6.3.1.1.4.3.0=.1.3.6.1.4.1.2636.1.1.1.2.31(ObjectIdentifier,text);configSource=1(string,text);configUser=root(string,text)</parms>
<snmp>.1.3.6.1.4.1.2636.4.5,undefined,v2,1,6,space</snmp>
<snmpHost>192.168.27.72</snmpHost>
<source>event-translator</source>
<time>2017-03-17T09:43:14Z</time>
<uei>uei.opennms.org/internal/translator/entityConfigChanged</uei>
<ipAddress>192.168.27.72</ipAddress>
<nodeId>6</nodeId>
<nodeLabel>EX_4200</nodeLabel>
</lastEvent>
<lastEventTime>2017-03-17T09:43:14Z</lastEventTime>
<logMessage>root" changed entity EX_4200_192.168.27.72 from source: 1</logMessage>
<nodeId>6</nodeId>
<nodeLabel>EX_4200</nodeLabel>
<reductionKey>uei.opennms.org/internal/translator/entityConfigChanged::6:192.168.27.72</reductionKey>
<suppressedTime>2017-03-16T15:33:07Z</suppressedTime>
<suppressedUntil>2017-03-16T15:33:07Z</suppressedUntil>
<uei>uei.opennms.org/internal/translator/entityConfigChanged</uei>
<x733ProbableCause>0</x733ProbableCause>
</alarm>
</newestUnacked>
<oldestAcked>
<alarm type="1" count="1" id="2" severity="MAJOR">
<description>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</description>
<parms>.1.3.6.1.2.1.88.2.1.1.0=CPU LA trigger(OctetString,text);.1.3.6.1.2.1.88.2.1.2.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.3.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.4.0=.1.3.6.1.4.1.2021.10.1.100.1(ObjectIdentifier,text);.1.3.6.1.2.1.88.2.1.5.0=1(Int32,text);.1.3.6.1.4.1.2021.10.1.2.1=Load-1(OctetString,text);.1.3.6.1.4.1.2021.10.1.101.1=1 min Load Average too high (%61 5.11)(OctetString,text)</parms>
<firstEventTime>2017-03-15T07:49:49Z</firstEventTime>
<ipAddress>192.168.26.27</ipAddress>
<lastEvent display="Y" log="Y" id="40" severity="MAJOR">
<createTime>2017-03-15T07:49:49.453Z</createTime>
<description>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</description>
<host>192.168.26.27</host>
<logMessage>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</logMessage>
<parms>.1.3.6.1.2.1.88.2.1.1.0=CPU LA trigger(OctetString,text);.1.3.6.1.2.1.88.2.1.2.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.3.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.4.0=.1.3.6.1.4.1.2021.10.1.100.1(ObjectIdentifier,text);.1.3.6.1.2.1.88.2.1.5.0=1(Int32,text);.1.3.6.1.4.1.2021.10.1.2.1=Load-1(OctetString,text);.1.3.6.1.4.1.2021.10.1.101.1=1 min Load Average too high (%61 5.11)(OctetString,text)</parms>
<snmp>.1.3.6.1.2.1.88.2,undefined,v2,1,6,juniper123</snmp>
<snmpHost>192.168.26.27</snmpHost>
<source>trapd</source>
<time>2017-03-15T07:49:49Z</time>
<uei>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising</uei>
<ipAddress>192.168.26.27</ipAddress>
</lastEvent>
<lastEventTime>2017-03-15T07:49:49Z</lastEventTime>
<logMessage>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</logMessage>
<reductionKey>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising::0:Load-1</reductionKey>
<suppressedTime>2017-03-15T07:49:49Z</suppressedTime>
<suppressedUntil>2017-03-15T07:49:49Z</suppressedUntil>
<uei>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising</uei>
<x733ProbableCause>0</x733ProbableCause>
</alarm>
</oldestAcked>
<oldestUnacked>
<alarm type="1" count="1" id="2" severity="MAJOR">
<description>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</description>
<parms>.1.3.6.1.2.1.88.2.1.1.0=CPU LA trigger(OctetString,text);.1.3.6.1.2.1.88.2.1.2.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.3.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.4.0=.1.3.6.1.4.1.2021.10.1.100.1(ObjectIdentifier,text);.1.3.6.1.2.1.88.2.1.5.0=1(Int32,text);.1.3.6.1.4.1.2021.10.1.2.1=Load-1(OctetString,text);.1.3.6.1.4.1.2021.10.1.101.1=1 min Load Average too high (%61 5.11)(OctetString,text)</parms>
<firstEventTime>2017-03-15T07:49:49Z</firstEventTime>
<ipAddress>192.168.26.27</ipAddress>
<lastEvent display="Y" log="Y" id="40" severity="MAJOR">
<createTime>2017-03-15T07:49:49.453Z</createTime>
<description>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</description>
<host>192.168.26.27</host>
<logMessage>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</logMessage>
<parms>.1.3.6.1.2.1.88.2.1.1.0=CPU LA trigger(OctetString,text);.1.3.6.1.2.1.88.2.1.2.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.3.0=(OctetString,text);.1.3.6.1.2.1.88.2.1.4.0=.1.3.6.1.4.1.2021.10.1.100.1(ObjectIdentifier,text);.1.3.6.1.2.1.88.2.1.5.0=1(Int32,text);.1.3.6.1.4.1.2021.10.1.2.1=Load-1(OctetString,text);.1.3.6.1.4.1.2021.10.1.101.1=1 min Load Average too high (%61 5.11)(OctetString,text)</parms>
<snmp>.1.3.6.1.2.1.88.2,undefined,v2,1,6,juniper123</snmp>
<snmpHost>192.168.26.27</snmpHost>
<source>trapd</source>
<time>2017-03-15T07:49:49Z</time>
<uei>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising</uei>
<ipAddress>192.168.26.27</ipAddress>
</lastEvent>
<lastEventTime>2017-03-15T07:49:49Z</lastEventTime>
<logMessage>CPU load average threshold upper limit exceeded. 1 min Load Average too high (= 5.11).</logMessage>
<reductionKey>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising::0:Load-1</reductionKey>
<suppressedTime>2017-03-15T07:49:49Z</suppressedTime>
<suppressedUntil>2017-03-15T07:49:49Z</suppressedUntil>
<uei>uei.opennms.org/traps/SPACE-PLATFORM-MIB/jnxSpaceCPULARising</uei>
<x733ProbableCause>0</x733ProbableCause>
</alarm>
</oldestUnacked>
</alarmStatistics>
</severities>
Access Control
The following capabilities are required to access this API: cap_fmpm_Alarm