Bonjour,
Le reporting ne fonctionne pas chez moi, tous les rapports antérieurs à aujourd'hui sont en Pending.
Je suis sous Ubuntu 6.10, nagios Version 2.5, Oreon 1.3.3 (sans perfparse), apache2 et PHP Version 5.1.6,
Je pense avoir changé tout ce qui est nécessaire mais le reporting ne fonctionne toujours.
Histoire de gagner un peu de temps, voici quelques exacts des fichiers de conf :
CRONTAB :
[email protected]:/usr/local/oreon/cron# crontab -l
# m h dom mon dow command
0 0 1-31 * * nagios php -q /usr/local/oreon/cron/ArchiveLogInDB.php
59 23 * * * /usr/local/oreon/cron/deleteDB.pl > /dev/null
Fichier ArchiveLogInDB.php
$path_oreon = '/usr/local/oreon/';
$NagiosPathArchive = "/usr/local/nagios/var/";
Fichier deleteDB.pl
my $PerfparseInstallFolder = "/srv/perfparse/bin/"; //je n'y est pas toucher car pas perfparse
my $file_lock = "/usr/local/nagios/var/purge.lock";
my $oreon_conf = "/usr/local/oreon/www/oreon.conf.php";
Droits sur les Fichiers :
[email protected]:/usr/local/oreon/cron# ls -l /usr/local/oreon/
total 28
drwxrwxr-x 2 www-data www-data 4096 2007-03-30 17:40 cron
drwxrwxr-x 5 www-data www-data 4096 2007-02-09 14:53 filesGeneration
drwxrwxr-x 4 www-data www-data 4096 2007-02-09 14:53 filesUpload
drwxrwxr-x 7 www-data www-data 4096 2007-02-09 14:53 GPL_LIB
drwxrwxr-x 2 www-data www-data 4096 2007-02-09 14:53 log
drwxrwxr-x 2 nagios nagios 4096 2007-02-09 14:53 rrd
drwxrwxr-x 12 www-data www-data 4096 2007-02-13 16:10 www
[email protected]:/usr/local/oreon/cron# ls -l /usr/local/nagios/var/
total 1092
drwxrwxr-x 2 nagios nagios 4096 2007-03-30 00:00 archives
-rw-rw-r-- 1 nagios nagios 238 2007-02-13 18:23 comment.log
-rwxrwxr-x 1 nagios nagios 238 2007-02-13 15:51 comments.dat
-rwxrwxr-x 1 nagios nagios 239 2007-02-13 15:51 downtime.dat
-rw-rw-r-- 1 nagios nagios 239 2007-02-13 18:23 downtime.log
-rw-r--r-- 1 nagios nagios 6 2007-03-30 16:32 nagios.lock
-rw-r--r-- 1 nagios nagios 212282 2007-03-30 17:35 nagios.log
-rwxrwxr-x 1 nagios nagios 264339 2007-03-30 16:32 objects.cache
-rw-r--r-- 1 nagios nagios 0 2007-03-29 23:59 purge.lock
-rw------- 1 nagios nagios 7635 2007-03-30 16:32 retention.dat
drwxrwxr-x 2 nagios nagios 4096 2007-03-30 16:32 rw
-rw-rw-r-- 1 nagios nagios 285118 2007-03-30 17:56 status.log
-rw------- 1 nagios nagios 297012 2007-03-30 17:32 status.sav
-rw-r--r-- 1 nagios nagios 0 2007-03-29 23:59 /usr/local/nagios/var/purge.lock
-rwxrwxr-x 1 www-data www-data 990 2007-02-09 18:31 /usr/local/oreon/www/oreon.conf.php
Si je lance le script en manuel J'ai une erreur
[email protected]:/usr/local/oreon/cron# php ArchiveLogInDB.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Pourquoi je n'arrive pas a lancer le script ArchiveLogInDB.php manuellement?
Quelqu'un a une idée du problème que je rencontre, y'a-t-il un pb de droit quelque part ? Un pb de CRON ?
Merci d'avance pour votre aide,
Jeff
Le reporting ne fonctionne pas chez moi, tous les rapports antérieurs à aujourd'hui sont en Pending.
Je suis sous Ubuntu 6.10, nagios Version 2.5, Oreon 1.3.3 (sans perfparse), apache2 et PHP Version 5.1.6,
Je pense avoir changé tout ce qui est nécessaire mais le reporting ne fonctionne toujours.
Histoire de gagner un peu de temps, voici quelques exacts des fichiers de conf :
CRONTAB :
[email protected]:/usr/local/oreon/cron# crontab -l
# m h dom mon dow command
0 0 1-31 * * nagios php -q /usr/local/oreon/cron/ArchiveLogInDB.php
59 23 * * * /usr/local/oreon/cron/deleteDB.pl > /dev/null
Fichier ArchiveLogInDB.php
$path_oreon = '/usr/local/oreon/';
$NagiosPathArchive = "/usr/local/nagios/var/";
Fichier deleteDB.pl
my $PerfparseInstallFolder = "/srv/perfparse/bin/"; //je n'y est pas toucher car pas perfparse
my $file_lock = "/usr/local/nagios/var/purge.lock";
my $oreon_conf = "/usr/local/oreon/www/oreon.conf.php";
Droits sur les Fichiers :
[email protected]:/usr/local/oreon/cron# ls -l /usr/local/oreon/
total 28
drwxrwxr-x 2 www-data www-data 4096 2007-03-30 17:40 cron
drwxrwxr-x 5 www-data www-data 4096 2007-02-09 14:53 filesGeneration
drwxrwxr-x 4 www-data www-data 4096 2007-02-09 14:53 filesUpload
drwxrwxr-x 7 www-data www-data 4096 2007-02-09 14:53 GPL_LIB
drwxrwxr-x 2 www-data www-data 4096 2007-02-09 14:53 log
drwxrwxr-x 2 nagios nagios 4096 2007-02-09 14:53 rrd
drwxrwxr-x 12 www-data www-data 4096 2007-02-13 16:10 www
[email protected]:/usr/local/oreon/cron# ls -l /usr/local/nagios/var/
total 1092
drwxrwxr-x 2 nagios nagios 4096 2007-03-30 00:00 archives
-rw-rw-r-- 1 nagios nagios 238 2007-02-13 18:23 comment.log
-rwxrwxr-x 1 nagios nagios 238 2007-02-13 15:51 comments.dat
-rwxrwxr-x 1 nagios nagios 239 2007-02-13 15:51 downtime.dat
-rw-rw-r-- 1 nagios nagios 239 2007-02-13 18:23 downtime.log
-rw-r--r-- 1 nagios nagios 6 2007-03-30 16:32 nagios.lock
-rw-r--r-- 1 nagios nagios 212282 2007-03-30 17:35 nagios.log
-rwxrwxr-x 1 nagios nagios 264339 2007-03-30 16:32 objects.cache
-rw-r--r-- 1 nagios nagios 0 2007-03-29 23:59 purge.lock
-rw------- 1 nagios nagios 7635 2007-03-30 16:32 retention.dat
drwxrwxr-x 2 nagios nagios 4096 2007-03-30 16:32 rw
-rw-rw-r-- 1 nagios nagios 285118 2007-03-30 17:56 status.log
-rw------- 1 nagios nagios 297012 2007-03-30 17:32 status.sav
-rw-r--r-- 1 nagios nagios 0 2007-03-29 23:59 /usr/local/nagios/var/purge.lock
-rwxrwxr-x 1 www-data www-data 990 2007-02-09 18:31 /usr/local/oreon/www/oreon.conf.php
Si je lance le script en manuel J'ai une erreur
[email protected]:/usr/local/oreon/cron# php ArchiveLogInDB.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Pourquoi je n'arrive pas a lancer le script ArchiveLogInDB.php manuellement?
Quelqu'un a une idée du problème que je rencontre, y'a-t-il un pb de droit quelque part ? Un pb de CRON ?
Merci d'avance pour votre aide,
Jeff
Comment