nmidphpip plugin download, where?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

v03 is up, download it and try again with that version
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Phalek,

I'd like to remove the side panel so that the tree and resulting address list use all of the screen (looks a bit squashed I think).

Is this plugin calling hooks to include the side navigation bar ? I couldn't see anything obvious in the includes.

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

it's actually the include statements:

Code: Select all

include("./include/top_header.php");  -> include the sidebar

include("./include/top_graph_header.php"); -> does not include sidebase ( e.g. like the tree view)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

phalek wrote:it's actually the include statements:

Code: Select all

include("./include/top_header.php");  -> include the sidebar

include("./include/top_graph_header.php"); -> does not include sidebase ( e.g. like the tree view)
Perfect - thanks.

Have another error though:
Notice: Undefined index: netaddress in /usr/share/cacti/site/plugins/nmidPhpip/get_data.php on

Any thoughts ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

just a minor error, replace line 104 of the get_data.php file with the following:

Code: Select all

$text .= '<li><span class="folder">'.htmlentities($netCidr)."</span><ul>\n";
that will remove the link on the CIDR dirs, which caused the error.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

phalek wrote:just a minor error, replace line 104 of the get_data.php file with the following:

Code: Select all

$text .= '<li><span class="folder">'.htmlentities($netCidr)."</span><ul>\n";
that will remove the link on the CIDR dirs, which caused the error.
Perfect - thanks.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
rjoshuaw
Posts: 35
Joined: Wed Sep 02, 2009 1:23 pm

Post by rjoshuaw »

I seem to still be getting this:

10.53.1.0
Notice: Use of undefined constant client - assumed 'client' in /var/www/cacti/plugins/nmidPhpip/display.php on line 1233

When clicking on a network link in CIDR, the above shows up?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I uploaded v0.4 which should fix that problem. It also includes the fix for the problem mccutting describes above
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

phalek wrote:I uploaded v0.4 which should fix that problem. It also includes the fix for the problem mccutting describes above
Will this work with Cacti 0.8.7e and Plugin Architecture 2.5? (I am concerned about changes made to lib/html.php.)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I will provide an updated html file for 087e later this day.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Well, I think it is actually better to just post the lines that need to be changed.
so, for 0.8.7e it is the following:


line 697 after the following line:

Code: Select all

if ((isset($user_realms[$current_realm_id])) || (!isset($user_auth_realm_filenames{basename($item_url)}))) {

add the following code:

Code: Select all

$current_url = preg_replace("/(^\/(cacti\/)?)()/","$3",$_SERVER["PHP_SELF"]);

if (array_key_exists($current_url, $item_title) == true) {
      $draw_sub_items = true;
}else{
      $draw_sub_items = false;
}

and comment out the original code that was in these lines:

Code: Select all

                                        
if (array_key_exists(basename($_SERVER["PHP_SELF"]), $item_title) == true) {
      $draw_sub_items = true;
}else{
      $draw_sub_items = false;
}
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
psvendsen
Posts: 3
Joined: Thu Oct 15, 2009 3:19 pm

Post by psvendsen »

Great plugin but I am having a couple of display issues.

First, it is showing my graph tree folder structure above the "All CIDR".

Second, all the prefixes are being displayed for a particular CIDR block. For example, if i have a /16 CIDR block all 256 prefixes are listed, not just the allocated ones. In the screen shot, only 10.1.0.0/24 is allocated.

Thanks,
Paul
Attachments
display.png
display.png (3.24 KiB) Viewed 3859 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

which version are you using ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
psvendsen
Posts: 3
Joined: Thu Oct 15, 2009 3:19 pm

Post by psvendsen »

Using nmidPhpip_v04 on cacti 0.8.7e.

Thanks,
Paul
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

did you download and install the nmid_required files ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests