Add output of extend to a triggered event

Fedil Grogan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAHi2DmLD6boNZvPw6pTgnX0L95fGFmn3S=XvrYPFQb7ndFGx5g@mail.gmail.com>
Hello,
   I've been trying to figure this out without much success. Maybe I
just don't know exactly what to look for but I can't seem to find the
answer. I would be grateful for any help someone could give me.
   What I've done is setup a couple monitors in my snmpd.conf file.
When it triggers I know the event occurred but the information
contained in the trap isn't very useful. Here is the information that
is received from the trap:

Notification that the trigger indicated by the object instances has
fired, for triggers with mteTriggerType 'boolean' or 'existence'.
mteHotTrigger: nra2Tomcat;
mteHotTargetName: ;
mteHotContextName: ;
mteHotOID: .1.3.6.1.4.1.8072.1.3.2.3.1.4.15.110.114.97.50.84.111.109.99.97.116.67.104.101.99.107;
mteHotValue: 0;

The monitor config in my snmpd.conf file looks like so:
monitor -r 300 -I -u public nra2Tomcat nsExtendResult."nra2TomcatCheck" != 0

That script also produces output that I would like to include in the
trap. If I do an snmpwalk I get:
NET-SNMP-EXTEND-MIB::nsExtendCommand."nra2TomcatCheck" = STRING:
/home/fedil/scripts/websiteCheck/websiteCheck.php
NET-SNMP-EXTEND-MIB::nsExtendArgs."nra2TomcatCheck" = STRING: x.x.x.x
ds/svc/ipg_shows
NET-SNMP-EXTEND-MIB::nsExtendInput."nra2TomcatCheck" = STRING:
NET-SNMP-EXTEND-MIB::nsExtendCacheTime."nra2TomcatCheck" = INTEGER: 5
NET-SNMP-EXTEND-MIB::nsExtendExecType."nra2TomcatCheck" = INTEGER: exec(1)
NET-SNMP-EXTEND-MIB::nsExtendRunType."nra2TomcatCheck" = INTEGER: run-on-read(1)
NET-SNMP-EXTEND-MIB::nsExtendStorage."nra2TomcatCheck" = INTEGER: permanent(4)
NET-SNMP-EXTEND-MIB::nsExtendStatus."nra2TomcatCheck" = INTEGER: active(1)
NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."nra2TomcatCheck" = STRING:
Webpage has content!
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."nra2TomcatCheck" = STRING:
Webpage has content!
NET-SNMP-EXTEND-MIB::nsExtendOutNumLines."nra2TomcatCheck" = INTEGER: 1
NET-SNMP-EXTEND-MIB::nsExtendResult."nra2TomcatCheck" = INTEGER: 0
NET-SNMP-EXTEND-MIB::nsExtendOutLine."nra2TomcatCheck".1 = STRING:
Webpage has content!

So how can I include the nsExtendOutLine to the event that gets
triggered and sent as the snmp trap? Or other custom varbinds? I'm
fairly new to SNMP so please be as descriptive as possible.

Thanks,
Fedil


-- 
You can keep up with me at my blog:
Fedil's Blog (fedil.ukneeq.com)

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
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.