Hi!
Tried changing permission on munin addon, so that reseller (managed server, where owner has reseller privs and we have root) may be able to see stats.
Shouldn't this work out of the box? What am I missing?
Getting "Sorry, only root may view munin stats." when visiting /munin/index.html as a reseller.
Tried changing permission on munin addon, so that reseller (managed server, where owner has reseller privs and we have root) may be able to see stats.
Code:
#!/usr/bin/perl
# cpanel - addon_munin.cgi Copyright(c) 2011 cPanel, Inc.
# All rights Reserved.
# [email protected] http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
#WHMADDON:munin:Munin Service Monitor
BEGIN { unshift @INC, '/usr/local/cpanel'; }
my $security_token = $ENV{'cp_security_token'} || '';
print "Location: $security_token/munin/index.html\r\n\r\n";
Getting "Sorry, only root may view munin stats." when visiting /munin/index.html as a reseller.