Installation nmidSmokeping PLUGIN

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Khue
Posts: 45
Joined: Fri Jun 29, 2012 3:43 pm

Re: Installation nmidSmokeping PLUGIN

Post by Khue »

I am a little confused here on what I am doing wrong with the installation of this plugin. I've downloaded the latest files from the link provided and as far as I can see there are 3 PHP files. I created a subfolder in the plugins directory of Cacti, but when I do that, the actual plugins UI inside of cacti disappears. Any ideas?
katrokk
Posts: 7
Joined: Fri Mar 09, 2012 4:36 am

Re: Installation nmidSmokeping PLUGIN

Post by katrokk »

Hi,

I've installed version 1.12 here. Everything works great except preview graphs are not shown in cacti but I can go to smokeping url with no problem. I wonder if I did the installation step wrong. Please advise.

Thanks.

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 »

There should be an image with about this URL as the src:

Code: Select all

http://my.host.net/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1351512128&end=1351598528&target=other.INTERNET.BBC&server=nmid_spserver1&graphtype=detail
Can you check if the html source code contains this ?

If yes, take that URL and add a

Code: Select all

&debug=1
to it and open it in your browser. You will get some debug output displayed which may help you in finding the root cause of your issue.
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
katrokk
Posts: 7
Joined: Fri Mar 09, 2012 4:36 am

Re: Installation nmidSmokeping PLUGIN

Post by katrokk »

phalek wrote:There should be an image with about this URL as the src:

Code: Select all

http://my.host.net/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1351512128&end=1351598528&target=other.INTERNET.BBC&server=nmid_spserver1&graphtype=detail
As you can see at the picture, there's nothing but the magnifying glass icon that links to original smokeping page. Can't do debug coz an images / error images that usually contains code above are not shown.
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 »

As I said, look at the HTML SOurce of that page and look for that 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
katrokk
Posts: 7
Joined: Fri Mar 09, 2012 4:36 am

Re: Installation nmidSmokeping PLUGIN

Post by katrokk »

phalek wrote:As I said, look at the HTML SOurce of that page and look for that URL ...
So sorry, I miss your point :oops:

I found this at html source code :

Code: Select all

/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1383816270&end=1383902670&target=Monitoring.DOTA_NusaNet&server=nmid_spserver1&graphtype=detail
When I do this

Code: Select all

http://1.2.3.4/cacti/plugins/nmidSmokeping/getSmokePingImage.php?start=1383816270&end=1383902670&target=Monitoring.DOTA_NusaNet&server=nmid_spserver1&graphtype=detail&debug=1
Nothing's happened, just blank.
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 outut of

php -m

from your system ?
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
katrokk
Posts: 7
Joined: Fri Mar 09, 2012 4:36 am

Re: Installation nmidSmokeping PLUGIN

Post by katrokk »

phalek wrote:Can you send me the outut of

php -m

from your system ?
Here it is :

Code: Select all

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
ssh2
standard
suhosin
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
Suhosin
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 install the curl php module and retry.
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
katrokk
Posts: 7
Joined: Fri Mar 09, 2012 4:36 am

Re: Installation nmidSmokeping PLUGIN

Post by katrokk »

phalek wrote:please install the curl php module and retry.
Installed & Fixed.
Thanks :)
Vard0
Posts: 13
Joined: Wed Feb 27, 2013 5:31 am

Re: Installation nmidSmokeping PLUGIN

Post by Vard0 »

Hi phalek

I was wondering if you could help me get this working.

My setup is as follows:

Cacti 0.8.8b
NmidSmokeping 1.12
Smokeping 2.69 (working)

I have installed the smokeping plugin but I cannot see any smokeping graphs (or links to graphs) under graph_view.php.

My smokeping config is as follows:

mailhost = localhost
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl = /cache
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://x.x.x.x/cgi-bin/smokeping.fcgi


My NmidSmokeping config is as follows:
nmidsp.PNG
nmidsp.PNG (25.2 KiB) Viewed 2088 times
It appears that I can also add devices to smokeping:
SPadd.png
SPadd.png (12.59 KiB) Viewed 2088 times
But I cannot get anything to show up.

Thanks for any help
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests