Page 1 of 1

can nagios display unknown traps sent to it?

Posted: Thu Nov 21, 2013 3:50 pm
by benhank
did you know that everything that is impossible is possible?

I just wanted to know if I can have nagios display and report unknown traps sent to it.

Re: can nagios display unknown traps sent to it?

Posted: Thu Nov 21, 2013 3:57 pm
by sreinhardt
yes, in the sense that nagios does not interpret the trap, snmptt is what determines if it is known or unknown. There should be a setting in snmptt.ini on exec-ing unknown traps. Setting this to something similar to how other traps are exec-ed in snmptt.conf should do this for you, basically using snmptraphandler.py with some basic arguments. I will say that I have not done this, so it will be a bit of a learning process for us both. I do have a way to test and validate this on my home system once I'm done with my current task. I would note that this may lead to quite a few items in unconfigured objects if not handled carefully.

Re: can nagios display unknown traps sent to it?

Posted: Thu Nov 21, 2013 4:52 pm
by benhank
that was alot of werds. I fell apart after "ye".. JK thanks man I will report my findings.


btw, off the top off your head, have you ever seen this:?

Code: Select all

[root@lkennagiost01 ~]# service snmpd restart
Stopping snmpd:                                            [FAILED]
[root@lkennagiost01 ~]# service snmptt restart
Stopping snmptt:                                           [  OK  ]
Starting snmptt: PID file: /var/run/snmptt.pid
                                                           [  OK  ]
[root@lkennagiost01 ~]# service snmptrapd restart
Stopping snmptrapd:                                        [FAILED]

no changed made to the server...

Never mind. I just got medieval on em... wiped them out and replaced them (reinstalled).

Re: can nagios display unknown traps sent to it?

Posted: Thu Nov 21, 2013 5:32 pm
by slansing
Oh.. well then, I guess that is one way to do it, I was going to have you call the init script manually and see if it bails with more verbose output.

Re: can nagios display unknown traps sent to it?

Posted: Thu Nov 21, 2013 6:27 pm
by benhank
yeah but i did a google search, and got a lot of replies saying that there is a bug in the new snmp... so the "screw that!" protocol was invoked.

Re: can nagios display unknown traps sent to it?

Posted: Fri Nov 22, 2013 10:07 am
by slansing
Hahaha, but what do you mean by the "new snmp?" It may be helpful if you link one of the pages you read.