Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Munin Graph

Discussion in 'General Discussion' started by zye, Oct 25, 2016.

Tags:
  1. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    114
    Likes Received:
    4
    Trophy Points:
    168
    i am running 2.0.25-6.cp1158 and my graph for exim mail throughput stopped. only 1 graph but it is very important for me that this one works. any ideas?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @zye,

    Could you try manually initiating the munin cron job to see if it successfully generates the graph? You can use these commands while logged in as the "root" user:

    Code:
    su - munin --shell=/bin/bash
    /usr/local/cpanel/3rdparty/perl/522/bin/munin-cron
    exit
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    290
    Likes Received:
    21
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    I had noticed the same with related errors in /var/log/munin/munin-node.log

    Error output from exim_mailstats:
    Error in tempfile() using template /var/lib/munin/plugin-state/nobody/XXXXXXXXXX: Could not create temp file /var/lib/munin/plugin-state/nobody/2Onyek2qTp: Permission denied at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Munin/Plugin.pm line 280.

    I added group write permissions to /var/lib/munin/plugin-state/nobody/ and that seemed to fix things.

    I'm still reverting the http_loadtime plugin to a 1.x version since the 2.x version doesn't work at all.
     
    SICT - Brendan likes this.
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Internal case CPANEL-9353 is open to address an issue where the "Exim Mail Throughput - by day" and "Exim Mail Throughput - by week" graphs are not working after the update to Munin 2.x. Here's an example of the error output you may notice:

    Code:
    2016/10/11-21:55:03 [10610] Error output from exim_mailstats:
    2016/10/11-21:55:03 [10610]     Error in tempfile() using template /var/lib/munin/plugin-state/nobody/XXXXXXXXXX: Could not create temp file /var/lib/munin/plugin-state/nobody/CQbZki3PaU: Permission denied at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Munin/Plugin.pm line 280.
    2016/10/11-21:55:03 [10610] Service 'exim_mailstats' exited with status 13/0.
    2016/10/11-21:55:03 [10623] Error output from exim_mailstats:
    2016/10/11-21:55:03 [10623]     Error in tempfile() using template /var/lib/munin/plugin-state/nobody/XXXXXXXXXX: Could not create temp file /var/lib/munin/plugin-state/nobody/v5NO1SPKad: Permission denied at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Munin/Plugin.pm line 280.
    This behavior looks to be by design from Munin, designed to prevent arbitrary commands ran as root on behalf of an unprivileged user, however I'll update this thread with more information on the status of this case as it becomes available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    114
    Likes Received:
    4
    Trophy Points:
    168
    any news on this?
     
  6. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    114
    Likes Received:
    4
    Trophy Points:
    168
    i got it to work again

    the permissions are

    chown root /var/lib/munin/plugin-state/root/

    chown nobody /var/lib/munin/plugin-state/nobody/


    drwxr-xr-x 2 nobody munin 4096 Jan 30 14:55 nobody/
    drwxr-xr-x 2 root munin 4096 Jan 30 14:55 root/

    now the exim throughput works again
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    There's no update to report on the status of internal case CPANEL-9353 at this time. I'll update this thread as soon as more information is available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    166
    I had this same issue come up after an upgrade jump from v60 to v64 on CentOS 6.9. Munin 2.0.25 was already installed and working previous to the upgrade, and then afterwards it was complaining about all sorts of permission errors. Changing the dir ownership as above seems to have gotten it working again for the graphs.
     
  9. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    166
    It seems that there are still various permissions issues though... but at least Exim seems to be working

    Code:
    2017/07/22-15:00:01 CONNECT TCP Peer: "[::ffff:127.0.0.1]:55152" Local: "[::ffff:127.0.0.1]:4949"
    2017/07/22-15:00:02 [5708] Error output from yum:
    2017/07/22-15:00:02 [5708]      Can't open /var/lib/munin/plugin-state/root/yum.state for reading: No such file or directory
    2017/07/22-15:00:02 [5708]      Please read 'munindoc yum' to understand why if the file does not exist.
    2017/07/22-15:00:02 [5708] Service 'yum' exited with status 2/0.
    2017/07/22-15:00:03 [5708] Error output from bind9_rndc:
    2017/07/22-15:00:03 [5708]      WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
    2017/07/22-15:00:03 [5708]      rndc: error: none:0: open: /etc/rndc.conf: permission denied
    2017/07/22-15:00:03 [5708]      rndc: could not load rndc configuration
    2017/07/22-15:00:03 [5708]      /etc/munin/plugins/bind9_rndc: /var/run/named.stats: No such file or directory
    2017/07/22-15:00:03 [5708] Service 'bind9_rndc' exited with status 2/0.
    2017/07/22-15:00:03 [5708] Error output from bind9_rndc:
    2017/07/22-15:00:03 [5708]      WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
    2017/07/22-15:00:03 [5708]      rndc: error: none:0: open: /etc/rndc.conf: permission denied
    2017/07/22-15:00:03 [5708]      rndc: could not load rndc configuration
    2017/07/22-15:00:03 [5708]      /etc/munin/plugins/bind9_rndc: /var/run/named.stats: No such file or directory
    2017/07/22-15:00:03 [5708] Service 'bind9_rndc' exited with status 2/0.
    2017/07/22-15:00:09 [5708] Error output from http_loadtime:
    2017/07/22-15:00:09 [5708]      /etc/munin/plugins/http_loadtime: line 78: syntax error: unexpected end of file
    2017/07/22-15:00:09 [5708] Service 'http_loadtime' exited with status 2/0.
    2017/07/22-15:00:09 [5708] Error output from http_loadtime:
    2017/07/22-15:00:09 [5708]      /etc/munin/plugins/http_loadtime: line 78: syntax error: unexpected end of file
    2017/07/22-15:00:09 [5708] Service 'http_loadtime' exited with status 2/0.
     
  10. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    114
    Likes Received:
    4
    Trophy Points:
    168
    same happend again on update to v66.0.17

    chown root /var/lib/munin/plugin-state/root/

    chown nobody /var/lib/munin/plugin-state/nobody/

    did the trick
     
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, internal case CPANEL-9353 was closed as it appears this only happened on updates from earlier versions of cPanel & WHM and is no longer occurring.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Benifato, Spain
    Same issue after upgrading to v70

    To fix:

    Code:
    chown root /var/lib/munin/plugin-state/root/
    chown nobody /var/lib/munin/plugin-state/nobody/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice