Ajout de backslashes dans les commandes PDF Print E-mail
Pour les version 1.2.X, il y a un problème récurrent sous certaines distribution Linux, principalement Debian, à la modification des commandes de check des caractères \ vont être rajouté dans les command, ce qui rendra inutilisable la commande.
 

 
 
Par exemple :

notify-by-email:

/usr/bin/printf "%b" "***** Oreon 1.2.2 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

en regardant on a :


/usr/bin/printf \\\"%b\\\" \\\"***** Oreon 1.2.2 *****\\n\\nNotification Type: $NOTIFICATIONTYPE$\\n\\nService: $SERVICEDESC$\\nHost: $HOSTALIAS$\\nAddress: $HOSTADDRESS$\\nState: $SERVICESTATE$\\n\\nDate/Time: $DATETIME$\\n\\nAdditional Info:\\n\\n$OUTPUT$\\\" | /bin/mail -s \\\"** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **\" $CONTACTEMAIL$ 
 
 
Pour palier à ce problème, aller dans votre fichier de configuration de php et changer la valeur de magic_quotes_gpc. Passez cette valeur a "off". Ensuite redémarrez apache et tout devrait revenir dans l'ordre.
 
Latest News
Partners' News

© 2007-2008 Centreon - Revisited Experience Of Nagios - Web Site -