#1  
Old 8th January 2012, 18:55
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 61
Thanks: 6
Thanked 7 Times in 5 Posts
Default Integrate munin into ISPConfig3

Hi there,

I'm running munin to mointor some servers. I would like to integrate munin into ispconfig. I would like to add a Link in "Tools". After clicking this link the munin-page should be shown within the ispconfig-frame.

Is this possible and how can this be achieved? I would appreciate any help.

Best regards
osterhase
Reply With Quote
Sponsored Links
  #2  
Old 9th January 2012, 08:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Add a file in the menu directory /usr/local/ispconfig/interface/web/tools/lib/menu.d/

Example:

create a new file like google.menu.php with this content:

Code:
<?php


// Menu

if($app->auth->is_admin()) {

$items = array();

$items[] = array( 'title' 	=> 'Google',
				  'target' 	=> 'content',
				  'link'	=> 'http://www.google.com');


$module['nav'][] = array(	'title'	=> 'Import',
							'open' 	=> 1,
							'items'	=> $items);

unset($items);
}

?>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th January 2012, 15:15
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 61
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
  #4  
Old 20th January 2012, 13:37
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 61
Thanks: 6
Thanked 7 Times in 5 Posts
 
Default

...ok. Too stupid question.

So I'm asking for a workaround. Is it possible to open the content in a new tab like "_blank"?

I'm thankful for your help.
Reply With Quote
Reply

Bookmarks

Tags
munin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Munin on an ISPConfig3 server Hans Installation/Configuration 13 2nd March 2011 14:37
Need help to integrate a webhosting theme with ispconfig3 ? pcurran General 0 30th November 2010 20:53
integrate ClamAV into PureFTPd on an ISPConfig3 server Hans HOWTO-Related Questions 2 15th May 2010 21:56
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
I moved munin, now i'm screwed jdkullmann HOWTO-Related Questions 9 24th May 2008 12:41


All times are GMT +2. The time now is 14:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.