how to display only the status information I want

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Tal
Posts: 12
Joined: Wed Jun 06, 2012 1:40 pm

how to display only the status information I want

Post by Tal »

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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: how to display only the status information I want

Post by agriffin »

Can you post your command definition for this service? Normally you should not see the command line input in the status text.
Locked