Re: How to handle floating point values in PASS

Robert Story <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization FreeSNMP
Message-ID <[email protected]>
On Wed 2017-12-06 14:38:39-0700 Steve wrote:
> I've got a question. I have some 'probe' scripts set up to run via
> snmpd.conf  'pass' directives.
> 
> The scripts generate the desired output:
> 
> .1.3.6.1.4.1.50805.2.4.1.7
> integer
> 5190656
> 
> but how do I pass floating point values? with 'gauge'?

The only 'standard' way is to use a string. :-/ That or an integer and
write in the object description that there are N decimal points implied.

Net-SNMP has a non-standard opaque type that you can use if you are
using Net-SNMP for both server and client side.


-- 
Robert Story <http://www.isi.edu/~rstory>
USC Information Sciences Institute <http://www.isi.edu/>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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.