Bug #1047

2 bugs dans l'utilisation des envoies de commandes

Added by donkishoot - almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:07/17/2009
Priority:NormalDue date:
Assignee:Julien Mathis% Done:

100%

Category:CentWeb
Target version:Centreon-2.1
Resolution:fixed

Description

J'ai du inverser le code en commentaire pour ne plus avoir d'erreur sur la page web ni dans la log d'apache (/centcore.cmd denied) lorsque je demandais une action du type "desactiver les notification" dans un service

"/usr/local/centreon/www/class/centreonExternalCommand.class.php" line 89 of 210 --42%-- col 4-24 :
$str_remote = "echo " . $str_remote . " >> /var/lib/centreon/centcore.cmd";
//$str_remote = "echo " . $str_remote . " >> /centcore.cmd";

Désormais, le fichier /var/lib/centreon/centcore.cmd est bien généré et droppé par le process centcore mais je ne constate aucun résultat sur mon poller distant.

Associated revisions

Revision 8631
Added by Julien Mathis almost 5 years ago

may fix bug
fix #1047

Revision ab000355
Added by Julien Mathis almost 5 years ago

may fix bug
fix #1047

git-svn-id: http://svn.centreon.com/trunk/centreon@8631 6bcd3966-0018-0410-8128-fd23d134de7e

History

#1 Updated by Julien Mathis almost 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Julien Mathis

Bonjour,

Quels sont les droits du répertoire /var/lib/centreon/ ?

merci

#2 Updated by Julien Mathis almost 5 years ago

  • Status changed from Assigned to Solved
  • % Done changed from 0 to 100

Applied in changeset r8631.

#3 Updated by Julien Mathis almost 5 years ago

  • Status changed from Solved to Closed
  • Resolution set to fixed

Also available in: Atom PDF