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 »

Got lost during a crash ...

Going to upload it later today.
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,
where is possible download new version 1.0 of Smokeping Cacti plugin 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 »

Uploaded the v1.0.1 version here:
http://redmine.nmid-plugins.de/projects ... ping/files

There's still a php file missing which I'm going to add within the next days.
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,
thank for your response. What php file is missing?

I added the plugin into my cacti 0.8.7h with PA 3.0. In my table host occure fields nwmgmt_smokeping_path, nwmgmt_smokeping_server, nwmgmt_smokeping_probe, but NOT nwmgmt_settings. Is it correct?

When I tried add device to Smokeping from Cacti, I got in /tmp/smokeping_nmid_spserver1_config.txt:

Code: Select all

+ MyCompany
menu = MyCompany
title = MyCompany

++ MyCompany_Items
menu = MyCompany_Items
title = Location/Devices in MyCompany_Items

and nothing else. I have still empty fields nwmgmt... in table host for this device, even I removed and added again smokeping for this device in tab of devices. There isnt any shortcut for this device to smokeping in graphs.

What is wrong?
vasilak
Posts: 20
Joined: Tue Nov 29, 2011 9:42 am

Re: Installation nmidSmokeping PLUGIN

Post by vasilak »

Hello Phalek.

Could you tell me please if the plugin can be installed on a windows host?
Is there a different installation procedure to follow in this case?

Thanks.
George
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, the PHP file is actually now in the 1.01 version.
- Yes, it's windows compatible, but you will need the PHP CURL module installed

Xel, can you send me some screenshots of what you're doing when adding the device to the plugin ? Please send them over to support@nmid-plugins.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
vasilak
Posts: 20
Joined: Tue Nov 29, 2011 9:42 am

Re: Installation nmidSmokeping PLUGIN

Post by vasilak »

phalek wrote:- Ok, the PHP file is actually now in the 1.01 version.
- Yes, it's windows compatible, but you will need the PHP CURL module installed
Hi phalek.

I am using xampp on my windows host and have already enabled the php curl module.
Most of your installation instructions seem to be directed on linux installations so I am unsure on a few things.
I followed all installation steps except the last one (configuration file).
The plugin seems to have been installed correctly and the smokeping_nmid_spserver1_config.txt has been generated succesfully.
Here is the configuration of the plugin:

Image

I do not see any graphs yet as obviously I don't have a configuration file.
If I understand correctly from your post, I need to put in the plugin directory a file titled "config.header" with content similar to your post.
However as I said the configuration options described in your post target a linux installation so I am not sure about some of the settings.
For example what should I put in the following lines:
datadir = /data/smokeping-ms/data
piddir = /data/smokeping-ms/var
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail
template = /opt/smokeping/etc/basepage.html
secrets=/opt/smokeping/etc/smokeping_secrets

Also should I keep the following setting as it is?
cgiurl = http://cacti.network-outsourcing.de/smo ... keping.cgi

Lastly, can I configure the plugin to use SMTP instead of sendmail? (I use SMTP with cacti)

Thanks in advance.

Regards,
George
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 PIA is installed, but which version are you using of Cacti and PIA ?
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:So PIA is installed, but which version are you using of Cacti and PIA ?
I am using cacti 0.8.7h and PA-v3.0.
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, so the plugin hooks are in there.

Can you post a screenshot of your userids ealm permissions ? there should be one allowing the user to view the smokeping graphs.
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:Ok, so the plugin hooks are in there.

Can you post a screenshot of your userids ealm permissions ? there should be one allowing the user to view the smokeping graphs.
The user permissions look ok:
Image

So does the generated config file:

+ Default_Tree
menu = Default Tree
title = Default Tree

+ EMNs
menu = EMNs
title = EMNs
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 config file is wrong, as there are no hosts in there. Can you see the "Add to smokeping" entry in the "Devices" section as displayed in the very first post ?
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:That config file is wrong, as there are no hosts in there. Can you see the "Add to smokeping" entry in the "Devices" section as displayed in the very first post ?
Yes I can see the entry and I checked it for the specific device and after this the config file was produced.
I did it again now and the same file was created.
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 »

Hm,

Then it's a bug and not a feature.

Going to look into the code to check why it's behaving like this.
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:Hm,

Then it's a bug and not a feature.

Going to look into the code to check why it's behaving like this.
My plugin configuration page is correct, right?

Perhaps the following line from the logs could be relevant to the issue (?) :
12/21/2011 12:15:40 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1054', SQL:"select nwmgmt_settings from host where id=1"

If the problem is the PIA or the cacti version and there is an option of downgrading to an older version could you please let me know of the configuration settings for a windows installation as mentioned in my earlier post?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests