trapped by traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: trapped by traps

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post by benhank »

yeah it started
but when I run

Code: Select all

service snmptrapd restart
thats where I get the error listed above
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: trapped by traps

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: trapped by traps

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post 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.)
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: trapped by traps

Post by sreinhardt »

Ouch man, good old windows! Let us know if you need anything! Otherwise for now I'll lock this up.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked