Installation nmidSmokeping PLUGIN

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

Re: Installation nmidSmokeping PLUGIN

Post by artiflo »

In nmidSmokeping 1.06 doesn't work for me.

That is because I have "..cgi" instead of ".cgi" in this part (getSmokePingImage.php):

Code: Select all

if ( preg_match("/(http:.*)\/cgi-bin\/smokeping\..cgi.*/i",$url,$matches) ) {
    $mainServer = $matches[1];
} elseif ( preg_match("/(http:.*)\/smokeping\..cgi.*/i",$url,$matches) ) {
    $mainServer = $matches[1];
}

Code: Select all

if ( preg_match("/(http:.*)\/cgi-bin\/smokeping\.cgi.*/i",$url,$matches) ) {
    $mainServer = $matches[1];
} elseif ( preg_match("/(http:.*)\/smokeping\.cgi.*/i",$url,$matches) ) {
    $mainServer = $matches[1];
}
That solve my issue.
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 »

odd, the \..cgi in regexp normally matches both

Code: Select all

.cgi
.fcgi
the . is translated to "matches any character (including no character 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
thoms27
Posts: 1
Joined: Wed Jun 20, 2012 5:09 am

Re: Installation nmidSmokeping PLUGIN

Post by thoms27 »

Hello,

I installed this plugin, but no graph appear under cacti. The graph appear correctly when I click on the Icon for SmokePing web page.

I have an error in the log of apache:

[Wed Jun 20 12:06:06 2012] [error] [client X.X.X.X] [Wed Jun 20 12:06:06 2012] smokeping.cgi [client X.X.X.X]: ERROR: Section '\xbc\x93\x96\x9a\x91\x8b\xa0\xce\xd1\xac\x96\x8b\x9a\xa0\xce' does not exist (display webpage). at /usr/share/smokeping/lib/Smokeping.pm line 1557.

Cacti Version 0.8.8a
nmidSmokeping_v1.06

Have you got an idea ?
Could you help me please ?

Best regards

Thomas
DangerDevil
Posts: 3
Joined: Wed Jul 18, 2012 7:59 am

Re: Installation nmidSmokeping PLUGIN

Post by DangerDevil »

Hello,
same issues with same cacti and smokeping version.
The link works, the graph inside cacti not.
Tried different settings for the plugin, but seems a deeper problem.
The error message is the same on my installation.
thoms27 wrote:Hello,

I installed this plugin, but no graph appear under cacti. The graph appear correctly when I click on the Icon for SmokePing web page.

I have an error in the log of apache:

[Wed Jun 20 12:06:06 2012] [error] [client X.X.X.X] [Wed Jun 20 12:06:06 2012] smokeping.cgi [client X.X.X.X]: ERROR: Section '\xbc\x93\x96\x9a\x91\x8b\xa0\xce\xd1\xac\x96\x8b\x9a\xa0\xce' does not exist (display webpage). at /usr/share/smokeping/lib/Smokeping.pm line 1557.

Cacti Version 0.8.8a
nmidSmokeping_v1.06

Have you got an idea ?
Could you help me please ?

Best regards

Thomas
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 »

Hi Can you send me your smokeping config file which you've created to support@urban-software.de ?
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
DangerDevil
Posts: 3
Joined: Wed Jul 18, 2012 7:59 am

Re: Installation nmidSmokeping PLUGIN

Post by DangerDevil »

Some more information:
I set up the smokeping on Centos 6.3 with this howto:

http://ai.net.nz/gettinghelp/how-do-i/c ... eping.html

In this howto the imagepath was changed from "cache" to "img".
I configure it back to "cache", but no luck.

Kind regards
Oliver
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 »

We solved the issue, which happened to be a "non-standard" URL in the form:

http://server/smokeping/smokeping.fcgi

In case you do have similiar issues, make sure your URL either matches:


http://server/smokeping/smokeping.[f]cgi
http://server/cgi-bin/smokeping.[f]cgi
or
http://server/smokeping.[f]cgi

Version 1.07 makes sure to handle the first one as well. As usual you can download it from here:

http://redmine.nmid-plugins.de/projects ... ping/files
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:

Re: Installation nmidSmokeping PLUGIN

Post by phalek »

... and version 1.09 fixes a small typo which prevented the overview graph mode to work properly.


http://redmine.nmid-plugins.de/projects ... ping/files
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
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Installation nmidSmokeping PLUGIN

Post by pier62350 »

Hi all,

I've a problem with the 1.09 version: when I add a device from cacti with "Add to Smokeping (http://smokepingurl)", the device is added to the "smokeping_nmid_spserver1_config.txt" but not in the "config" file of smokeping.
I need to include the smokeping_nmid_spserver1_config.txt fils in it?

Read/write right are the same on smokeping_nmid_spserver1_config.txt and config and they are in the same folder. I'm using smokeping.cgi (fcgi didn't work on my apache server).

Can you tell me how I can add the devices to the "config" file?
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 »

Did you read the very 2nd post of this topic ? It is explained in there.
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
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Installation nmidSmokeping PLUGIN

Post by pier62350 »

I've read it but I don't understand how to create this "config.header".

I've to rename the config file in config.header, include config.header in the top of the txt file and define the smokeping config file as "/path/to/smokeping_nmid_spserver1_config.txt" ?
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 »

Look at the example of such a "config.header" file in the 2nd post.

basically, you have that file and just add the content of the smokeping_nmid_spserver1_config.txt file to the end of this.

To get the complete smokeping config you can do the following ( In this example the final smokping config is in /opt/smokeping/etc )

Code: Select all

cat /opt/smokeping/etc/config.header > /opt/smokeping/etc/config
cat /tmp/smokeping_nmid_spserver1_config.txt >> /opt/smokeping/etc/config
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
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Installation nmidSmokeping PLUGIN

Post by pier62350 »

thanks for this help!

Just a last question: do you think I can automatize this action when I add a new host in smokeping from the cacti device interface (in order to be more easy and user-friendly)?

I can create a shell and execute it with crond but it will be beter if I update the config file only when a device is added or deleted?
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Hi - I've encountered an issue with this plugin since updating both Cacti + nmidsmokeping. I'm running Cacti 0.8.8a and 1.09 of the smokeping plugin. I used the Plugin Management tab to disable / uninstall the previous version (1.05) before installing the latest version. I also used the "Remove device from smokeping config" option on ALL devices and checked the DB values for the hosts to ensure all the old settings had been removed.

I've added a single device and checked the nmid specific DB settings and they look ok:

nwmgmt_settings: s1000000000
nwmgmt_smokeping_path: LIVE.NETWORKS.Foundry_SI_1
nwmgmt_smokeping_server: http://tdukwbvmcacti01
nwmgmt_smokeping_probe:

If I view the device in Cacti I get a broken image icon for the smokeping graph - ie, it's not displayed with the other various device graphs. If I click the magnifying glass link the smokeping graphs appear in a new tab. If I click the broken image it also takes me to the smokeping graphs - so apart from the smokeping graph not actually appearing with the other Cacti graphs it appears to be working - does anyone know the solution to this? When I previously had this problem it was down to the fact that the php curl module was not installed, but I've checked the output of php -m and it's there.

Thanks - J.
hacktivism
Posts: 6
Joined: Sun Aug 15, 2010 9:57 am
Location: Luanda

Re: Installation nmidSmokeping PLUGIN

Post by hacktivism »

Cacti Version:
Cacti Version
Cacti Version
1.png (5.73 KiB) Viewed 4208 times
NmidSmokeping Version:
2.png
2.png (6.71 KiB) Viewed 4208 times
Result (already Discussed throughout):
3.png
3.png (7.33 KiB) Viewed 4208 times
I've already followed all suggest tips and tricks throughout this topic witn no success.

Can You please advise.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests