PDA

View Full Version : Génération du fichier nagios.cfg


folkein
6th June 2006, 13:17
Lors de la génération de mon fichier nagios.cfg, oreon me retourne ca:

Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
Last Modified: 02-02-2004
License: GPL
Reading configuration data...
Error: NULL variable value - Line 21 of resource file '/usr/local/nagios/etc/resource.cfg'
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.

Merci de votre aide

rom
6th June 2006, 13:23
Tu n'as pas renseigne de variable dans le resource.cfg ?

folkein
6th June 2006, 13:25
dans le fichier resource.cfg?

Quand j'édite le fichier:
vi /usr/local/nagios/etc/resource.cfg

y a que ca dedans
#path tothe plugins
$USER1$=

Que dois je mettre apres le = ?

Merci

rom
6th June 2006, 13:42
Le chemin de tes plugins.
Cette MACRO va etre utilisée dans la définition de tes commandes, par exemple :

$USER1$/check_nt

folkein
6th June 2006, 15:08
Merci tout fonctionne correctement, du mois presque.

Détails des Hostgroup
Stat not available for the moment.



Détails des Servicegroup
Stat not available for the moment.

Pourtant nagios est lancé. J"ai généré les fichiers de configurations mais il me dit:

Pas de stat pour cet Host.

Pensez à générer les fichiers de configura]tion.

Host "localhost"
Name : localhost
Alias : local
Address : 192.168.198.166
Parents :
# Host Groups : test
Check_command :
Max_check_attempts : 10
Checks_enabled : Nothing
Event_handler_enabled : Nothing
Event_handler :
Low_flap_threshold : 0 %
High_flap_threshold : 0 %
Flap_detection_enabled : Nothing
Process_perf_data : Nothing
Retain_status_information : Nothing
Retain_nonstatus_information : Nothing
Notification_interval : 1 * 60 secondes
Notification_period : 24x7
Notification_options : d,u,r
Notifications_enabled : Nothing
Stalking_options :
Etat : Activé
Comment :
Modifier Supprimer

Merci de votre aide :lol:

folkein
7th June 2006, 11:19
Quand je regarde mes log:

/usr/local/nagios/libex/var/log/messages/


Jun 7 10:14:26 localhost nagios: Caught SIGTERM, shutting down...
Jun 7 10:14:26 localhost nagios: Nagios 1.2 starting... (PID=11016)
Jun 7 10:14:26 localhost nagios: Warning: Host 'gema' has no services associated with it!
Jun 7 10:14:26 localhost nagios: Finished daemonizing... (New PID=11017)
Jun 7 10:14:26 localhost nagios: Warning: Could not get group entry for 'admin'
Jun 7 10:14:26 localhost nagios: Warning: Could not get passwd entry for 'admin'
Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;SOFT;1;(No output!)
Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;SOFT;1;check_disk_space
Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;SOFT;2;(No output!)
Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;SOFT;2;check_disk_space
Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;HARD;3;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-service-perfdata;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-host-perfdata;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-epager;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-email;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-epager;(No output!)
Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-email;(No output!)
Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;HARD;3;check_disk_space
Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
Jun 7 10:14:36 localhost nagios: SERVICE ALERT: localhost;ping;CRITICAL;HARD;1;(No output!)
Jun 7 10:15:01 localhost crond(pam_unix)[11069]: session opened for user root by (uid=0)
Jun 7 10:15:01 localhost crond(pam_unix)[11070]: session opened for user root by (uid=0)
Jun 7 10:15:01 localhost crond(pam_unix)[11071]: session opened for user root by (uid=0)
Jun 7 10:15:01 localhost crond(pam_unix)[11072]: session opened for user root by (uid=0)
Jun 7 10:15:02 localhost crond(pam_unix)[11070]: session closed for user root
Jun 7 10:15:02 localhost crond(pam_unix)[11069]: session closed for user root
Jun 7 10:15:02 localhost crond(pam_unix)[11071]: session closed for user root
Jun 7 10:15:02 localhost crond(pam_unix)[11072]: session closed for user root
Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-service-perfdata;(No output!)
Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-host-perfdata;(No output!)
Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-epager;(No output!)
Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-email;(No output!)
Jun 7 10:15:37 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-epager;(No output!)
Jun 7 10:15:37 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-email;(No output!)

casi266
7th June 2006, 19:40
tu n'as pas lue la documentation a mon avis :roll:

Jun 7 10:14:26 localhost nagios: Warning: Host 'gema' has no services associated with it!
un hote sans service associé c'est pas bon déja
après y'a un problème avec le group admin
et le fait que rien ne s'affiche qlors que tout semble pourtant fonctionner peut venir de beaucoup de chose...
vérifi bien les chemins vers nagios dans la configuration d'oréon, regarde sur, le forum, le wiki...
merci et patience :wink: