faddou
18th May 2007, 10:46
Bonjour,
j'ai un probleme de notification par fichier.txt mais je ne sais pas comment envoyer le fichier.txt
voilà le commande au-dessous, si il y a erreur, alors lequel?
# 'notify-by-file' command definition
define command{
command_name notify-by-file
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost:
$HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo:
$SERVICEOUTPUT$\nDate: $LONGDATETIME$" > /home/nagios.txt
}
Merci de votre aide
cdt
j'ai un probleme de notification par fichier.txt mais je ne sais pas comment envoyer le fichier.txt
voilà le commande au-dessous, si il y a erreur, alors lequel?
# 'notify-by-file' command definition
define command{
command_name notify-by-file
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost:
$HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo:
$SERVICEOUTPUT$\nDate: $LONGDATETIME$" > /home/nagios.txt
}
Merci de votre aide
cdt