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 »

Can you provide a screenshot of the tree view page where the graphs should appear ?
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
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Sure, here's what I hope is the right series of screenshots for what I've done so far:

Image

Image

Image

Image

Image

As far as I can tell this is right ... hopefully. Just no smokeping links / graphs.

Thanks again - Julian.
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.

Can you check the host table in the cacti db for these devices if it contains fields which start with "nwmgmt_" ?

one should be called "nwmgmt_settings" and have some value like "s100000" in 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
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Hi, sure - DB output for one of the hosts enabled is:

mysql> select * from host where hostname='tdukwww01' \G
*************************** 1. row ***************************
id: 8
host_template_id: 1
description: tdukwww01
hostname: tdukwww01
notes:
snmp_community: sector
snmp_version: 2
snmp_username:
snmp_password:
snmp_auth_protocol:
snmp_priv_passphrase:
snmp_priv_protocol:
snmp_context:
snmp_port: 161
snmp_timeout: 5000
availability_method: 2
ping_method: 2
ping_port: 23
ping_timeout: 400
ping_retries: 1
max_oids: 10
disabled:
status: 3
status_event_count: 0
status_fail_date: 0000-00-00 00:00:00
status_rec_date: 0000-00-00 00:00:00
status_last_error:
min_time: 1.54000
max_time: 148.03000
cur_time: 2.25000
avg_time: 2.42527
total_polls: 18682
failed_polls: 0
availability: 100.00000
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path:
nwmgmt_smokeping_server:
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)

Thanks.
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Aha, I've taken a look at the DB settings and can see some changes. If I REMOVE the device from smokeping and then ADD it again the DB values change to:

*************************** 1. row ***************************
hostname: tdukwww01
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path: LIVE.WWW.tdukwww01
nwmgmt_smokeping_server: http://192.168.75.73
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)

And if I view the graphs for that device I see at the bottom of the page:

"Graph Template: SmokePing (external)" and a magnifying glass link - hovering over it, it states "Go to smokeping" - however following the link opens a new tab with the error:

"Software error:
ERROR: Section 'tdukwww01' does not exist (display webpage). at /usr/share/smokeping-2.4.2/lib/Smokeping.pm line 1588.
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error"

So I appear to be making some sort of progress. I'm going to remove ALL devices, add them again and take a further look.

J.
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Right, think I've got this working now - but just wanted to confirm. Should the smokeping graphs be visible within Cacti, or just the external link provided?

ie.

Image

And clicking on the link takes me to my smokeping page for this host.

Thanks - J.
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 »

phalek wrote:
zoemu wrote:hi Phal:

I'm moving my windows cacti to an ubuntu server, I have installed everything but smokeping, i'm having some issues with undefined variables

please note that my Smokeping install is working great...

thanks

LA
Hi Zoemu,

Please download the latest file from here: http://redmine.nmid-plugins.de/projects ... ping/files

It should fix this issue.
I'm Still getting this errors

Code: Select all

[Tue Sep 20 16:35:47 2011] [error] [client 10.1.140.174] PHP Notice:  Undefined index: debug in /usr/share/cacti/site/plugins/nmidSmokeping/getSmokePingImage.php on line 10, referer: http://10.1.140.7/cacti/graph_view.php?action=tree&tree_id=2&leaf_id=16
[Tue Sep 20 16:35:47 2011] [error] [client 10.1.140.174] PHP Fatal error:  Call to undefined function readConfigOption() in /usr/share/cacti/site/plugins/nmidSmokeping/getSmokePingImage.php on line 17, referer: http://10.1.140.7/cacti/graph_view.php?action=tree&tree_id=2&leaf_id=16
The magnifiedglass icon takes me to the right view in smokeping ....just graph in cacti is broken....
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 try the attached file.

Silly me :-)
Attachments
getSmokePingImage.zip
(1.41 KiB) Downloaded 271 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
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 »

julian924s wrote:Right, think I've got this working now - but just wanted to confirm. Should the smokeping graphs be visible within Cacti, or just the external link provided?

ie.

Image

And clicking on the link takes me to my smokeping page for this host.

Thanks - J.
It should show the graph right next to that link. You also need to use the file which I attached to the previous post.

If you click on the link it needs(!!!) to go to your smokeping install and displaying the actual smokeping graph for the device.

If not, then your smokeping config isn't yet correct (the target section).
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
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

ok, thanks - I replaced my getSmokePingImage.php with the one from your link above. Disabled, uninstalled etc the plugin. Removed and added the devices to smokeping again and checked my mysql output - no new devices etc have been added so the smokeping_nmid_spserver1_config.txt file has remained the same.

hostname: tdukwww02
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path: LIVE.WWW.tdukwww02
nwmgmt_smokeping_server: http://192.168.75.73
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)

And still there's no image in Cacti, just a link to my actual smokeping install which is still ok. The only other thing I thought to check was the page source which shows:

<img src='/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1316691080&end=1316777480&target=LIVE.WWW.tdukwww02&server=nmid_spserver1&graphtype=detail' border='0'>

And this does look ok to me?

Thanks - J.
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 »

/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1316691080&end=1316777480&target=LIVE.WWW.tdukwww02&server=nmid_spserver1&graphtype=detail&debug=1

try this url
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
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

The URL just gives a blank page, nothing - page source reveals nothing either?
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 php-curl installed ??

Do a php -m and post it here. If CURL isn't listed, then go and install 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
julian924s
Cacti User
Posts: 113
Joined: Thu Mar 13, 2008 3:36 am

Re: Installation nmidSmokeping PLUGIN

Post by julian924s »

Hi Phalek - sorry for the late reply, to cut a long story short you were correct - missing PHP module. Thanks for all your help on this one.

Julian.
stahlwart
Posts: 1
Joined: Fri Nov 18, 2011 10:18 am

Re: Installation nmidSmokeping PLUGIN

Post by stahlwart »

Hi guys,

what happend to the v1.0 on http://www.nmid-plugins.de/projects/nmidsmokeping/files ? I cant find it there :/
Is there a way to get nmidSmokeping to run on Cacti 0.8.7g+ or should i just downgrade Cacti and use the nmidSmokeping v0.5?
I can't get Cacti to detect the nmidSmokeping addon with my current version of Cacti/nmidSmokeping.

tyvm
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests