Bonjour,
actuellement en stage de fin de diplome, j'ai comme projet d'installer dans l'entreprise un logiciel de supervision du réseau : Nagios (version 3.0.1 (stable))
J'ai suivi le tutoriel d'installation suivant :
http://www.pc-fute.com/...
Je me suis arrêté dans ce tutoriel à la partie
START Nagios, juste après la définition des droits d'accès.
J'ai installé Nagios sur un Debian 4 etch.
Le problème est le suivant :
J'arrive à accéder à l'interface web de Nagios, donc le serveur apache fonctionne correctement. Mais lorsque je navigue dans mes pages, j'ai cette erreur qui ne me quitte pas :
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!
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 parcourru le sujet sur votre forum, mais je n'ai pas trouvé réponses à mes questions.
Quelques petits résultats de commandes :
station-nagios:/usr/local/nagios/etc# /etc/init.d/nagios status
nagios is not running
station-nagios:/usr/local/nagios/etc# /etc/init.d/nagios checkconfig
Running configuration check... OK.
station-nagios:/usr/local/nagios/etc# /etc/init.d/nagios start
Starting nagios: done.
station-nagios:/usr/local/nagios/etc# /usr/local/nagios/bin/nagios –v /usr/local/nagios/etc/nagios.cfg
Nagios 3.0.1
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-01-2008
License: GPL
Error: Cannot open main configuration file '/usr/local/nagios/etc/–v' for reading!
Nagios 3.0.1 starting... (PID=17037)
Local time is Mon Apr 14 11:23:06 CEST 2008
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=17037)
station-nagios:/usr/local/nagios/etc# ps aux | grep nagios
avahi 2521 0.0 0.3 2556 948 ? Ss 09:01 0:00 avahi-daemon: running [station-nagios.local]
root 17397 0.0 0.3 2880 756 pts/0 R+ 11:35 0:00 grep nagios
Je pense qu'il devrait y avoir un démon de nagios non ?
Voilà, voilà, si quelqu'un pouvait avoir la gentiellesse de m'aider à résoudre ce problème, je suis allé voir la FAQ Nagios mais je n'ai rien trouvé.
Merci de votre aide :)
Configuration: Linux Debian
Mozilla 1.8.1.13
PS : J'ai mis mon sujet dans le forum Linux/Unix, peut être aurais-je du le mettre dans le forum Réseau, si c'est le cas veuillez m'excuser pour cette erreur involontaire.