Bonjour alors voilà mon soucis (un parmis d'autres en l'occurence) :
Lorsque je tape:
ça me renvoie l'erreur :
Donc du coup de file dans le fichier en question et là je tombe sur le ligne 60 :
Voilà et quand je lance un /etc/init.d/nagios il me met :
C normal mais bon !!
Ca sent pas bon tout ça ! :lol:
Voilà merci de m'eclairer s'il vous plait !
Lorsque je tape:
Code:
bash-3.00# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ça me renvoie l'erreur :
Code:
Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Error: Unexpected token or statement in file '/usr/local/nagios/etc/minimal.cfg' on line 60. ***> One or more problems was encountered while processing the config files...
Donc du coup de file dans le fichier en question et là je tombe sur le ligne 60 :
Code:
# This is a sample host notification command that can be used to send email # notifications (about host alerts) to contacts. #define command{ (ligne 60)command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ }
Code:
bash-3.00# /etc/init.d/nagios restart Running configuration check... FAILED! Restart aborted. Check your Nagios configuration. bash-3.00#
Ca sent pas bon tout ça ! :lol:
Voilà merci de m'eclairer s'il vous plait !
Comment