Hello
I have got nagios currently running in our environment, and this runs on
a nagios server.
However we planing on extending this functionality by also monitoring
SNMP trap and I thought Nagtrap should be a good starting point.
I downloaded the tarball from source forge and untar the file. I noticed
immediately that there was no installation manual / documentation
contained within the folder.
I eventually turned to the following site for assistance.
http://www.nagtrap.org/doku.php/en:doku:nagios
my installation are.
1 dedicated Nagios server I called this "Nagios"
2 Dedicated SNMP trap receiving server called "snmpserver" which as
snmptt and snmp Trap translator configured and running. on the same
server I have got Mysql database installed and a db created called snmptt
3. Different client forwarding traps to the trap receiving server.
*
WHAT WORKS*
1. Clients are able to forward snmp trap to the trap receiving server
2 The trap receiving server is able to forward the traps to the Nagios
server on request and this information can been see on Nagios
Report/Event log
as I have made the required check_command and services within the
relevant Nagios .cfg files.
3. Since I have created a database called snmptt, this db has also been
tested using the following test parameter from the Nagios server.
./check_snmptraps.pl -H srv_tes_02 -m -c
root:/usr/local/nagios/libexec# ./check_snmptraps.pl -H srv_tes_02 -m -c
OK - No critical Traps in the database|'critical trap='0;;;;
root:/usr/local/nagios/libexec# ./check_snmptraps.pl -H srv_tes_02 -m -c -O'.1.3.6.1.4.1.10418.2.1.3.0.27'
OK - No critical Traps in the database|'critical trap='0;;;;
root:/usr/local/nagios/libexec#
With the following result carried out on the nagios server, I realised that it making connection with the snmptt database on the snmpserver.
*WHAT IS NOT WORKING.*
With the ray of hope as specified above, I advance into getting the
NagTrap integrated into Nagios
Still following the advice on the main site.
As it says: I have copied the folder nagtrap into /usr/local/nagios/share
In the configuration, it says that I should edit the
/nagtrap/etc/config.ini.php which was done.
This file does not exist as was stated on the site.
This file actually exist in
/usr/local/nagios/share/nagrap/etc/config.ini.php-dist
So I have renamed the file as
/usr/local/nagios/share/nagrap/etc/config.ini.php and leaving it in the
same location
The documentation did not specify where to place the check_snmptraps.pl.
so I have made an assumption and placed this file in
/usr/local/nagios/libexec.
There was no made of where to place check_snmp_traps script asssumption
was made to place script in /usr/local/nagios/libexec.
4 I have modify my nagios side.php to
*
Within the Nagios Services.cfg*, I have made the following definition.
define service{
name Nagios
service_description SNMP Alerting
notes SNMP Alerts
notes_url
http://nagios/nagios/nagtrap/index.php?h…e=$HOSTADDRESS$
}*
Apach Log Result*
httpd:::access_log
192.168.2.20 - nagiosadmin [29/Mar/2011:10:45:28 +0100] "GET /nagios/nagtrap/index.php HTTP/1.1" 200 11 "http://nagios/side.php" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110308 Fedora/3.6.15-1.fc14 Firefox/3.6.15"
httpd::::: error_log
None generated.
When I clicked on Nagtrap on the side up bar in nagios, There was noting
displayed.
*
Proxy Running*
Yes we have a proxy running and I have set the no proxy for the Nagtrap url
Is there any place where I could find the correct installation manual
for Nag trap
What possible could I have done wrong.