Announcement

Collapse
No announcement yet.

Downtime and Acknowledge are not working, in last version of centreon

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Downtime and Acknowledge are not working, in last version of centreon

    Hello, sorry for my english.

    I made a new installation (rescent) of the Centeron:
    centreon-web-2.8.16
    centreon-engine-1.8.1
    centreon-broker-3.0.11
    centreon-connectors-1.1.3
    centreon-clib-1.4.2
    ...
    But "downtime" and "acknowledge" are not working.

    I found the topic below:

    https://forum.centreon.com/forum/cen...es-not-working

    And I did the following checks:

    But they are ok.

    [[email protected] ~]# ll /var/lib
    total 32
    drwxr-xr-x. 2 root root 79 Dec 1 22:17 alternatives
    drwx------. 3 root root 18 Sep 12 20:57 authconfig
    drwxr-xr-x 9 centreon centreon 116 Dec 7 18:00 centreon


    [[email protected] ~]#
    [[email protected] ~]# cat /etc/centreon/conf.pm
    #############################################
    # File Added by Centreon
    #

    $centreon_config = {
    VarLib => "/var/lib/centreon",
    CentreonDir => "/usr/share/centreon/",
    "centreon_db" => "centreon",
    "centstorage_db" => "centreon_storage",
    "db_host" => "localhost:3306",
    "db_user" => "centreon",
    "db_passwd" => 'xxxxxxxxxx'
    };

    # Central or Poller ?
    $instance_mode = "central";

    # Centreon Centcore Command File
    $cmdFile = "/var/lib/centreon/centcore.cmd";

    # Deprecated format of Config file.
    $mysql_user = "centreon";
    $mysql_passwd = 'xxxxxxxxxx';
    $mysql_host = "localhost:3306";
    $mysql_database_oreon = "centreon";
    $mysql_database_ods = "centreon_storage";

    1;
    [[email protected] ~]#
    [[email protected] /]# ll /var/lib/centreon/centcore.cmd
    ls: cannot access /var/lib/centreon/centcore.cmd: No such file or directory
    [[email protected] /]#
    [[email protected] ~]# locate centcore.cmd
    [[email protected] ~]#
    [[email protected] ~]# cd /
    [[email protected] /]# find ./ -name centcore.cmd
    find: ./proc/2472: No such file or directory
    find: ./proc/2473: No such file or directory
    find: ./proc/2474: No such file or directory
    find: ./proc/2475: No such file or directory
    find: ./proc/2495: No such file or directory
    find: ./proc/2496: No such file or directory
    find: ./proc/2497: No such file or directory
    find: ./proc/14536: No such file or directory
    find: ./proc/27213: No such file or directory
    find: ./proc/27217: No such file or directory
    find: ./proc/27218: No such file or directory
    find: ./proc/28583: No such file or directory
    find: ./proc/28584: No such file or directory
    find: ./proc/28585: No such file or directory
    find: ./proc/28586: No such file or directory
    find: ./proc/28591: No such file or directory
    find: ./proc/28592: No such file or directory
    find: ./proc/28593: No such file or directory
    find: ./proc/28594: No such file or directory
    find: ./proc/28628: No such file or directory
    find: ./proc/28630: No such file or directory
    find: ./proc/28631: No such file or directory
    find: ./proc/32610: No such file or directory
    find: ./proc/32619: No such file or directory
    find: ./proc/32621: No such file or directory
    [[email protected] /]#

  • #2

    I looked for errors in the centreon-cengine log (/var/log/centreon-engine/centengine.log) and the centreon-core log (/var/log/centreon/centcore.log), but no messages. I found only a few messages in the HTTP log (/ var / log / httpd / error_log). This happens to put a HOST or SERVICE into downtime or acknowledge.

    Here are the messages found in each of the following situations:

    Acknowledge host:
    -----------------
    Host name: [SAEN]--DBO-PRD-SAEHOMOLOG
    ...
    [Fri Dec 08 15:21:01.237170 2017] [:error] [pid 21722] [client 192.168.107.127:59028] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
    [Fri Dec 08 15:21:01.237592 2017] [:error] [pid 21722] [client 192.168.107.127:59028] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
    ...


    Acknowledge services:
    ---------------------
    Service name: Versao
    Service name: Wait Class
    ...
    [Fri Dec 08 15:10:20.761918 2017] [:error] [pid 10211] [client 192.168.107.127:58621] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
    [Fri Dec 08 15:10:20.762213 2017] [:error] [pid 10211] [client 192.168.107.127:58621] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d

    Comment


    • #3
      [Fri Dec 08 15:10:20.766932 2017] [:error] [pid 10211] [client 192.168.107.127:58621] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
      [Fri Dec 08 15:10:20.767216 2017] [:error] [pid 10211] [client 192.168.107.127:58621] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
      ...


      Downtime host:
      --------------
      Host name: [SAEN]--DBO-PRD-SAEHOMOLOG
      ...
      [Fri Dec 08 15:24:52.222878 2017] [:error] [pid 6348] [client 192.168.107.127:59161] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
      ...


      Downtime services:
      ------------------
      Service name: Tamanho do Banco
      Service name: Tempo de Conexao
      ...
      [Fri Dec 08 15:13:28.081706 2017] [:error] [pid 28250] [client 192.168.107.127:58724] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d

      Comment


      • #4
        [Fri Dec 08 15:13:28.090330 2017] [:error] [pid 28250] [client 192.168.107.127:58724] PHP Warning: file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 129, referer: http://192.168.110.22/centreon/main....5f8bfae747360d
        ...


        Please, can you help me?

        Comment


        • #5
          Hello, a change I had to make now was to change the "/ var / lib / centreon" directory permission to 755 to 775, because the "Schedule immediate check (Force)" command was not working. With this change I was able to solve this.
          But Downtime and Acknowledge are still not working.

          Comment


          • #6
            Hi, I've identified something that might help: If I run "Acknowlege" or "Set Downtime" on the page / screen: Monitoring -> Status Details, they do not work. However, if I run "Acknowlege" or "Set Downtime" on the page / screen: Home -> Custom Views (within a Custom View that I created) they work, and even show the message "External Command successfully submitted .. Exiting window ... ". Can you release a fix for this?

            Comment


            • #7
              I made the upgrade of the "centreon-web-centreon" web-version 2.8.16 for the centreon-web-2.8.17 version, but the problem persists.
              Last edited by adrianog; 2nd January 2018, 21:54. Reason: I made the upgrade of the "centreon-web-centreon" web-version 2.8.16 for the centreon-web-2.8.17 version, but the problem persists.

              Comment

              Working...
              X