08.04.2011, 04:32 UTC+2

Sie sind nicht angemeldet.

http://nagios/nagios/nagtrap/index.php Webpage not displaying.

Babs

Anfänger

Beiträge: 2

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Ja

Anzahl-Hosts: 60

Anzahl Services: 200

Betriebssystem(e): Linux

Plugin-Version(en): 1.4.15

NDO-Version: 1

1

29.03.2011, 12:12

http://nagios/nagios/nagtrap/index.php Webpage not displaying.

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.

MiCkEy2002

Administrator

Beiträge: 4 155

Geburtstag: 29.02.1976 (35)

Geschlecht: Männlich

Wohnort: Roffhausen

Beruf: Systemadministrator

Anzahl Nagios-Server: 9

Hobbys: Bungee Springen, lesen....

Nagios-Version(en): 2.5 / 3.03

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: ~1700

Anzahl Services: ~18000

Betriebssystem(e): SuSE SLES 9

Plugin-Version(en): 1.4.3

NagVis-Version: 1.2.2

NDO-Version: 1.3.1/1.4b7

Perfparse-Version: 0.106.1

Sonstige Addon's: NagTrap 1.3/PNP

2

30.03.2011, 09:42

Hi,

have you change your memory limit in the php.ini? Most problems are to low memory limit for php. Change it to 64MB or more.

Bye
Michael

Babs

Anfänger

Beiträge: 2

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Ja

Anzahl-Hosts: 60

Anzahl Services: 200

Betriebssystem(e): Linux

Plugin-Version(en): 1.4.15

NDO-Version: 1

3

30.03.2011, 15:53

http://nagios/nagios/nagtrap/index.php Webpage not displaying. »

Hi
Thanks for the quick reply.
My memory limit setting within the php.ini is set to 128M by default so I left it in the default state. But I have realised that since it was a php script, php service should be processing the the script, so I have use rpm -aq php to check if php was installed, in which it was the case so I reinstall php and I also installed mysql-server and started mysqld service. This in effect changed the error displayed. I am currently dealing with the error below which I presumed to be a php error. the snmpt_archine to exist as a table in my snmptt database. If any one has any ideawhat this error means and how it can be resolve pls assist as I am not that good with php.
ERROR BELOW
readConfig(CONST_MAINCFG);

// Set variables in configuration
$configINI['database']['tableSnmpttArchive'] = "snmptt_archive";

// Read error.xml for error-messages
$errorXML = $MAIN->readXML("./include/xml/language/".$configINI['global']['language']."/error.xml");

// Read language
$languageXML = $MAIN->readXML("./include/xml/language/".$configINI['global']['language']."/main.xml");

// Set table
$table = $MAIN->setTable($tableName,$_REQUEST['severity'],$_REQUEST['trapSelect']);

$FRONTEND = new frontend($configINI);

$FRONTEND->openSite();

$FRONTEND->constructorHeader();

if ($MAIN->checkUser() == "0") {
$FRONTEND->printError("AUTHENTIFICATION",NULL);
} else {
$DATABASE = new database($configINI);
$DATABASE->connect();

// If set action, then mark, delete or archive a trap in the database
if($_GET['action'] == "mark" or $_GET['action'] == "delete" or $_GET['action'] == "archive") {
$DATABASE->handleTrap($_GET['action'],$_GET['trapID'],$table['name']);
}

// Mark more as one trap
if($_POST["markTraps"] AND $_POST["trapIDs"]){
foreach($_POST["trapIDs"] as $trapID){
$DATABASE->handleTrap("mark",$trapID,$table['name']);
}
}

// Delete more as one trap
if($_POST["deleteTraps"] AND $_POST["trapIDs"]){
foreach($_POST["trapIDs"] as $trapID){
$DATABASE->handleTrap("delete",$trapID,$table['name']);
}
}

// Delete more as one trap
if($_POST["archiveTraps"] AND $_POST["trapIDs"]){
foreach($_POST["trapIDs"] as $trapID){
$DATABASE->handleTrap("archive",$trapID,$table['name']);
}
}

$FRONTEND->constructorMain();
$FRONTEND->constructorFooter();
}
$FRONTEND->closeSite();
$FRONTEND->printSite();
?>

azafefo

Anfänger

Beiträge: 10

Wohnort: Tenerife

Beruf: Sys admin

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Icinga-Version(en): Centreon

Verteiltes Monitoring: Ja

Redundantes Monitoring: Nein

Anzahl-Hosts: 350

Anzahl Services: 780

Betriebssystem(e): Ubuntu 10.04 server

Plugin-Version(en): 1.4.15

NDO-Version: 1.4b9

4

04.04.2011, 11:59

Hi Babs!!! I visit this page and help me a lot. It's in frech but you can use google translate. I hope that this link can help you like help to me.

Ähnliche Themen