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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

phalek wrote:hm, odd

you could uncomment all the print statement and the exit(1) statement in the perl script and call it in your browser again.

It should print some urls and file/image names.

Especially look at the url it displays and try to call that one in the browser.

This is What I get when I uncommnet the placing them back 1 at the time


G:\cacti\cgi-bin>perl getSmokePingPath.pl
<br><br>/tmp/<br>
G:\cacti\cgi-bin>perl getSmokePingPath.pl
/tmp/<br>
G:\cacti\cgi-bin>perl getSmokePingPath.pl

G:\cacti\cgi-bin>perl getSmokePingPath.pl
Content-type: image/png
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

that looks like it's not catching the smokeping url.

Can you paste the complete url (anoymizing the ip) here ? use the url from the magnification glass next to the not working image
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Thank Phalek fro all you help....here it goes

http://servername/cgi/Smokeping.cgi?tar ... _-_1011411
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

is that really an "Uppercase" S in Smokeping ?

oh, and what does the url to the image look like ? it's the actual call to the cgi
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

This is link to the actual 1 hour graph.....

http://servername/cgi/smokeping.cgi?dis ... _-_1011411

This link is the one the cacti hourglass

http://servername/cgi/smokeping.cgi?tar ... _-_1011411

and shows all 5 graphs (1h 10h 30h 10d 400d ).

I have changed to lower cases all links, no change
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ha,

look in the pl script for the following lines:

Code: Select all

if ($url =~ m/(http:.*)\/cgi-bin\/smokeping\.cgi.*/)
{
    $mainServer = $1;
}
elsif ($url =~ m/(http:.*)\/smokeping\.cgi.*/)
{
    $mainServer = $1;
}
according to your urls it should be

Code: Select all

if ($url =~ m/(http:.*)\/cgi\/smokeping\.cgi.*/)
{
    $mainServer = $1;
}
elsif ($url =~ m/(http:.*)\/smokeping\.cgi.*/)
{
    $mainServer = $1;
}
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 »

the date seems to be wrong, too ... it's normaly a unix timestampt e.g. "1248815095"

but I'm not sure if that has any effect at all.
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

i Had changed earlier cgi-bin to cgi in the script with no changes

...the stamp date is taking it I think from this file

include/html/inc_timespan_selector.php

being called from this file G:\cacti\lib\html_tree.php
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ok, but what is the url to the image ?

it should be something like the following.

Code: Select all

http://redmine.nmid-plugins.de:8080/cgi-bin/getSmokePingPath.pl?start=1248729529&end=1248815929&target=Default_Tree.Smokeping_Sites.cnncom&server=nmid_spserver1&graphtype=detail
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Sorry:

here it goes

Code: Select all

http://servername/cacti/cgi-bin/getSmokePingPath.pl?start=1248794400&end=1248816000&target=Cisco_Routers.Aylmer_Cisco_-_1011411&server=nmid_spserver1&graphtype=detail
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

i cannot see anything unusual right now. Can you do a webmeeting so I can have a look at that system ?
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Thank you for your help, I'm about to be off for 2 weeks in about an hour. I will try to get a crack at it when I get back. I think I might do a complete clean installation of everything, as I have made to many changes to the code and files.. and its very possible that I've screwed up something along the way ..

Thanks again

Luis Alegria 8) 8) 8)
123ralle
Posts: 15
Joined: Wed Dec 20, 2006 7:32 am

Post by 123ralle »

Hello,

on cacti 0.8.7e and PIA 2.5 i'll the two errors :

Warning: include(./include/html/inc_timespan_settings.php) [function.include]: failed to open stream: No such file or directory in /usr/local/cacti/plugins/nmid/graph_view.php on line 6

Warning: include() [function.include]: Failed opening './include/html/inc_timespan_settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/cacti/plugins/nmid/graph_view.php on line 6

Any fixes for that?

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

Post by phalek »

That are easily fixed, but i have not bothered until now ... going to upload a new updated version for nmid and nmidSmokeping this evening.
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Hi Phalek:

Did you upload them the new files version, I would like to try NMID again!!!

Thanks...

LA
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest