Bluehost.com Web Hosting $6.95

Re: monitor an extend OID

This is a discussion on Re: monitor an extend OID within the SNMP Users forums, part of the Networking and Network Related category; On 27/02/07, Torsten Jacobsson <torsten@exmandato.se> wrote: > How about, if I have a extend-...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2007
Dave Shield
 
Posts: n/a
Default Re: monitor an extend OID

On 27/02/07, Torsten Jacobsson <torsten@exmandato.se> wrote:
> How about, if I have a extend-script outputting an integer value like this:
>
> tor:/home/tjs# snmpget -v 1 -c public localhost nsExtendOutput1Line.\"bbb\"
> NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."bbb" = STRING: 276


The output of an extend script is not an integer - it's a string.
This string may contain a printable representation of an integer value,
but it's still a string.

> Is it possible to monitor this OID with the following command ?
>
> monitor -r 60 -I "trapp2" nsExtendOutput1Line.\"bbb\" > 300


No.


> If not, is there another way to do it ?


If you can tweak the script to return this integer value
as the return value of the script (i.e. "exit(276);" or similar),
then you can monitor it using nsExtendResult.
(Though I have a feeling this value may be limited to 8 bits,
i.e. 0-255).

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0