extracting values from fields

"Andrew Small" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello All

 

I am using the following pieces of software

 

Trapgen

Snmtpd (net-snmp)

 

Trapgen sends a trap to snmpd which then forwards the data to a
traphandle which then invokes another script.

 

What I would like to do is extract the value from the string field and
put it into nagios.

 

Can anyone please advise me how to do this?

 

trapgen.exe -d <ip_address>:162 -c public -o ^ 1.3.5.1.4.1.2789.4025.1
-i 172.16.6.13 -g 6 -s 4025 -t 124501 ^ -v 1.3.6.1.4.1.2789.4025.1 -S
<string> 

cheers 
  
  
CAUTION: This email message and any attachments transmitted with it contains information that is CONFIDENTIAL and may be privileged or otherwise protected from disclosure. If you are not the intended recipient please notify Aspect Capital Limited ("Aspect") immediately ([email protected]) and delete all copies of this email message and any attachments transmitted with it from your system. If you are not the intended recipient, any use, disclosure or copying of this email message and any attachments transmitted with it is strictly prohibited.  
  
  
This email message and any attachments transmitted with it cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed or incomplete. Although Aspect routinely screens for viruses, it makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. 
  
  
For further information about Aspect please see our website at http://www.aspectcapital.com. Aspect is authorised and regulated by the Financial Services Authority for investment business.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
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.