*nix Thread, Sending SNMP traps in Technical; I need to send an SNMP trap (just a general one, with a bit of text to be flagged up ...
15th August 2011, 06:31 PM #1
Sending SNMP traps
I need to send an SNMP trap (just a general one, with a bit of text to be flagged up on 'Argent' monitoring server) from Ubuntu server.
I've looked at the help on SNMPTRAP, and found it to be worse than useless.
Would a useful example have killed them? Their example doesn't seem to work anyway, it's done more to annoy me than enlighten me.
Has anyone got a cheatsheet for SNMPTRAP?
15th August 2011, 07:10 PM #2
Thanks to danielknox from:
jinnantonnixx (16th August 2011)
16th August 2011, 10:33 AM #3
That's quite useful. I had hoped to just short-cut it without understanding it, but it seems I'll have to know what I'm doing to get this to work.
16th August 2011, 11:41 AM #4
Managed to get it working, so Ubuntu server is now sending SNMP traps to the monitoring server when my bash scripts see something wrong.
This example was of some use:
This was decoded as a workable trap by Argent. From its log:
$snmptrap -v 1 -c public <snmp-server> '188.8.131.52.5.6' '184.108.40.206' 6 99 '55' 220.127.116.11.14.15 s "teststring"
It's not a proper MIB of course, but I just wanted to raise a text alert. It seems to have worked.
Following SNMP trap is received but matching none criteria of production SNMP
Trap Monitor: Trap generic=6 specific=99
Enterprise Oid=.iso.18.104.22.168.6 (.22.214.171.124.5.6)
Variable (String) = .iso.126.96.36.199.15 (.188.8.131.52.14.15)
Value = teststring
Last edited by jinnantonnixx; 16th August 2011 at 11:50 AM.
By tosca925 in forum Windows
Last Post: 29th November 2006, 10:02 AM
Last Post: 24th October 2006, 10:33 PM
By flyinghaggis in forum How do you do....it?
Last Post: 7th September 2006, 11:34 AM
By Mintsoft in forum Windows
Last Post: 7th July 2006, 12:52 PM
By browolf in forum Windows
Last Post: 11th May 2006, 10:26 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)