SNMP Trap: NGINX Status

Severity:

  • Critical: nginx upstream failure, upstream <node> server <server> failed

  • Info: nginx upstreams OK

Example: Critical

Mar 25 13:30:12 robot-sl snmptrapd[1214]:
2019-03-25 13:30:12 <UNKNOWN>
[UDP: [172.29.21.129]:63573->[192.168.100.25]:162]:
#012iso.3.6.1.2.1.1.3.0 = Timeticks: (293333) 0:48:53.33
#011iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.2.1.88.2.0.1
#011iso.3.6.1.2.1.88.2.1.1.0 = STRING: "nginx upstream failure"
#011iso.3.6.1.2.1.88.2.1.3.0 = STRING: "upstream selfservice server 192.29.22.122:443 failed: <urlopen error timed out>"
#011iso.3.6.1.2.1.88.2.1.5.0 = INTEGER: 1
#011iso.3.6.1.2.1.1.5.0 = STRING: "WP2-172.29.21.129"

Example: Info

Mar 25 13:34:02 robot-sl snmptrapd[1214]:
2019-03-25 13:34:02 <UNKNOWN>
[UDP: [172.29.21.129]:31265->[192.168.100.25]:162]:
#012iso.3.6.1.2.1.1.3.0 = Timeticks: (316311) 0:52:43.11
#011iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.2.1.88.2.0.1
#011iso.3.6.1.2.1.88.2.1.1.0 = STRING: "nginx upstreams OK"
#011iso.3.6.1.2.1.88.2.1.3.0 = STRING: "nginx upstream servers returned to normal"
#011iso.3.6.1.2.1.88.2.1.5.0 = INTEGER: 0
#011iso.3.6.1.2.1.1.5.0 = STRING: "WP2-172.29.21.129"