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 »

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
Xel
Posts: 3
Joined: Fri Dec 02, 2011 4:44 am

Re: Installation nmidSmokeping PLUGIN

Post by Xel »

Hello Phalek,
I took new version 1.0.1 of nmidsmokeping.
I altered table host (added column nwmgmt_settings).
I made change in setup.php as you wrote.
I disabled and enabled nmidsmokeping in setup.
I added device in cacti and now is config for smokeping generated succesfuly - I copied it to config file for smokeping.
I restarted smokeping (for sure).

Now I have in cacti graphs shortcut to the graph in smokeping and I can switch from cacti to smokeping pages and see graphs. 8)

Is there some possibility show the smokeping graph directly in cacti?

What changes are in version 1.0.2 ?

Thank you for all.

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

v1.02 fixes
- a bug which prevents displaying the smokeping image in Cacti ( broken image icon )
- also adds that "alter table" statement
- fixes a bug which prevented the correct adding of hosts to a smokeping config.

And most importantly, increases the version number ;-)
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
vasilak
Posts: 20
Joined: Tue Nov 29, 2011 9:42 am

Re: Installation nmidSmokeping PLUGIN

Post by vasilak »

phalek wrote:can we do a screenshare using Teamviewer ? You can download a support client from here
I am at work and there is a strict policy regarding remote network management. So I am afraid I can't use teamviewer from this PC.
I downloaded v1.02 but unfortunately the result is the same.
Any idea what could be wrong? The PIA version maybe?
Oscars
Posts: 2
Joined: Thu Jan 05, 2012 5:12 am

Re: Installation nmidSmokeping PLUGIN

Post by Oscars »

Hi,

Everything is done according to the instructions (php-curl is ok too). All versions are the latest. Still do not see the Smokeping picture inside the Cacti. Shown only a broken image and "magnifying glass". Get access to the Smokepin in a separate window when click the "magnifying glass".

A broken icon properties:
https://xxx.xxx.xxx.xxx:4433/cacti/plug ... ype=detail

xxx.xxx.xxx.xxx=really ip, DEVICE=path and device

Error generated when paste to url in bowser:
Notice: Undefined index: debug in /cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /cacti/plugins/nmidSmokeping/getSmokePingImage.php:9) in /cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 114
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: Installation nmidSmokeping PLUGIN

Post by zoemu »

julian924s wrote:Hi - yes I did, received no errors or warnings. Went through your steps and added the smokeping_nmid_spserver1_config.txt file to my existing smokeping install and did a reload of smokeping just to test. In smokeping itself I can see all the graphs as you would expect.

I just don't see anything in Cacti, links etc.

Thanks.
Ihave a similar issue no errors, the hour glass link works and the device wereadded to Smokeping, jus the image graph is a red x . when running directly on the browser I get

Code: Select all

<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>

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

Re: Installation nmidSmokeping PLUGIN

Post by artiflo »

Hello Phalek,

Smokeping with more 500 device on same process are too big.
Too many time I reach 300 seconds for a smokeping poll.

Could you add in your script a loop to create a smokeping child each x device (50 for example)?

This is a sample for smokeping config with multiple probes (this is smokeping loadbalancing process) :

Code: Select all

*** Probes ***

+ FPing

binary = /usr/sbin/fping
packetsize = 32

++ FPing1
++ FPing2
++ FPing3

*** Targets ***
+ SAMPLE

++ SAMPLEALPHA

+++ Alpha
probe = FPing1
menu = Alpha
title = Device Alpha
host = 192.168.x.x

+++ beta
probe = FPing2
menu = beta
title = Device beta
host = 192.168.x.x

+++ gamma
probe = FPing2
menu = gamma
title = Device gamma
host = 192.168.x.x

+++ delta
probe = FPing3
menu = delta
title = Device delta
host = 192.168.x.x

+++ epsilon
probe = FPing3
menu = epsilon
title = Device epsilon
host = 192.168.x.x
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

Re: Installation nmidSmokeping PLUGIN

Post by artiflo »

Another good feature will be to create directly the good smokeping config file.

For exemple :
1 / I put the path of the smokeping config header (that I created before) in nmidsmokeping tab conf.
2 / When I click on "Add to Smokeping", ***Target*** and "config header" merge together.
3 / Optionnal : Create a new button to reboot smokeping service.
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 »

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
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

Re: Installation nmidSmokeping PLUGIN

Post by artiflo »

Done :)
Hurtman
Posts: 6
Joined: Tue Feb 28, 2012 4:54 am

Re: Installation nmidSmokeping PLUGIN

Post by Hurtman »

Hi,
Same problem here as for everyone else. I see a magnifying glass with a link to the Smokeping page, but the image itself wont show up in Cacti.
Cacti 0.8.7h and NmidSmokeping 1.02.

Tell me how I can help you troubleshoot this 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 »

Which of the install steps did show up an error ?

See the second post of this topic.
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
Hurtman
Posts: 6
Joined: Tue Feb 28, 2012 4:54 am

Re: Installation nmidSmokeping PLUGIN

Post by Hurtman »

No errors so from what I can see in the logs or anything, its just that the graph does not show up, only a magnifying glass with a link to smokeping.
Does it matter if you point Cacti to the .cgi or .fcgi?
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 »

neither nor, the CGI is completely ignored as it is taking the php file ... ( unless you're using an earlier version ).

Is it showing at least a broken image which points to a file called "getSmokePingImage.php" ?
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
Hurtman
Posts: 6
Joined: Tue Feb 28, 2012 4:54 am

Re: Installation nmidSmokeping PLUGIN

Post by Hurtman »

Okey, the URL the magnifying glass points to is http://my.hostname.com/smokeping.fcgi?t ... -SW.FC-SW1

EDIT: I might as well post the config, those not mentioned is empty:

Smokeping URL = /smokeping.fcgi
Smokeping Config Creation Dir = /tmp/
Smokeping Graph Type = Detail
Show Smokeping link next to graph = Yes
Smokeping URL - Server 1 = http://my.hostname.com
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests