Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Announcements concerning Plugins for Cacti
Moderators: Developers , Moderators
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Tue Jul 28, 2009 3:01 pm
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
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Jul 28, 2009 3:30 pm
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
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Tue Jul 28, 2009 3:48 pm
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Jul 28, 2009 3:50 pm
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
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Jul 28, 2009 4:03 pm
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;
}
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Jul 28, 2009 4:05 pm
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.
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Tue Jul 28, 2009 4:10 pm
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
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Jul 28, 2009 4:17 pm
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
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Tue Jul 28, 2009 4:22 pm
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
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Wed Jul 29, 2009 3:10 pm
i cannot see anything unusual right now. Can you do a webmeeting so I can have a look at that system ?
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Wed Jul 29, 2009 3:27 pm
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
123ralle
Posts: 15 Joined: Wed Dec 20, 2006 7:32 am
Post
by 123ralle » Tue Aug 25, 2009 7:32 am
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
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Tue Aug 25, 2009 7:42 am
That are easily fixed, but i have not bothered until now ... going to upload a new updated version for nmid and nmidSmokeping this evening.
zoemu
Cacti User
Posts: 287 Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada
Post
by zoemu » Wed Aug 26, 2009 9:59 am
Hi Phalek:
Did you upload them the new files version, I would like to try NMID again!!!
Thanks...
LA
Users browsing this forum: No registered users and 0 guests