Another case of nmidSmokeping graphs not appearing (solved)
Moderators: Developers, Moderators
Another case of nmidSmokeping graphs not appearing (solved)
Hi
I was wondering if you can help me to get this working.
My setup is as follows:
Cacti 0.8.8b
NmidSmokeping 1.12
Smokeping 2.69 (working)
Centos 6.4
Smokeping and Cacti are on the same server
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:
It appears that I can also add devices to smokeping:
I do get a smokeping link under the Localhost graphs but not under any other graphs in the tree. The URL also appears to be incorrect.
I also checked the DB nwmgmt settings for one of the hosts:
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path:
nwmgmt_smokeping_server:
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)
Hopefully I am missing something very basic.
Thanks for any help
I was wondering if you can help me to get this working.
My setup is as follows:
Cacti 0.8.8b
NmidSmokeping 1.12
Smokeping 2.69 (working)
Centos 6.4
Smokeping and Cacti are on the same server
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:
It appears that I can also add devices to smokeping:
I do get a smokeping link under the Localhost graphs but not under any other graphs in the tree. The URL also appears to be incorrect.
I also checked the DB nwmgmt settings for one of the hosts:
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path:
nwmgmt_smokeping_server:
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)
Hopefully I am missing something very basic.
Thanks for any help
Last edited by Vard0 on Tue Dec 17, 2013 4:18 am, edited 1 time in total.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Another case of nmidSmokeping graphs not appearing
Hi
Please look at this post for how to install the plugin and configure your smokeping install:
http://forums.cacti.net/viewtopic.php?f ... 89#p215689
Please look at this post for how to install the plugin and configure your smokeping install:
http://forums.cacti.net/viewtopic.php?f ... 89#p215689
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
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
Re: Another case of nmidSmokeping graphs not appearing
Hi Phalek
Thanks very much for the response.
I have been through that entire post twice, (I even have a post at the end of it) and I have tried all of the suggestions in it.
I uninstalled the entire plugin and started from scratch and I still end up with the same result.
The only smokeping links I can see are at the bottom of the localhost graphs on the tree, but no graph is showing and the URL appears to be incorrect.
I again checked the nwmgmt settings on one of the device records in the database after adding it to smokeping.
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path:
nwmgmt_smokeping_server: http://localhost
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)
I also ran "php /var/www/html/plugins/nmidSmokeping/getSmokePingImage.php".
This is returned at the top of the result:
"PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/plugins/jqueryskin/setup.php on line 18
Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/plugins/jqueryskin/setup.php on line 18"
I´m not sure if this will have any bearing over the smokeping graphs being displayed or not.
Are there any other troubleshooting steps I can take to see why the graphs aren´t appearing?
Thanks
Thanks very much for the response.
I have been through that entire post twice, (I even have a post at the end of it) and I have tried all of the suggestions in it.
I uninstalled the entire plugin and started from scratch and I still end up with the same result.
The only smokeping links I can see are at the bottom of the localhost graphs on the tree, but no graph is showing and the URL appears to be incorrect.
I again checked the nwmgmt settings on one of the device records in the database after adding it to smokeping.
nwmgmt_settings: s1000000000
nwmgmt_smokeping_path:
nwmgmt_smokeping_server: http://localhost
nwmgmt_smokeping_probe:
1 row in set (0.00 sec)
I also ran "php /var/www/html/plugins/nmidSmokeping/getSmokePingImage.php".
This is returned at the top of the result:
"PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/plugins/jqueryskin/setup.php on line 18
Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/plugins/jqueryskin/setup.php on line 18"
I´m not sure if this will have any bearing over the smokeping graphs being displayed or not.
Are there any other troubleshooting steps I can take to see why the graphs aren´t appearing?
Thanks
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Another case of nmidSmokeping graphs not appearing
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
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
Re: Another case of nmidSmokeping graphs not appearing
For anyone else that may run into a similar issue, it turned out that I wasn´t using the default way of building my graph trees.
I was using the following method:
Parent Item -> The Header where you want the device to be in
Tree Item Type -> Graph -> add
The "default" way of doing it is to add devices to a tree by selecting the following:
Parent Item -> The Header where you want the device to be in
Tree Item Type -> Host
Host -> The host/device you want to add
Graph Grouping Style -> Graph Template ( default )
Round Robin Archive -> Whatever the default is. E.g. "Hourly ( 1 Minute Average )
Thanks to Phalek for his patience and persistence in going through all the steps necessary to detect this fundamental difference in the way I have been doing things.
Incidentally, I opened a support ticket with Urban Software for this and I could not be happier with the service. Phalek´s responses were very quick and relevant.
I highly recommend going this route as it is well worth the cost of a couple of beers and the support is world-class.
Thank you to Phalek for your assistance.
I was using the following method:
Parent Item -> The Header where you want the device to be in
Tree Item Type -> Graph -> add
The "default" way of doing it is to add devices to a tree by selecting the following:
Parent Item -> The Header where you want the device to be in
Tree Item Type -> Host
Host -> The host/device you want to add
Graph Grouping Style -> Graph Template ( default )
Round Robin Archive -> Whatever the default is. E.g. "Hourly ( 1 Minute Average )
Thanks to Phalek for his patience and persistence in going through all the steps necessary to detect this fundamental difference in the way I have been doing things.
Incidentally, I opened a support ticket with Urban Software for this and I could not be happier with the service. Phalek´s responses were very quick and relevant.
I highly recommend going this route as it is well worth the cost of a couple of beers and the support is world-class.
Thank you to Phalek for your assistance.
Re: Another case of nmidSmokeping graphs not appearing (solv
This posting has been a major help in my long debugging efforts to get the smokeping plugin working on one of my cacti servers. I added a node in my graph tree as described in the previous post and I finally got a link to a graph, but I get the following error when I click on the graph:
ERROR: Section 'displaymode=n' does not exist (display webpage). at /opt/smokeping/bin/../lib/Smokeping.pm line 1647.
The URL generating the error is:
http://cacti.abc.com/smokeping.fcgi?tar ... s.ABCFirst
If I shorten this URL to the following, I get the smokeping graph from the smokeping web page (as opposed to within the cacti page).
http://cacti.abc.com/smokeping.fcgi?tar ... s.ABCFirst
Would anyone have any suggestions?
Thanks
ERROR: Section 'displaymode=n' does not exist (display webpage). at /opt/smokeping/bin/../lib/Smokeping.pm line 1647.
The URL generating the error is:
http://cacti.abc.com/smokeping.fcgi?tar ... s.ABCFirst
If I shorten this URL to the following, I get the smokeping graph from the smokeping web page (as opposed to within the cacti page).
http://cacti.abc.com/smokeping.fcgi?tar ... s.ABCFirst
Would anyone have any suggestions?
Thanks
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Another case of nmidSmokeping graphs not appearing (solv
Which version of smokeping are you using ?
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
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
Re: Another case of nmidSmokeping graphs not appearing (solv
Hi Phalek;
I am using smokeping 2.6.9
Thanks
I am using smokeping 2.6.9
Thanks
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Another case of nmidSmokeping graphs not appearing (solv
I see. looks like there are 2 "target=" being added to the url. what is your setting for the smoke ping url and the cgi/php file ?
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
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
Re: Another case of nmidSmokeping graphs not appearing (solv
Hi Phalek;
Thanks for your response. Attached is a screenshot of my settings.
Also, I did some research. I took a look at the host entries in the database for this device, removed the host from smokeping using the the web interface, then re-added smokeping to the device. Below is what I found.
Settings before removing the device from smokeping:
nwmgmt_smokeping_path:
displaymode=n;start=2014-10-19%2011:22;end=now;target=Production_Customers.ABCFirst
nwmgmt_smokeping_server:
http://cacti.abc.com
Settings after removing and then adding the device back to smokeping:
nwmgmt_smokeping_path:
NULL
nwmgmt_smokeping_server:
http://cacti.abc.com
I also removed the host from the graph tree and then added it back to the tree. The URL for the graph is now:
http://cacti.abc.com//smokeping.fcgi?target=
I can click on the link and I arrive at the smokeping home page.
John
Thanks for your response. Attached is a screenshot of my settings.
Also, I did some research. I took a look at the host entries in the database for this device, removed the host from smokeping using the the web interface, then re-added smokeping to the device. Below is what I found.
Settings before removing the device from smokeping:
nwmgmt_smokeping_path:
displaymode=n;start=2014-10-19%2011:22;end=now;target=Production_Customers.ABCFirst
nwmgmt_smokeping_server:
http://cacti.abc.com
Settings after removing and then adding the device back to smokeping:
nwmgmt_smokeping_path:
NULL
nwmgmt_smokeping_server:
http://cacti.abc.com
I also removed the host from the graph tree and then added it back to the tree. The URL for the graph is now:
http://cacti.abc.com//smokeping.fcgi?target=
I can click on the link and I arrive at the smokeping home page.
John
- Attachments
-
- Capture.JPG (56.82 KiB) Viewed 3998 times
Re: Another case of nmidSmokeping graphs not appearing (solv
I was able to resolve this by creating a new host (as opposed to deleting and re-creating an existing host).
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Another case of nmidSmokeping graphs not appearing (solv
Thanks John.
The settings are all saved/stored in the hosts table, so that's always a good starting point in troubleshooting the issues.
The settings are all saved/stored in the hosts table, so that's always a good starting point in troubleshooting the issues.
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
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
Who is online
Users browsing this forum: No registered users and 1 guest