+ Post New Thread
Results 1 to 4 of 4
*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 ...
  1. #1

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,974
    Thank Post
    113
    Thanked 493 Times in 337 Posts
    Blog Entries
    2
    Rep Power
    284

    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.
    http://manpages.ubuntu.com/manpages/...nmptrap.1.html

    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?

    Ta.

  2. #2
    danielknox's Avatar
    Join Date
    Jun 2009
    Location
    Dover
    Posts
    13
    Thank Post
    0
    Thanked 6 Times in 6 Posts
    Rep Power
    12
    This might help:

    TUT:snmptrap - Net-SNMP Wiki

  3. Thanks to danielknox from:

    jinnantonnixx (16th August 2011)

  4. #3

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,974
    Thank Post
    113
    Thanked 493 Times in 337 Posts
    Blog Entries
    2
    Rep Power
    284
    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.

  5. #4

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,974
    Thank Post
    113
    Thanked 493 Times in 337 Posts
    Blog Entries
    2
    Rep Power
    284
    Managed to get it working, so Ubuntu server is now sending SNMP traps to the monitoring server when my bash scripts see something wrong.
    Phew!

    This example was of some use:

    Code:
    $snmptrap -v 1 -c public <snmp-server> '1.2.3.4.5.6' '192.193.194.195' 6 99 '55' 1.11.12.13.14.15  s "teststring"
    This was decoded as a workable trap by Argent. From its log:

    Following SNMP trap is received but matching none criteria of production SNMP
    Trap Monitor: Trap generic=6 specific=99
    Enterprise Oid=.iso.2.3.4.5.6 (.1.2.3.4.5.6)
    From (127.0.0.1)
    Variable (String) = .iso.11.12.13.14.15 (.1.11.12.13.14.15)
    Value = teststring
    It's not a proper MIB of course, but I just wanted to raise a text alert. It seems to have worked.
    Last edited by jinnantonnixx; 16th August 2011 at 10:50 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 7
    Last Post: 29th November 2006, 09:02 AM
  2. Sendmail sending mail to Exchange
    By Ric_ in forum *nix
    Replies: 4
    Last Post: 24th October 2006, 09:33 PM
  3. Blocking external email sending/recieving for a pupil
    By flyinghaggis in forum How do you do....it?
    Replies: 10
    Last Post: 7th September 2006, 10:34 AM
  4. Outlook 2007 sending emails to @local
    By Mintsoft in forum Windows
    Replies: 0
    Last Post: 7th July 2006, 11:52 AM
  5. snmp on isa2004
    By browolf in forum Windows
    Replies: 1
    Last Post: 11th May 2006, 09:26 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •