Sorry, I should point out that I don't have the option of extending  
the agent using perl or C as I can't install libraries or perl modules.

I need to do this in shell only, which is a pain.

  -- joe.

On 9 Aug 2007, at 15:09, Joe Warren-Meeks wrote:

>
> Hey there,
>
> I'm trying to extend net-snmp to return a numeric value so that I can
> graph and alert based upon it.
>
> Now, I started using the exec method and setting the exit status with
> exit $VALUE, however the value in question is many times greater than
> 255 and hence this fails.
>
> Using extend, the output is always returned as a string, which means
> my monitoring system (SNMPc) won't let me graph it.
>
> Is there a simple way of returning a numeric value using extend/exec/
> whatever that will exceed 255?
>
> Thanks for your time.
>
>   -- joe. (I did try searching the mail archives, but it kept failing)
>
> Joe Warren-Meeks
> Nativ Systems Ltd
> -- 
>
> _________________________________________________________
>
> CONSULTING  ·  TECHNOLOGY  ·  OUTSOURCING
> _________________________________________________________
>
> phone:  +44 (0)20 7580 9488     fax:    +44 (0)20 7580 9489
> _________________________________________________________
>
> web:      http://www.nativ-systems.com
> _________________________________________________________
>
>
> The contents of this email are intended exclusively for the addressee.
> If you are not the addressee you must not read, use or disclose the
> email contents; you should notify us immediately, by clicking  
> reply, and
> delete this email.
>
> Whilst Nativ Systems has taken reasonable steps to scan this email,
> it does not accept liability for any virus that may be contained
> within it.
>
>
>
>
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> 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

Joe Warren-Meeks
Nativ Systems Ltd
-- 

_________________________________________________________

CONSULTING  ·  TECHNOLOGY  ·  OUTSOURCING
_________________________________________________________

phone:  +44 (0)20 7580 9488     fax:    +44 (0)20 7580 9489
_________________________________________________________

web:      http://www.nativ-systems.com
_________________________________________________________


The contents of this email are intended exclusively for the addressee.
If you are not the addressee you must not read, use or disclose the
email contents; you should notify us immediately, by clicking reply, and
delete this email.

Whilst Nativ Systems has taken reasonable steps to scan this email,
it does not accept liability for any virus that may be contained  
within it.






-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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

Reply via email to