Re: monitor an extend OID

Torsten Jacobsson <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

Another question in the same area:

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

Is it possible to monitor this OID with the following command ?

monitor -r 60 -I "trapp2" nsExtendOutput1Line.\"bbb\" > 300


If not, is there another way to do it ?


/Torsten


At 17:37 2007-02-26, Kyle Tucker wrote:
> > If you wish to monitor a single instance (nsExtendResult."test1")
> > then try adding the flag -I  (minus-capital-i).   That says to treat
> > the test as a single instance, rather than running an snmpwalk
> > over it (which will trigger the next instance as well)
>
>That was it - works as desired now. Thanks a lot.
>
>--
>- Kyle
>---------------------------------------------
>[email protected]   http://www.panix.com/~kylet
>---------------------------------------------
>
>-------------------------------------------------------------------------
>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?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>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


-------------------------------------------------------------------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.