All,
I've hammered my way through several items with this plugin, but am still getting errors.
What I've configured/fixed:
0) Smokeping is up and running, graphs are working, etc.
1) The correct device tree created by NMID is in /etc/smokeping/config.
2) getSmokePingPath.pl was barfing on the Windows perl path statement. Removed it. Then it barfed on "/usr/bin/perl^M." So I catted the file, and saved the resulting text, to get it out of DOS format. ewwwww!
3) chmodded getSmokePingPath.pl to make it executable.
4) apt-get install libsoap-lite-perl to resolve a dependency error.
5) Tried putting in some sensible values for my $webservice_path and password. (There is no password for my smokeping page). Also installed the webservice plugin.
It's still not working. The plugin does create a link with the correct path to the smokeping graph for the device; I can click on it and the smokeping page comes up. But the graph isn't on the Cacti graph page, just a little placeholder graphic.
I have the following errors in /var/log/apache2/errors.log:
Whenever I start/restart the smokeping daemon:
[Mon Nov 24 14:10:00 2008] [error] [client 127.0.0.1] [Mon Nov 24 14:10:00 2008] smokeping.cgi [client 127.0.0.1]: Use of uninitialized value in string eq at /usr/share/perl5/smokeping/Smokeping.pm line 631.
[Mon Nov 24 14:10:00 2008] [error] [client 127.0.0.1] [Mon Nov 24 14:10:00 2008] smokeping.cgi [client 127.0.0.1]: Use of uninitialized value in string eq at /usr/share/perl5/smokeping/Smokeping.pm line 981.
Whenever I pull up a device graphs page in Cacti where a smokeping graph should be:
[Mon Nov 24 14:10:52 2008] [error] [client 127.0.0.1] , referer: http://myserver.mydomain.com/cacti/grap ... leaf_id=13
[Mon Nov 24 14:10:52 2008] [error] [client 127.0.0.1] not well-formed (invalid token) at line 76, column 13, byte 3305 at /usr/lib/perl5/XML/Parser.pm line 187, referer: http://myserver.mydomain.com/cacti/grap ... leaf_id=13
[Mon Nov 24 14:10:52 2008] [error] [client 127.0.0.1] Premature end of script headers: getSmokePingPath.pl, referer: http://myserver.mydomain.com/cacti/grap ... leaf_id=13
Box is running Ubuntu 8.04, up to date. Smokeping is installed from apt. Cacti is installed from tarball. All are the current versions.
I'm out of ideas, any help out there?
TIA,
m00tpoingt
NMID Smokeping Problems
Moderators: Developers, Moderators
Fixed the error in smokeping.pm with the fix found at https://lists.oetiker.ch/pipermail/smok ... 02806.html.
Still getting the same 3 errors when I select a cacti graph page.
m00t
Still getting the same 3 errors when I select a cacti graph page.
m00t
?wsdl did the trick. Thanks much.
In the interest of giving a little something back, I've attached file getSmokePingPath.pl.txt. Might be good to put this into the gz (the existing script is in DOS text format and barfs on Linux). I've removed the Windows perl path from the file, and added a couple of comment lines to help with the webservice configuration.
m00t
In the interest of giving a little something back, I've attached file getSmokePingPath.pl.txt. Might be good to put this into the gz (the existing script is in DOS text format and barfs on Linux). I've removed the Windows perl path from the file, and added a couple of comment lines to help with the webservice configuration.
m00t
- Attachments
-
- getSmokePingPath.pl.txt
- (2.86 KiB) Downloaded 482 times
Who is online
Users browsing this forum: No registered users and 1 guest