Postfix monitoring with mailgraph tutorial

Discussion in 'General' started by CreeWarrior, Jan 12, 2016.

  1. CreeWarrior

    CreeWarrior Member

    Hi

    sorry posting for help on the tutorial and in response to your comment there.

    I followed the tutorial everything install fine i can start and stop the mailgraph service, however in the tutorial just after reconfiguring the mailgraph service when trying to view through my browser i get an internal server error, on both ip of my server and fqdn.
    So i continued with the tutorial and password protected mailgraph directory, i still get internal server error its just password protected now.
    From: till at: 2016-01-10 08:52:23
    Reply

    Here is the output of apache2ctl -M
    Code:
    root@###:/var/log/apache2# apache2ctl -M
    AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:61
    Loaded Modules:
    core_module (static)
    so_module (static)
    watchdog_module (static)
    http_module (static)
    log_config_module (static)
    logio_module (static)
    version_module (static)
    unixd_module (static)
    access_compat_module (shared)
    actions_module (shared)
    alias_module (shared)
    auth_basic_module (shared)
    auth_digest_module (shared)
    authn_core_module (shared)
    authn_file_module (shared)
    authz_core_module (shared)
    authz_groupfile_module (shared)
    authz_host_module (shared)
    authz_user_module (shared)
    autoindex_module (shared)
    cgi_module (shared)
    dav_module (shared)
    dav_fs_module (shared)
    deflate_module (shared)
    dir_module (shared)
    env_module (shared)
    fastcgi_module (shared)
    fcgid_module (shared) <-------------------------------------------- Would this be mod_fcgi
    filter_module (shared)
    include_module (shared)
    mime_module (shared)
    mpm_prefork_module (shared)
    negotiation_module (shared)
    php5_module (shared)
    python_module (shared)
    rewrite_module (shared)
    setenvif_module (shared)
    socache_shmcb_module (shared)
    ssl_module (shared)
    status_module (shared)
    suexec_module (shared)
    suphp_module (shared)
    root@###:/var/log/apache2#
    I checked apache2.log and error.log in /var/log/apache2/ i cant see anything to do with mailgraph or error 500
    I did check suexec.log and did find soemthing to do with mailgraph

    Code:
    [2016-01-12 13:06:34]: uid: (5016/web19) gid: (5005/client1) cmd: .php-fcgi-starter
    [2016-01-12 13:51:40]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 13:51:40]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:05]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:05]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:08]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:08]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:08]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:08]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:09]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:09]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:10]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:10]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:04:10]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:04:10]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:07:26]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:07:26]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:07:27]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:07:27]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:07:27]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:07:27]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:07:32]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:07:32]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    [2016-01-12 14:09:38]: uid: (5021/web24) gid: (5005/client1) cmd: mailgraph.cgi
    [2016-01-12 14:09:38]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The fcgi module is installed on your server. When you want to access mailgraph trough a website (and not the server hostname), then copy
    /usr/lib/cgi-bin/mailgraph.cgi into the cgi-bin directory of the website.
     
  3. CreeWarrior

    CreeWarrior Member

    Hi i tried again and finally seen soemthing in th error.log file
    Code:
    [Wed Jan 13 09:35:46.027190 2016] [cgi:error] [pid 10807] [client 2001:470:1f05:266::100:60345] AH01215: suexec policy violation: see suexec log for more details
    [Wed Jan 13 09:35:46.027270 2016] [cgi:error] [pid 10807] [client 2001:470:1f05:266::100:60345] End of script output before headers: mailgraph.cgi
    
    And then in the suexec.log file
    Code:
    [2016-01-13 09:35:46]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: mailgraph.cgi
    [2016-01-13 09:35:46]: command not in docroot (/usr/lib/cgi-bin/mailgraph.cgi)
    
     
  4. CreeWarrior

    CreeWarrior Member

Share This Page