check_snmp output formating

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
Cobalt60
Posts: 2
Joined: Sun Aug 12, 2012 8:02 am

check_snmp output formating

Post by Cobalt60 »

Hi,

I'm using check_snmp to monitor a APC ups when I run the following;

Code: Select all

./check_snmp -H <HostName> -o .1.3.6.1.4.1.318.1.1.1.4.2.3.0 -w 60 -c 90 -l 'Current Load' -u '%'
I get;

Code: Select all

SNMP OK - Current Load 28 % | Current Load=28
Is it possable to format this so "Current Load" isn't repeated twice?

Thanks
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_snmp output formating

Post by jsmurphy »

It's not returning it twice... well it is, but not for the reasons you think. Anything after a pipe symbol | is performance data, it won't display on the interface it's used to draw graphs.
Locked