bhozar
01-25-2008, 05:54 PM
I cant get Centreon reporting working correctly. I have searched the WIKI and forums, but no luck so far in fixing this problem.
My system:
Debian Lenny
Centreon 1.4.2.2
Nagios 2.9
Reporting tab only shows todays results, and no previous days results.
I am guessing the cron job is correct, as it shows todays results.
/etc/cron.d/centreon
0 0 * * * nagios php -q /usr/local/centreon/cron/inventory_update.php >> /usr/local/centreon/log/archiveLogInDB.log 2>> /usr/local/centreon/log/odsParsing.log
0 0 1-31 * * nagios php -q /usr/local/centreon/cron/reporting/ArchiveLogInDB.php >> /usr/local/centreon/log/archiveLogInDB.log 2>> /usr/local/centreon/log/odsParsing.log
* * * * * nagios /usr/local/centreon/cron/parsing_status.pl >> /usr/local/centreon/log/odsParsingStatus.log 2>> /usr/local/centreon/log/odsParsingStatus.log
* * * * * nagios /usr/local/centreon/cron/parsing_log.pl >> /usr/local/centreon/log/odsParsing.log 2>> /usr/local/centreon/log/odsParsing.log
I have ran the above comands successfully from the command line using:
sudo -u nagios CRONLINE
Log files are created, but nothing is written to them.
/usr/local/centreon/log/
drwxrwxr-x 2 www-data nagios 4096 2008-01-25 15:33 .
drwxrwxr-x 10 www-data www-data 4096 2008-01-09 13:37 ..
-rw-r--r-- 1 root root 0 2008-01-25 15:33 archiveLogInDB.log
-rw-r--r-- 1 www-data www-data 4392 2008-01-25 13:50 auth.log
-rw-r--r-- 1 www-data www-data 6823 2008-01-11 11:15 cfgimport.log
-rw-rw-rw- 1 nagios nagios 0 2008-01-25 15:10 inventory.log
-rw-r--r-- 1 www-data www-data 14063 2008-01-09 16:27 ldapsearch.log
-rw-r--r-- 1 nagios nagios 0 2008-01-25 15:27 odsParsing.log
-rw-r--r-- 1 nagios nagios 0 2008-01-25 15:27 odsParsingStatus.log
-rw-r--r-- 1 www-data www-data 25358 2008-01-11 12:22 rrdtool.log
/var/log/nagios/
drwxr-s--x 3 nagios adm 4096 2008-01-25 15:41 .
drwxr-xr-x 13 root root 4096 2008-01-25 13:48 ..
drwxr-xr-x 2 root root 4096 2007-06-11 22:10 archives
-rw-r--r-- 1 nagios adm 1737544 2008-01-25 15:36 nagios.log
-rw-r--r-- 1 nagios adm 269481937 2008-01-25 15:41 service-perfdata.tmp
"Initial state logging option" is set to 1 in nagios.cfg.
So what else am I missing to get these reports working for more than just today?
My system:
Debian Lenny
Centreon 1.4.2.2
Nagios 2.9
Reporting tab only shows todays results, and no previous days results.
I am guessing the cron job is correct, as it shows todays results.
/etc/cron.d/centreon
0 0 * * * nagios php -q /usr/local/centreon/cron/inventory_update.php >> /usr/local/centreon/log/archiveLogInDB.log 2>> /usr/local/centreon/log/odsParsing.log
0 0 1-31 * * nagios php -q /usr/local/centreon/cron/reporting/ArchiveLogInDB.php >> /usr/local/centreon/log/archiveLogInDB.log 2>> /usr/local/centreon/log/odsParsing.log
* * * * * nagios /usr/local/centreon/cron/parsing_status.pl >> /usr/local/centreon/log/odsParsingStatus.log 2>> /usr/local/centreon/log/odsParsingStatus.log
* * * * * nagios /usr/local/centreon/cron/parsing_log.pl >> /usr/local/centreon/log/odsParsing.log 2>> /usr/local/centreon/log/odsParsing.log
I have ran the above comands successfully from the command line using:
sudo -u nagios CRONLINE
Log files are created, but nothing is written to them.
/usr/local/centreon/log/
drwxrwxr-x 2 www-data nagios 4096 2008-01-25 15:33 .
drwxrwxr-x 10 www-data www-data 4096 2008-01-09 13:37 ..
-rw-r--r-- 1 root root 0 2008-01-25 15:33 archiveLogInDB.log
-rw-r--r-- 1 www-data www-data 4392 2008-01-25 13:50 auth.log
-rw-r--r-- 1 www-data www-data 6823 2008-01-11 11:15 cfgimport.log
-rw-rw-rw- 1 nagios nagios 0 2008-01-25 15:10 inventory.log
-rw-r--r-- 1 www-data www-data 14063 2008-01-09 16:27 ldapsearch.log
-rw-r--r-- 1 nagios nagios 0 2008-01-25 15:27 odsParsing.log
-rw-r--r-- 1 nagios nagios 0 2008-01-25 15:27 odsParsingStatus.log
-rw-r--r-- 1 www-data www-data 25358 2008-01-11 12:22 rrdtool.log
/var/log/nagios/
drwxr-s--x 3 nagios adm 4096 2008-01-25 15:41 .
drwxr-xr-x 13 root root 4096 2008-01-25 13:48 ..
drwxr-xr-x 2 root root 4096 2007-06-11 22:10 archives
-rw-r--r-- 1 nagios adm 1737544 2008-01-25 15:36 nagios.log
-rw-r--r-- 1 nagios adm 269481937 2008-01-25 15:41 service-perfdata.tmp
"Initial state logging option" is set to 1 in nagios.cfg.
So what else am I missing to get these reports working for more than just today?