Page 3 of 4

Re: NagiosXI version Installation Error

Posted: Thu Oct 03, 2013 2:05 am
by angurisudhakar
I have configured the snmptt deamon,But i am getting below response,Waiting for trap...

please guide me for troubleshot.

SNMP Traps Active checks are disabled for this service Ok 4m 19s 1/1 2013-10-03 07:58:52 Waiting for trap...

Remote Linux server SNMP-Traps in NagiosXI server

Posted: Thu Oct 03, 2013 3:54 am
by angurisudhakar
Going through below link i have configured the SNMPTT deamon and SNMP-wizard for Capturing incoming traps,But i am getting below Error ,it is show,Please how to trouble shot the communication between to servers.

Waiting for trap


http://library.nagios.com/library/produ ... -nagios-xi

Re: NagiosXI version Installation Error

Posted: Thu Oct 03, 2013 10:22 am
by slansing
Have you tried sending a test trap from the troubleshooting section of the documentation you linked? Also, do you have anything in your:

Code: Select all

/var/log/snmptt/snmpttunknown.log

Re: NagiosXI version Installation Error

Posted: Fri Oct 04, 2013 1:22 am
by angurisudhakar
Yes i have tested ,
But traps are coming in /var/log/messages not in /var/log/snmptt/snmpttunknown.log

why it is coming in /var/log/messages ,is there any configuration problem.?

Re: NagiosXI version Installation Error

Posted: Fri Oct 04, 2013 4:30 am
by angurisudhakar
Hi ,
Can You please answer the below question.
1.If traps are coming into NagiosXI server where it is log-in(log file name and path).?
2. If traps are available in logf ile, How to read the traps script name (script and path) and display the webpage.?

3.define service {
host_name hostname
service_description SNMP Traps
use xiwizard_snmptrap_service
max_check_attempts 1
check_interval 1
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 1
notification_period xi_timeperiod_24x7
contacts nagiosadmin
icon_image snmptrap.png
_xiwizard snmp_trap
register 1
}


in above service there is no check_command is defined , how it will work.?

Re: NagiosXI version Installation Error

Posted: Fri Oct 04, 2013 10:55 am
by sreinhardt
They would be logged in either the /usr/local/nagios/var/nagios.log or /var/log/messages, and possibly both. I am confused on the second question, traps being sent to nagios services, are never read from a log file and processed, they are sent directly to the nagios command pipe. The service will work, as it is a passive check, it does not actively check or connect to anything. Snmptt and snmptraphandler.py forward correctly formatted events to nagios directly.

Edit: Also please do not double post, but instead edit your previous post. Our office hours are 9am-5pm CDT, and we are only available on the forums through those hours.

Re: NagiosXI version Installation Error

Posted: Mon Oct 07, 2013 1:29 am
by angurisudhakar
Hi,

http://exchange.nagios.org/directory/Ad ... on-Wizards

From the above link i have downloaded the SNMP-TRAP plug-in and Nagios XI by using the Upload option on the monitoring wizard administration screen successfully installed.

After that Configure->Core Config Manager->Configuration Wizards->Run the Monitoring Wizard->SNMP Trap
Click the traps option -> Select the hosts you would like to enable SNMP Traps for

I have added on host for monitoring the traps.

Note:Also also through the XI interface AdminAdmin -> Manage MIBs uploaded the respective MIBS.

In The web page it is showing STATUS-INFORMATION: OK: TRAP RESET

one more thing i have not found any script name snmptraphandler.py in NagioXI server.

even i extracted snmp-trap Plugin folder \snmp-trap\snmp-trap\plugins plugin are empty showing.

Re: NagiosXI version Installation Error

Posted: Mon Oct 07, 2013 3:11 pm
by sreinhardt
even i extracted snmp-trap Plugin folder \snmp-trap\snmp-trap\plugins plugin are empty showing.
I'm sorry, what is this in reference to?

As for the snmptraphandler.py, it would seem that you have it, as your traps are being forwarded if they are not in a pending state. Let's just 100% verify with the following command:

Code: Select all

rpm -qa | grep snmp

Re: NagiosXI version Installation Error

Posted: Mon Oct 07, 2013 10:37 pm
by angurisudhakar
Thanks for input now traps are receiving and displaying in web page.

how to monitor two different servers traps , To display specific hosts traps in webpage.?

Re: NagiosXI version Installation Error

Posted: Tue Oct 08, 2013 2:37 pm
by sreinhardt
You need to make trap services for each host that is sending traps in. From there, nagios will use the host address field to differentiate which trap should go to what service. You should not need to alter anything from snmptt and the like, unless additional mibs need to be added. If you do not add additional trap services within XI, you will see these other hosts go to the unknown alerts page in Admin.