Page 2 of 2

Re: trapped by traps

Posted: Tue Aug 06, 2013 1:34 pm
by abrist
Does the following work?

Code: Select all

service snmptrapd start
There may be some logic problems when looking for the id of a process (pidof)

Re: trapped by traps

Posted: Tue Aug 06, 2013 1:45 pm
by benhank
yeah it started
but when I run

Code: Select all

service snmptrapd restart
thats where I get the error listed above

Re: trapped by traps

Posted: Tue Aug 06, 2013 1:57 pm
by abrist
Alright. It may be that the restart portion of the the script called by systemd is not validated well. If the pid doesn't exist because the service is down, and you try to restart the service, the script errors. It is not a mission critical problem or anything, but it is weird that it happened when no other changes were done to the server.

Re: trapped by traps

Posted: Tue Aug 06, 2013 2:55 pm
by benhank
The server listed in unconfig objects was using the wrong server name.
I looked at the hosts and services and what do we have here?
the server was listed twice..
hostname
and
hostname.domain name
I removed the hosts and services.
Should I add the host with the passive wizard and then run the traps wizard on it?
The nagios server does receives the traps from the host. I just need nagios to read the trap info.

Re: trapped by traps

Posted: Tue Aug 06, 2013 3:00 pm
by sreinhardt
You should be able to either add back via passive wizard then go to unconfigured objects, presuming traps are actively coming in, and associate the traps with that host. Otherwise you could run both the trap and passive wizards provided they are configured the same.

Re: trapped by traps

Posted: Tue Aug 06, 2013 3:09 pm
by benhank
thanks fellas. i just found out that this is a bigger issue. Seems that a restore don on my server failed. I am getting errors in all the wrong places... So I am gonna rebuild it. (its the windows side taking over.)

Re: trapped by traps

Posted: Tue Aug 06, 2013 3:53 pm
by sreinhardt
Ouch man, good old windows! Let us know if you need anything! Otherwise for now I'll lock this up.