Page 4 of 4

All the Snmp Traps are Mapped to one Host

Posted: Wed Oct 09, 2013 7:58 am
by angurisudhakar
1.Snmp traps from Different Hosts are coming into nagiosXI Server ,But All the traps are Mapped to one single Host.

2.One host service is created and working fine .when we tried to create another host service it is giving duplicated error.

Re: NagiosXI version Installation Error

Posted: Wed Oct 09, 2013 4:19 pm
by abrist
Are the traps forwarded from another trap forwarder? If so, they will get stamped with the forwarder's information. . . You will need to rewrite the traps if that is the case . . .

Re: NagiosXI version Installation Error

Posted: Wed Oct 09, 2013 4:20 pm
by sreinhardt
What errors are you seeing on the second trap service created?
When you say they are different hosts, are they actually coming in via completely separate hosts, or do you have something collecting them and forwarding to nagios?
Could you run the following command and send me the output please.

Code: Select all

tail -n 50 /var/log/snmptt/snmptt.log
tail -n 50 /var/log/snmptt/snmptt_unknown.log

Re: NagiosXI version Installation Error

Posted: Wed Oct 09, 2013 11:30 pm
by angurisudhakar
1.What errors are you seeing on the second trap service created?
Ans: Traps Are waiting status

2.When you say they are different hosts, are they actually coming in via completely separate hosts, or do you have.?
Ans: Completely different host please find the attachment.

Note: I am setting up Nagios XI under the trial license and have run into a problem. I am attempting to delete a host, but Nagios won't remove it.

After the host was created, I attempted to delete it through the nagios xi core config gui. Everything seemed removed, but the host still shows up on the dashboard. There are no more hosts, services etc to delete and nagios tells me it was created with a more advanced utility and suggests i remove the files manually.

looking at the nagios flat files on my system, i see the host object and services config files for that server. if i manually remove them and restart nagios, i get a configuration error and nagios fails to start..

i can't find whats pointing to the two files, i grep'd everything for the ip/hostname and nothing shows up.

question is, how can i delete this host from nagios at this point?

Re: NagiosXI version Installation Error

Posted: Thu Oct 10, 2013 4:11 pm
by sreinhardt
You need to always remove services and any dependencies of a host, prior to removing the host. Otherwise removal will fail.
Back to snmp traps, the waiting for trap, is not an error in any way. It is simply stating that the passive status of the check has yet to receive a result for that service. Are you seeing these traps come in under the Admin->Manage Unconfigured Objects page?

Re: NagiosXI version Installation Error

Posted: Wed Oct 16, 2013 5:41 am
by angurisudhakar
Hi,

Thanks for your input ,Nagios SNMP TRAPS are worikg fine and Duplication hosts create problem also resolved.

One more Question:

We need traps from Different OID's to be displayed in different rows for the same host.?

Right now we have only 1 SNMP service which displays the latest trap in 1 single row.

Re: NagiosXI version Installation Error

Posted: Wed Oct 16, 2013 1:59 pm
by sreinhardt
There is no way to add lines to an existing result that has been passed to nagios already. What you would need to do, is duplicated the snmp trap service, rename it, and then modify the oid that you want to send to the newly named service. The modification you would make, would be to alter the exec line where it says "SNMP Traps" to whatever the new service name is. You would then have separate services for each OID. This is about the only resolve that would work for this situation.

Re: NagiosXI version Installation Error

Posted: Thu Oct 17, 2013 1:30 am
by angurisudhakar
Thanks....for your quick replay

Now it is working fine...:-)