ant
08-01-2007, 05:21 PM
J'ai installé nagios/oreon sans problème. Mais la j'ai un souci et je ne sais vraiment plus quoi essayer.
Une foi après avoir vérifié la configuration d'oreon, j'ai créé un host,service...
j'exporte les fichier dans nagios il me retourne:
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 48 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK
Donc pas de souci
Ensuite je redémare les services SQL,HTTPD,NAGIOS
Et là dans l'interface de nagios j'ai:
Whoops!
Error: Could not read host and service status information!
The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.
Some other things you should check in order to resolve this error include:
1. Check the Nagios log file for messages relating to startup or status data errors.
2. Always verify configuration options using the -v command-line option before starting or restarting Nagios!
3. Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
J'ai vérifié les chemins des fichier nagios.cfg et cgi.cfg tout colle.
J'ai vérifié les droits, ils ont l'air d'être bon NON?
-rwxrwxr-x 1 apache nagios 1795 aoû 1 16:13 cgi.cfg
-rwxrwxr-x 1 apache nagios 1921 aoû 1 12:00 cgi.cfg~
-rw-r--r-- 1 apache nagios 6494 aoû 1 16:13 checkcommands.cfg
-rwxrwxr-x 1 apache nagios 8579 jui 31 16:46 commands.cfg
-rw-r--r-- 1 apache nagios 1250 aoû 1 16:13 contactgroups.cfg
-rw-r--r-- 1 apache nagios 1502 aoû 1 16:13 contacts.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 dependencies.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 escalations.cfg
-rw-r--r-- 1 apache nagios 1205 aoû 1 16:13 hostextinfo.cfg
-rw-r--r-- 1 apache nagios 1244 aoû 1 16:13 hostgroups.cfg
-rw-r--r-- 1 apache nagios 1491 aoû 1 16:13 hosts.cfg
-rwxrwxr-x 1 apache nagios 20 jui 31 16:55 htpasswd.users
-rwxrwxr-x 1 apache nagios 12469 jui 31 16:46 localhost.cfg
-rw-r--r-- 1 apache nagios 3423 aoû 1 16:13 misccommands.cfg
-rwxrwxr-x 1 apache nagios 3431 aoû 1 16:13 nagios.cfg
-rwxrwxr-x 1 apache nagios 3504 aoû 1 13:52 nagios.cfg~
-rwxrwxr-x 1 apache nagios 1193 aoû 1 16:13 resource.cfg
-rw-r--r-- 1 apache nagios 1294 aoû 1 16:13 serviceextinfo.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 servicegroups.cfg
-rw-r--r-- 1 apache nagios 1502 aoû 1 16:13 services.cfg
-rw-r--r-- 1 apache nagios 1993 aoû 1 16:13 timeperiods.cfg
Si quelqu'un aurait une solution à mon problème, elle serait vraiment bien venu.
Merci
Une foi après avoir vérifié la configuration d'oreon, j'ai créé un host,service...
j'exporte les fichier dans nagios il me retourne:
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 48 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK
Donc pas de souci
Ensuite je redémare les services SQL,HTTPD,NAGIOS
Et là dans l'interface de nagios j'ai:
Whoops!
Error: Could not read host and service status information!
The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.
Some other things you should check in order to resolve this error include:
1. Check the Nagios log file for messages relating to startup or status data errors.
2. Always verify configuration options using the -v command-line option before starting or restarting Nagios!
3. Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
J'ai vérifié les chemins des fichier nagios.cfg et cgi.cfg tout colle.
J'ai vérifié les droits, ils ont l'air d'être bon NON?
-rwxrwxr-x 1 apache nagios 1795 aoû 1 16:13 cgi.cfg
-rwxrwxr-x 1 apache nagios 1921 aoû 1 12:00 cgi.cfg~
-rw-r--r-- 1 apache nagios 6494 aoû 1 16:13 checkcommands.cfg
-rwxrwxr-x 1 apache nagios 8579 jui 31 16:46 commands.cfg
-rw-r--r-- 1 apache nagios 1250 aoû 1 16:13 contactgroups.cfg
-rw-r--r-- 1 apache nagios 1502 aoû 1 16:13 contacts.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 dependencies.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 escalations.cfg
-rw-r--r-- 1 apache nagios 1205 aoû 1 16:13 hostextinfo.cfg
-rw-r--r-- 1 apache nagios 1244 aoû 1 16:13 hostgroups.cfg
-rw-r--r-- 1 apache nagios 1491 aoû 1 16:13 hosts.cfg
-rwxrwxr-x 1 apache nagios 20 jui 31 16:55 htpasswd.users
-rwxrwxr-x 1 apache nagios 12469 jui 31 16:46 localhost.cfg
-rw-r--r-- 1 apache nagios 3423 aoû 1 16:13 misccommands.cfg
-rwxrwxr-x 1 apache nagios 3431 aoû 1 16:13 nagios.cfg
-rwxrwxr-x 1 apache nagios 3504 aoû 1 13:52 nagios.cfg~
-rwxrwxr-x 1 apache nagios 1193 aoû 1 16:13 resource.cfg
-rw-r--r-- 1 apache nagios 1294 aoû 1 16:13 serviceextinfo.cfg
-rw-r--r-- 1 apache nagios 1158 aoû 1 16:13 servicegroups.cfg
-rw-r--r-- 1 apache nagios 1502 aoû 1 16:13 services.cfg
-rw-r--r-- 1 apache nagios 1993 aoû 1 16:13 timeperiods.cfg
Si quelqu'un aurait une solution à mon problème, elle serait vraiment bien venu.
Merci