It seems that the output is not in one line so I'd try to feed the lines
(to awk, a file, ...) , extract the necessary information and reformat
it appropriately.
Am 09.05.2016 um 18:40 schrieb Scott McCamish:
Hello All-
I'm interested in having the SNMP response show up in icingawew2
check_snmp check output.
From the command line the "response" exists (calling check_snmp with
"-vvv"):
$ snmpget -Le -t 10 -r 5 -m PowerNet-MIB -v 3 [authpriv] x.x.x.x
.1.3.6.1.4.1.318.1.1.1.7.2.3.0
PowerNet-MIB::upsAdvTestDiagnosticsResults.0 = INTEGER: invalidTest(3)
Processing oid 1 (line 1)
oidname: PowerNet-MIB::upsAdvTestDiagnosticsResults.0
response: = INTEGER: invalidTest(3)
SNMP OK - 3 | PowerNet-MIB::upsAdvTestDiagnosticsResults.0=3
How can I get that response to display instead of just "SNMP OK - 3"
Thanks for the help,
Scott
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users