Installation nmidSmokeping PLUGIN

General discussion about 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:

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

do you have any proxy or special firewall rules enabled that prevents the plugin on the Cacti server to access that page ?
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
pad19
Posts: 5
Joined: Fri Feb 01, 2013 3:33 pm

Re: Installation nmidSmokeping PLUGIN

Post by pad19 »

IP and website is only visable from my company network. So I need to be on vpn or in work to access website. But there is no firewall or any network rules inside.
Cacti is at /var/www/html/cacti and smoke ping is at /opt/smokeping/htdocs and there is symlink in /var/www/html/smokeping
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

so it's on the same device/server ? then use localhost or 127.0.0.1 as the smokeping IP instead of the external IP
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
pad19
Posts: 5
Joined: Fri Feb 01, 2013 3:33 pm

Re: Installation nmidSmokeping PLUGIN

Post by pad19 »

When I change "Cacti Settings (NMID)">"Smokeping URL - Server 1" to http://127.0.0.1 or localhost I getting this:

Code: Select all

<h3>Main Server</h3>/
<hr>
<h3>SP URL</h3>/smokeping/smokeping.fcgi
<hr>
<h3>Response Str</h3>
<hr>
<h3>File Part</h3>SZKIELET/szkielet-orc-pkin_mini.png<hr>
Warning: preg_match(): Unknown modifier 'z' in /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 90

Warning: preg_match(): Unknown modifier 'z' in /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 92
<h3>Image URL</h3>//smokeping/cache/SZKIELET/szkielet-orc-pkin_mini.png<hr><h3>Output</h3><hr>
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php:67) in /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 115

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

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

Can you try out the attached file?
Attachments
getSmokePingImage.zip
(1.54 KiB) Downloaded 145 times
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
pad19
Posts: 5
Joined: Fri Feb 01, 2013 3:33 pm

Re: Installation nmidSmokeping PLUGIN

Post by pad19 »

One warning

Code: Select all

<h3>Main Server</h3>/
<hr>
<h3>SP URL</h3>/smokeping/smokeping.fcgi
<hr>
<h3>Response Str</h3>
<hr>
<h3>File Part</h3>SZKIELET/szkielet-orc-pkin_mini.png<hr><h3>Image URL</h3>//cache/SZKIELET/szkielet-orc-pkin_mini.png<hr><h3>Output</h3><hr>
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php:67) in /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 115

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

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

That warning should be fixed with the attached file.
After this warning, does it display anything else ?
Attachments
getSmokePingImage.zip
(1.53 KiB) Downloaded 132 times
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
jimcjulsonjr
Posts: 48
Joined: Fri Dec 07, 2012 11:11 am

Re: Installation nmidSmokeping PLUGIN

Post by jimcjulsonjr »

Hello,

I am running the latest version of Cacti and all graphs are working great. I am trying to get this plugin working, and am running into some things I'm just not super familiar with.

OS:> Ubuntu 12.04 LTS
CACTI:> 0.8.8a (w/PIA)

I downloaded the latest NmidSmokeping from http://blog.network-outsourcing.de/prod ... smokeping/ and installed the plugin as instructed on the first page in this thread, ensured all permissions were assigned, and the confusion I have is on the Nmid tab in settings.

I installed smokeping from apt-get, and after about an hour of googling, I found out that it places the CGI file in /usr/lib/cgi-bin/smokeping.cgi. In the /etc/apache2/apache2.conf file, there is an entry now with the following code...

Code: Select all

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks
</Directory>
I placed the directory /usr/lib/cgi-bin/smokeping.cgi in the Nmid settings tab for the Smokeping URL field

Image

Now, when I go to add a device to begin graphing with smokeping, I get a really non-descript error (at least to me it is...I'm sure it's easy enough for most)

Image

I thought I followed all the instructions on page one pretty closely. Let me know what other information I can provide and I'm happy to.

I apologize if these are rudementary questions, and I would extremely grateful for any help you guys can offer. I'm not super strong in Linux and am really just kind of beginning. But I'm willing to read and learn if you guys can point me in the right direction.

Thank you in advance.
-------------------------------------

VERSION: Cacti 0.8.8b
POLLER: Spine
DATA SOURCES: 100,000K and Growing (Multiple Servers)
PLUGINS: AUTOM8, THOLD, DISCOVER, WEATHERMAP, BOOST, CLOG, NECTAR, MACTRACK, FLOWVIEW, SPIKEKILL, INTROPAGE, MONITOR
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

Please download v1.12.00 from http://blog.network-outsourcing.de/prod ... smokeping/

You actually found a bug, or not yet implemented feature :-)
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
jimcjulsonjr
Posts: 48
Joined: Fri Dec 07, 2012 11:11 am

Re: Installation nmidSmokeping PLUGIN

Post by jimcjulsonjr »

phalek wrote:Please download v1.12.00 from http://blog.network-outsourcing.de/prod ... smokeping/

You actually found a bug, or not yet implemented feature :-)

hehe, awesome! Thanks so much for such a fast response! Do you have a paypal account or link to where I can donate? Big fan of your work :)
-------------------------------------

VERSION: Cacti 0.8.8b
POLLER: Spine
DATA SOURCES: 100,000K and Growing (Multiple Servers)
PLUGINS: AUTOM8, THOLD, DISCOVER, WEATHERMAP, BOOST, CLOG, NECTAR, MACTRACK, FLOWVIEW, SPIKEKILL, INTROPAGE, MONITOR
jimcjulsonjr
Posts: 48
Joined: Fri Dec 07, 2012 11:11 am

Re: Installation nmidSmokeping PLUGIN

Post by jimcjulsonjr »

phalek wrote:Please download v1.12.00 from http://blog.network-outsourcing.de/prod ... smokeping/

You actually found a bug, or not yet implemented feature :-)

So now I get a different error, but I think I'm getting closer. If I had to take a semi-educated guess, I'd say it's got something to do with my actual Apache configuration.

Image

I have cacti setup as a separate virtual host using a dedicated IP. There are presently 3 other Virtual hosts all setup in Apache. When I installed smokeping via apt-get, it definitely added to Apache and I posted the code above which was the apache2.conf file showing the smokeping info...

Code: Select all

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks
</Directory>
Does the fact that I have separate virtual hosts have an impact on the directory that Smokeping is trying to write to? If not, then I suppose I'm a little unclear as to what directory it's attempting to write to. I would assume it's the user that apache is running as that can't write the output of the smokeping files to whatever directory it's looking at?

EDIT: I was able to fix the permissions issue. I had a small typo in the NMID tab for the directory that Smokeping writes out the config files to.

That being said, it just flat out went right back to the devices screen after I clicked on "Continue"....I have no clue where to find the Smokeping graphs :P
-------------------------------------

VERSION: Cacti 0.8.8b
POLLER: Spine
DATA SOURCES: 100,000K and Growing (Multiple Servers)
PLUGINS: AUTOM8, THOLD, DISCOVER, WEATHERMAP, BOOST, CLOG, NECTAR, MACTRACK, FLOWVIEW, SPIKEKILL, INTROPAGE, MONITOR
jimcjulsonjr
Posts: 48
Joined: Fri Dec 07, 2012 11:11 am

Re: Installation nmidSmokeping PLUGIN

Post by jimcjulsonjr »

jimcjulsonjr wrote:
phalek wrote:Please download v1.12.00 from http://blog.network-outsourcing.de/prod ... smokeping/

You actually found a bug, or not yet implemented feature :-)

So now I get a different error, but I think I'm getting closer. If I had to take a semi-educated guess, I'd say it's got something to do with my actual Apache configuration.

Image

I have cacti setup as a separate virtual host using a dedicated IP. There are presently 3 other Virtual hosts all setup in Apache. When I installed smokeping via apt-get, it definitely added to Apache and I posted the code above which was the apache2.conf file showing the smokeping info...

Code: Select all

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks
</Directory>
Does the fact that I have separate virtual hosts have an impact on the directory that Smokeping is trying to write to? If not, then I suppose I'm a little unclear as to what directory it's attempting to write to. I would assume it's the user that apache is running as that can't write the output of the smokeping files to whatever directory it's looking at?

EDIT: I was able to fix the permissions issue. I had a small typo in the NMID tab for the directory that Smokeping writes out the config files to.

That being said, it just flat out went right back to the devices screen after I clicked on "Continue"....I have no clue where to find the Smokeping graphs :P
EDIT 04/15/2013: I probably should have updated this sooner, but I opened up a ticket on Urban Softwares site and paid the $14.95 for a support subscription, and boy was it worth it. Our site has some cacti device tree's and actual devices that use the " | " (Pipe) character as a separator value, and that's what was causing all the problems the whole time. Those characters weren't setup in the code to be dealt with properly. That said, they are working on a fix for it now, and in the mean time, they got my smokeping graphs up and running lickity split.

I highly recommend that anyone who wants beautiful graphs to accurately track latency and performance, and that isn’t a Linux guru to use the Urban Software NMIDSmokePing support feature. Phalek is super responsive, and absolutely amazing to deal with. I honestly cannot believe that 1-on-1 support was only $14.95 USD. My company easily would have paid quadruple that for such services! Thank you Phalek!
-------------------------------------

VERSION: Cacti 0.8.8b
POLLER: Spine
DATA SOURCES: 100,000K and Growing (Multiple Servers)
PLUGINS: AUTOM8, THOLD, DISCOVER, WEATHERMAP, BOOST, CLOG, NECTAR, MACTRACK, FLOWVIEW, SPIKEKILL, INTROPAGE, MONITOR
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: Installation nmidSmokeping PLUGIN

Post by janchan88 »

I got page cannot be displayed error. URL is "http://XXXXXXXXX.com/smokeping/smokepin ... ree.Bar_L3"



The website cannot display the page



HTTP 500






Most likely causes:
•The website is under maintenance.
•The website has a programming error.






What you can try:











Refresh the page.












Go back to the previous page.












More information



This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

For more information about HTTP errors, see Help.
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: Installation nmidSmokeping PLUGIN

Post by janchan88 »

I was able to get further. Now I got the following error:

ERROR: opening '/var/lib/smokeping/Default_Tree/test.rrd': No such file or directory

/var/cache/smokeping/images/Default_Tree/test_last_10800.png
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: Installation nmidSmokeping PLUGIN

Post by janchan88 »

got it! Just need to restart smokeping
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests