how to display only the status information I want
Posted: Thu Sep 20, 2012 10:32 pm
OS: Ubuntu 10.04
NAG ver 3.4.1
So, I've built my test switch config (with some major help from replies here) and I've got the service check commands I want....so now, under 'status information' ...
(here is what I'm seeing)
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.24.167.52:161 ifName.10001 ifOperStatus.10001 ifAdminStatus.10001 1.3.6.1.4.1.9.9.68.1.2.2.1.2.10001 ifAlias.10001 ifHighSpeed.10001 ifPhysAddress.10001 ifLastChange.10001
(Here is what I want to see)
SNMP OK - Fa1/0/1 up(1) up(1) 6 100 00 15 FA 16 5F 03 Timeticks: (3210045992) 371 days, 12:47:39.92
1. How do I suppress the snmpget command syntax so I can just view the results?
2. If I wanted to sort the results of a check command in a sql database....is there another way besides taking the snmpget command > output_file?
thanks again
NAG ver 3.4.1
So, I've built my test switch config (with some major help from replies here) and I've got the service check commands I want....so now, under 'status information' ...
(here is what I'm seeing)
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.24.167.52:161 ifName.10001 ifOperStatus.10001 ifAdminStatus.10001 1.3.6.1.4.1.9.9.68.1.2.2.1.2.10001 ifAlias.10001 ifHighSpeed.10001 ifPhysAddress.10001 ifLastChange.10001
(Here is what I want to see)
SNMP OK - Fa1/0/1 up(1) up(1) 6 100 00 15 FA 16 5F 03 Timeticks: (3210045992) 371 days, 12:47:39.92
1. How do I suppress the snmpget command syntax so I can just view the results?
2. If I wanted to sort the results of a check command in a sql database....is there another way besides taking the snmpget command > output_file?
thanks again