Re: how to get integer from "exec/extend" shell command?

Raphaël 'SurcouF' Bordet <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Le lundi 08 novembre 2010 à 21:57 +0100, Ernest Beinrohr a écrit :
> On 08.11.2010 21:39, Raphaël 'SurcouF' Bordet wrote: 
> > Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit :
> > > Hi, i have a simple script which always returns and integer, I have it
> > > in my snmpd.conf as "exec test1 /bin/test.sh" and also as "extend
> > > test1 /bin/test.sh". Unfortunately, none of there returns an integer
> > > with the value from the script. Only a string. Is is somehow possible
> > > to get an integer?
> > Hi, 
> > 
> >  This question was already queried this month by Angelo Höngens...
> > The response is to use UCD-SNMP-MIB::extResult (for exec) or
> > NET-SNMP-MIB::nsExtendResult (for extend) instead of
> > UCD-SNMP-MIB::extOutput or NET-SNMP-MIB::nsExtendOutput1Line,
> > respectively.
> 
> Well, that does not really help, I've tried. My number is quite
> large, 
> like bytes on and interface. Too big for return value. 

What are the command you need ? Can you provide an example ?

exec/extend can be used to execute remote Nagios Plugins on remotes
hosts.


Regards, 

-- 
Raphaël 'SurcouF' Bordet



------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.