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 »

So besides the magnifying glas, there's no image shown, not even a broken image one ?

Can you check the html source of that page and look for an img tag which contains "getSmokePingImage.php" somewhere ?
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 »

Exactly! Yes I do see that tag:
<img src='plugins/nmidSmokeping/getSmokePingImage.php?start=1331459101&end=1331631901&target=Storage.FC-SW.FC-SW1&server=nmid_spserver1&graphtype=detail' border='0'>

This is what it looks like:
Attachments
smoke.png
smoke.png (4.43 KiB) Viewed 2549 times
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 »

Ok,

Now go to this url:

... plugins/nmidSmokeping/getSmokePingImage.php?start=1331459101&end=1331631901&target=Storage.FC-SW.FC-SW1&server=nmid_spserver1&graphtype=detail&debug=1

It should provide you with some feedback.

If not, call the getSMokePingImage.php file using the CLI:

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

Sorry for those late replies :)
When I go to that URL I get "blablaURLblabla cannot be shown because it contains errors", maybe not the best translation but you get the point.

When I run php getSmokePing.php this is the result:

[Errors regarding timezones]
<html>
"A lot of text"
</html>
PHP Warning: Unknown: open(/var/lib/php/session/sess_h41dnpa57vt54q28grh77a7fk6, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

So a permission error, I could fix this myself. So when I run php getSmokePing.php I get no errors, but the error when going to that URL still persists.
leekid
Posts: 3
Joined: Fri Apr 27, 2012 7:27 am

Re: Installation nmidSmokeping PLUGIN

Post by leekid »

Hi there,
i've the same behavior on my cacti install (0.8.8, nmidsmokeping 1.02).
Only the magnifying glas show up, and when i click on it, it's correctly linked to the right graph.
I've done debug on the img src link, and i've noticed that the image url is not correct (seems to be):
Image URL
http://sirius//smokeping/images/__navcache/133553123014442_1335529489_1335443089.png
How could i correct this?
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 »

Is the smokeping graph actually showing up when using that link ( copy&paste into your browser ) ?
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
leekid
Posts: 3
Joined: Fri Apr 27, 2012 7:27 am

Re: Installation nmidSmokeping PLUGIN

Post by leekid »

Here's what i've got
Image
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 send me the complete HTML source code ( save page as .. .html ) 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
leekid
Posts: 3
Joined: Fri Apr 27, 2012 7:27 am

Re: Installation nmidSmokeping PLUGIN

Post by leekid »

Ok, i do that right now
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've been able to identify and solve this issue. In case you do have a similar issue ( graph does not show up ), please check the following:

- Are you on version 1.04 ? ( available here: http://redmine.nmid-plugins.de/projects ... ping/files )
- Does the URL to the graph contain the parameter "server=" ?
- Does this parameter contain anything ?

You should also remove and re-add that device to your smokeping using the drop down from the devices list ( "console" -> "devices" )
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
tosch
Posts: 10
Joined: Thu May 24, 2012 6:11 am

Re: Installation nmidSmokeping PLUGIN

Post by tosch »

Hello Phalek!

I have tried to setup nmidSmokeping 1.04 with the latest version of cacti (0.8.8a, with the buildin plugin architecture),
cacti and smokeping (version 2.6.8) are working so far without problems.

Is the plugin already working with this version of cacti?

The problem is similar to earlier posts in this thread: the smokeping graph is not visible. I can only see the magnifying glas with link to smokeping, and this link is working fine.

In the apache error-log I can find the following message:

[Thu May 24 13:02:37 2012] [error] [client x.x.x.x] PHP Notice: Undefined index: debug in /var/www/html/cacti/plugins/nmidSmokeping/getSmokePingImage.php on line 10, referer: http://host.here.there/cacti/graph_view ... &leaf_id=8

When I open the link to the img source:
http://host.here.there/cacti/plugins/nm ... ype=detail

I get an image which contains just an error message:

"The image "URL...." cannot be displayed because it contains errors.

When I open the link with the debug-option:
http://host.here.there/cacti/plugins/nm ... il&debug=1

The result is a debug-page which contains also the response-str with the correct image from smokeping.

Do you have any ideas?

Thanks in advance!

Greetings,
tosch
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 »

hey I thought I did remove that !!

can you redit that PHP file and set

Code: Select all

$debug = false;
somewhere at the top and re-check it ?
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
tosch
Posts: 10
Joined: Thu May 24, 2012 6:11 am

Re: Installation nmidSmokeping PLUGIN

Post by tosch »

$debug = false was already set in getSmokePingImage.php.

I just added the parameter "&debug=1" manually to the URL to see if there is any useful information.
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 »

haha ... I forgot to remove a line:

Code: Select all

$debug = $_REQUEST['debug'] || false;
Please remove that one and it should work
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
tosch
Posts: 10
Joined: Thu May 24, 2012 6:11 am

Re: Installation nmidSmokeping PLUGIN

Post by tosch »

Ok, the line is removed, but still the same result. no smokeping graph in cacti.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests