Network Management Integration Plugin ( v0.3.9a Build 129 )

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

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

Post by phalek »

Hm,

CHeck if the following URLs (in the browser) return data:

Code: Select all

http://xxx/cacti/plugins/nmidWebService/webservice.php
-> Returns a html file with the webservice functions

http://xxx/cacti/plugins/nmidWebService/webservice.php?wsdl
-> Returns some sort of XML file
ericss
Posts: 7
Joined: Tue Oct 28, 2008 12:59 pm

Post by ericss »

Those both work, the first link takes me to NuSOAP: InteropTest, the 2nd to an XML file.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hm, did you replace the webservice-php file with the one from page 15 of this post ? the link to the file should be : http://forums.cacti.net/download.php?id=14943
ericss
Posts: 7
Joined: Tue Oct 28, 2008 12:59 pm

Post by ericss »

I think I did, but I just copied it over again to be sure. It didn't make a difference.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

And one thing,

the perl script will throw errors from the command line, as it needs some parameters. To test if it works or not, always use the link from the image ( the one you posted on the last page )

E.g:

Code: Select all

http://xx.xx.99.211/cgi-bin/getSmokePingPath.pl?start=1225390302&end=1225476702&target=Default_Tree.xx-xx-fw01&server=nmid_spserver1&graphtype=detail 
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

nmidphpIP IP Sort Order

Post by mcutting »

Phalek,

I'd like to change the sort order of all subnets listed under each tree "leaf". For example, I have a site shown as below

AMERICA

-192.168.10.0/24
-192.168.15.0/24
-192.168.12.0/24
-192.168.18.0/24
-192.168.13.0/24
-192.168.11.0/24

As you see from the above, the subnets are not in any logical order. I've managed to get the "All IP Subnets" part in order by using

$netIDs = db_fetch_assoc("select DISTINCT NetID from phpIP_addresses ORDER BY `ip` ASC");

at line 88 in get_data.php.

However, as the query for the tree/leaf subnets appears to be a join from multiple tables, I am unable to work out where to apply the same type of query. Could you offer any assistance with this ?

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 »

I'll have a look tonight. But you're correct for the Tree View of the IPs. The data for that tree is retrieved from the get_data.php file, so any sorting/changes there reflect that tree.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks Phalek.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

phalek wrote:I'll have a look tonight. But you're correct for the Tree View of the IPs. The data for that tree is retrieved from the get_data.php file, so any sorting/changes there reflect that tree.
Hi Phalek,

Did you have any time to look at this ?

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 »

Sorry, no I was unable to do so. I'm about to move from the Stuttgart area down to Lake Constance on Monday and had to prepare some stuff for that ...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ahh

I'm finished with moving for the most part (except unpacking the stuff and putting it in the cupboards again ...)

I'll have Internet connection and my PC setup, so I'm finally able to have a look at your problem and hopefully find a solution to it.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

New build uploaded which hopefully addresses the issues for mcutting.

Thanks for m00tpoint for his comments on the smokeping cgi script. I've added his version to this build.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

phalek wrote:New build uploaded which hopefully addresses the issues for mcutting.

Thanks for m00tpoint for his comments on the smokeping cgi script. I've added his version to this build.
Hi Phalek,

Sorry, but the new code seems to break the xpanding tree - I only see the root folder, and none of the nodes underneath ?

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 »

Hm, it's working for me, but then I don't have a lot of ip ranges in there.

Have a look at the url:

http://cactiserver/cacti/plugins/nmidPhpip/get_data.php

and look at the (HTML) source code as it's better formated. Does it give back any IP ranges at all ?

If yes, then there's probalby some comma or braket missing somewhere.

Is there any way we could have a webconf later this day, so you can show me the problem ?

It's always a bit difficult to debug something without having the life data in front :-)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

phalek wrote:Hm, it's working for me, but then I don't have a lot of ip ranges in there.

Have a look at the url:

http://cactiserver/cacti/plugins/nmidPhpip/get_data.php

and look at the (HTML) source code as it's better formated. Does it give back any IP ranges at all ?

If yes, then there's probalby some comma or braket missing somewhere.

Is there any way we could have a webconf later this day, so you can show me the problem ?

It's always a bit difficult to debug something without having the life data in front :-)
Phalek - thanks for all the help so far. I'm limited on time (planning a trip Japan at present), so I will probably not get to this for a few weeks. In the meantime, I'll work with what I have.

Thanks again.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest