View Single Post
  #3  
Old 9th January 2012, 16:15
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 63
Thanks: 6
Thanked 7 Times in 5 Posts
Default

Thanks Till - that was what I was looking for.

From there I decided to integrate Munin into the "Monitoring" tab which seems to fit better for a Server-Monitoring-Tool. So the path would be rather "/usr/local/ispconfig/interface/web/monitor/lib/module.conf.php".

There I had the option to integrate the main Munin-Page under the menu-point "All Servers" or to kick the user directly to the selected server:

Code:
/*
 * Clear and set the Navigation-Items
 */
unset($items);

$items[] = array( 'title' 	=> "Show CPU info",
        'target' 	=> 'content',
        'link'	=> 'monitor/show_data.php?type=cpu_info',
        'html_id' => 'cpu_info');

/* Munin added admin_nw */				  
$items[] = array( 'title' 	=> 'Munin',
				  'target' 	=> 'content',
				  'link'	=> '/munin/example.com/' .$_SESSION['monitor']['server_name']. '/index.html');
/* End admin_nw */		
		
$module["nav"][] = array(	'title'	=> 'Hardware-Information',
        'open' 	=> 1,
        'items'	=> $items);

/*
The bold part of the code is my try to let the user select the server and then come directly to the server. Obviously I'm just running into the first server of the array. Is there an easy way to adapt changes in the Dropdown-Menu to the link?

I'm not quite sure if the next question is in the right spot: Due to the fact that munin is working with relative paths no graphs are shown in the content-view of ispconfig because they try to be loaded from the ispconfig-Panel Domain which won't work. I have a couple of ideas to solve this but all of them are connected with a lot of hard coding. Any suggestions what the best way would be to fix this?

Best regards
osterhase
Reply With Quote