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 »

Hi McCutting,

What do you mean with "full screen" ? I guess you mean that it does not show the normal cacti menu to the left ?

And I didn't test it with 0.8.7d, but it is not integrated in PIA 2.x installation mode yet, so you still need to add it to the globals file.

Anything special you'd like to have ?
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 »

Hi Phalek,

Thanlks for the quick reply.

You're right in your assumption - I want to remove the left menu...:)

My "version" allows me to import from the same screen, and also allows me to do an export of the current view.

Nothing special - just features I wanted.
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 - do you have a revised html.php file for 0.8.7d ?
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 »

html.php ? Do you mean the html_tree.php file ??
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:html.php ? Do you mean the html_tree.php file ??
:oops: Yes !

I figured it out anyway - thanks.

PS - any more thoughts on using all the screen, and not having the left hand view ?
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 »

Well, no.

I still have to look into this ...
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
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Post by kelso »

After some toying around, I have smokeping working. I also installed NMIP and the smokeping plugins.

First:
Whats working..
1. Smokeping by itself
2. Cacti with NMIP

Whats not..
1. When loading a host (which has smokeping enabled), I see the following in the error_log.
2. Smokeping doesnt appear to be creating pngs for things that NMIP created in the config.

[Mon Apr 13 14:28:33 2009] [error] [client 192.168.1.140] [Mon Apr 13 14:28:33 2009] smokeping.cgi [client 192.168.1.140]: ERROR: Section 'XX_-_Fort_Myers' does not exist (display webpage). at /usr/local/smokeping/lib/Smokeping.pm line 1588.
[Mon Apr 13 14:28:33 2009] [error] [client 192.168.1.140] File does not exist: /var/www/html/smokeping

One thing I don't understand, is where its calling the /var/www/html/smokeping, because thats not configured anywhere as far as I can tell.

When clicking the link to view more, I more or less get the same error in the error log.

What am I missing here?



****UPDATE****
I had to add a @include for the config file that NMID creates, now its creating files as it should, but still getting that

File does not exist: /var/www/html/smokeping

When loading the following:

http://192.168.1.140/smokeping/getSmoke ... ype=detail
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

what did you configure in the settings dialog (within cacti) for nmidSmokeping ?? It seems like you didn't configure it correctly.

Did you read the PDF document on how to configure the nmidSmokeping plugin ?
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
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Post by kelso »

Yup, many times to make sure i didnt miss something. i was preoccupied with some other things though. I'll check more around with the plugin and see if i cant figure something out.

No clue as to why its calling /var/www/html/smokeping? or where i can look to fix that?

Image

Message from error log.

Code: Select all

[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.140] PHP Notice:  Undefined variable: server in /var/www/html/plugins/nmidWebService/webservice.php on line 95
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] multiple roots, wrong element 'b'
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <b>Warning</b>:  Missing argument 2 for getSmokePingServerURL() in <b>/var/www/html/plugins/nmidWebService/webservice.php</b> on line <b>85</b><br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <b>Notice</b>:  Undefined variable: server in <b>/var/www/html/plugins/nmidWebService/webservice.php</b> on line <b>89</b><br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <b>Notice</b>:  Undefined variable: server in <b>/var/www/html/plugins/nmidWebService/webservice.php</b> on line <b>95</b><br />
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getSmokePingServerURLResponse xmlns:ns1="http://soapinterop.org/"><return xsi:type="xsd:string">Error: Invalid Server : </return></ns1:getSmokePingServerURLResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> at /usr/local/smokeping/htdocs/getSmokePingPath.pl line 26
[Tue Apr 14 10:43:01 2009] [error] [client 192.168.1.108] Premature end of script headers: getSmokePingPath.pl

from getSmokePingPath.pl

Code: Select all

## START OF WEB SERVCE SETTINGS ###
### nmidWebservice plugin must be installed and configured ###
### Get the following from its configuration ###
## Make sure $webservice_url ends with ?wsdl ###
my $webservice_password = '';
my $webservice_url = 'http://192.168.1.140/plugins/nmidWebService/webservice.php?wsdl';
my $tmp_dir = '/tmp/';
### END OF WEB SERVCE SETTINGS ###
Also, going to http://192.168.1.140/plugins/nmidWebSer ... e.php?wsdl displays all the XML, if I remove the ?wsdl, i can click the other links for more info. I'm sure it's something small I'm overlooking.

Ohh one last thing, I replaced the file from page 15 as well with no change.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

hm,

so your smokeping site is at: http//192.168.1.40/smokeping/smokeping.cgi

Can you actually access that with your browser ?

and, do me a favour and do set a pasword for the webservice, this may actually be the problem ...
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
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Post by kelso »

I have tried with and without a password for the webservice. I decided to just add hosts manually to smokeping, wrote a quick php script and added a @include, it will do for now. Yes, the site works with the address specified.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok,

what do you do with the config file that is in the /var/www/html/smokeping-ms/data dir ? The file only contains the target section for smokeping, which is needed for nmidSmokpeing to work correct.

And, are you using an RPM installed smokeping version, or downloaded it from the smokeping website and installed it yourself ?
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
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks phalek for posting this. We now encourage contributors to publish their work at the central cacti repository at http://docs.cacti.net/plugins
Reinhard
User avatar
chercen
Posts: 41
Joined: Sun Apr 09, 2006 4:16 pm
Location: Spain

Did you solve this nmidPhpIP issue?

Post by chercen »

ericss wrote:I have run into an issue with phpIP. I have managed to install and enable the plugin. I've added a couple of subnets and prefixes. However, nothing shows up under the Cacti tree. When I first click on NMID phpIP a + icon briefly flashes next to Cacti Tree, but then it vanishes. If I do an empty search all my networks show up and I can edit entries, etc. But nothing ever shows up under the Cacti Tree.
Hi,

I have just installed nmidSmokeping and it works as expected. I also wanted to try nmidPhpip but I have run into the same issue with Cacti Tree: with I click on NMID phpIP the + icon flashes briefly but nothing shows up.

When I do a https://cactiserver/cacti/plugins/nmidP ... t_data.php everything seems to be ok, the result is code with the tree:
[ {"text": "Extranet", "id":"2", "children": [ {"text": "Intranet Administrativa", "id":"id-358", "cls":"folder", "children": [ {"text": "Trafico", "id":"id-1907", "cls":"folder", "children": [ {"text":
..... dozens of lines here .......
"10.17.98", "id":"id-000-4-10.17.98", "qtip":'Valladolid' , "leaf":"true", "cls":"file"}, {"text": "10.17.99", "id":"id-000-4-10.17.99", "qtip":'Valladolid' , "leaf":"true", "cls":"file"} ]} ]} ]
I have checked logs in apache but no luck, no errors....

Any help would be appreciated.

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

Post by phalek »

argh,

I managed to overloock that issue.

It's going to be my top prio for the next days until I fix that issue.

I have opened a new project on the following page to be able to track these bugs better.

nmidPhpIp Project Page

Please post bugs, feature requests and other things in there, too.
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 1 guest