NMIDSmokeing all new smokeping previews are broken graphs
Moderators: Developers, Moderators
NMIDSmokeing all new smokeping previews are broken graphs
Hi,
I'm currently upgrading my Cacti system for work. I've got cacti-0.8.7e, NMID, NMIDcreatePDF, NMIDWebservice, smokeping and NMIDSmokeping. Smokeping is installed on the same server as cacti and the smokeping page works fine.
My issue is with the Cacti Smokeping integration. I have maybe 5 hosts that are measured by smokeping and displayed in both cacti and smokeping using the nmidSmokeping. When I set up this box first, everything was fine. I could see the smokeping preview graph within Cacti and the full smokeping graph from the smokeping page. I could also click on the magnifying glass within cacti to get to the smokeping page.
Then I renamed 2 of the hosts in cacti. Those hosts then started to have broken images instead of the smokeping preview graph. Fine, I thought it must not like the name change, so I created new devices instead of renaming old ones. I still get broken smokeping preview graphs.
I can click on the magnifying glass and get to working graphs within smokeping. I have no errors in apache.
My original cacti smokeping preview graphs work fine, but I cannot see any new ones, or the hosts I renamed.
File permissions on the /smokeping/data and smokeping/image files are identical for the working and non working images.
When I run /cgi-bin/getSmokePingPath.pl I get no errors. It works fine with the older hosts I set up, but not with the new ones.
Right clicking on the broken images gives me a url similar to the working ones -
eg - here is path for ping to google
http://cacti02blah/cgi-bin/getSmokePing ... ype=detail
and attached is screenshot of the broken image.
It's driving me crazy, I think I've read every forum post there is maybe I'm just looking it from the wrong angle. Any helps/pointers would be really appreciated.
Regards,
Joan
I'm currently upgrading my Cacti system for work. I've got cacti-0.8.7e, NMID, NMIDcreatePDF, NMIDWebservice, smokeping and NMIDSmokeping. Smokeping is installed on the same server as cacti and the smokeping page works fine.
My issue is with the Cacti Smokeping integration. I have maybe 5 hosts that are measured by smokeping and displayed in both cacti and smokeping using the nmidSmokeping. When I set up this box first, everything was fine. I could see the smokeping preview graph within Cacti and the full smokeping graph from the smokeping page. I could also click on the magnifying glass within cacti to get to the smokeping page.
Then I renamed 2 of the hosts in cacti. Those hosts then started to have broken images instead of the smokeping preview graph. Fine, I thought it must not like the name change, so I created new devices instead of renaming old ones. I still get broken smokeping preview graphs.
I can click on the magnifying glass and get to working graphs within smokeping. I have no errors in apache.
My original cacti smokeping preview graphs work fine, but I cannot see any new ones, or the hosts I renamed.
File permissions on the /smokeping/data and smokeping/image files are identical for the working and non working images.
When I run /cgi-bin/getSmokePingPath.pl I get no errors. It works fine with the older hosts I set up, but not with the new ones.
Right clicking on the broken images gives me a url similar to the working ones -
eg - here is path for ping to google
http://cacti02blah/cgi-bin/getSmokePing ... ype=detail
and attached is screenshot of the broken image.
It's driving me crazy, I think I've read every forum post there is maybe I'm just looking it from the wrong angle. Any helps/pointers would be really appreciated.
Regards,
Joan
- Attachments
-
- brokenCactiSmokeping.png (3.57 KiB) Viewed 3072 times
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
The Target section in the url needs to exactly point to the smokeping image you are trying to display.
The smokeping URL has the same "target" in it, or at least should.
It's about the following format:
nmidSmokeping actually creates the target section for smokeping in the "Smokeping Config Creation Dir" which you can set on the NMID settings page. There should be some files (.txt i think) in there. Look at them and you will see how each of the device should be configured in the smokeping config.
Btw. either send me a PM, or post these issues to the NMID topic in the "Plugin Announcements" sections. I will get an email alert then ...
The smokeping URL has the same "target" in it, or at least should.
It's about the following format:
Code: Select all
$url.'?displaymode=n;start='.$start.';end='.$end.';target='.$target;
Btw. either send me a PM, or post these issues to the NMID topic in the "Plugin Announcements" sections. I will get an email alert then ...
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
NMIDSmokeing all new smokeping previews are broken graphs
Hi,
Thanks for the quick reply! The targets seem to match - below are examples of the URLs from a "broken" image and a working one.
URL from Cacti preview graph (broken):
http://cacti02dubblah/cgi-bin/getSmokeP ... ype=detail
Matching URL from Smokeping (working):
http://cacti02dubblah/cgi-bin/smokeping ... _-_primary
URL from Cacti preview graph (working):
http://cacti02dubblah/cgi-bin/getSmokeP ... ype=detail
Matching URL from Smokeping (working):
http://cacti02dubblah/cgi-bin/smokeping ... Datacentre
I've also tried "turning it off and on again", I disabled and removed nmidSmokeping from cacti, and then reenabled it. It never deleted the NMID smokeping settings from cacti though - as in, once I reenabled it, it had kept all of my config. This also did not fix it.
What way does Cacti/NMID store the list of smokeping enabled servers? Are they in the mysql database? Could I have screwed that up when I renamed a host it was using? ie, corrupted the way they were stored or something?
Thanks
Joan
Thanks for the quick reply! The targets seem to match - below are examples of the URLs from a "broken" image and a working one.
URL from Cacti preview graph (broken):
http://cacti02dubblah/cgi-bin/getSmokeP ... ype=detail
Matching URL from Smokeping (working):
http://cacti02dubblah/cgi-bin/smokeping ... _-_primary
URL from Cacti preview graph (working):
http://cacti02dubblah/cgi-bin/getSmokeP ... ype=detail
Matching URL from Smokeping (working):
http://cacti02dubblah/cgi-bin/smokeping ... Datacentre
I've also tried "turning it off and on again", I disabled and removed nmidSmokeping from cacti, and then reenabled it. It never deleted the NMID smokeping settings from cacti though - as in, once I reenabled it, it had kept all of my config. This also did not fix it.
What way does Cacti/NMID store the list of smokeping enabled servers? Are they in the mysql database? Could I have screwed that up when I renamed a host it was using? ie, corrupted the way they were stored or something?
Thanks
Joan
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
hm, nothing unusual to be seen here.
THe data is stored in the hosts table, namely the fields "nwmgmt_smokeping_path", "nwmgmt_smokeping_server" and "nwmgmt_settings".
For a better debugging. uncomment all "print" statements in the "getSmokePingPath.pl" file and point your browser to the "not-working-URL" you did post. This will provide some additional information and may give a hint on where the actual error is.
THe data is stored in the hosts table, namely the fields "nwmgmt_smokeping_path", "nwmgmt_smokeping_server" and "nwmgmt_settings".
For a better debugging. uncomment all "print" statements in the "getSmokePingPath.pl" file and point your browser to the "not-working-URL" you did post. This will provide some additional information and may give a hint on where the actual error is.
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Hi, did you have time to uncomment those lines ?
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
Hi Phalek,
Aha! I know why it's broken now Sorry for not replying, it was a bank holiday weekend in Dublin. Basically. I have my new cacti server and my old cacti server. When my new cacti server is perfect, it will become live and the old one will be decommissioned. I had imported a lot of my settings/databases etc to my new cacti server. I thought I had stripped out the old server name everywhere but when I ran getSmokePingPath.pl with debug, it was printing the old server name. So. the reason it's giving broken images for new graphs, is because those new graphs are not present on the old server.
Finally. I'm so happy to know why it's broken, it was driving me MAD! So. cacti and nmidsmokeping should be using cacti02, but they are trying to use cacti01. I cannot find where they are doing this. It's not in smokeping.cgi, the smokeping config file, the getSmokePingPath.pl, or in the webinterface of cacti. I will have a look in the database aswell. It's not the end of the world however as when this server goes live, it will take the name of cacti01 and that will probably solve my problem.
Thank you very much for all your help.
Regards,
Joan
Aha! I know why it's broken now Sorry for not replying, it was a bank holiday weekend in Dublin. Basically. I have my new cacti server and my old cacti server. When my new cacti server is perfect, it will become live and the old one will be decommissioned. I had imported a lot of my settings/databases etc to my new cacti server. I thought I had stripped out the old server name everywhere but when I ran getSmokePingPath.pl with debug, it was printing the old server name. So. the reason it's giving broken images for new graphs, is because those new graphs are not present on the old server.
Finally. I'm so happy to know why it's broken, it was driving me MAD! So. cacti and nmidsmokeping should be using cacti02, but they are trying to use cacti01. I cannot find where they are doing this. It's not in smokeping.cgi, the smokeping config file, the getSmokePingPath.pl, or in the webinterface of cacti. I will have a look in the database aswell. It's not the end of the world however as when this server goes live, it will take the name of cacti01 and that will probably solve my problem.
Thank you very much for all your help.
Regards,
Joan
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
The smokeping server can be configured in the settings page of NMID
- Attachments
-
- 04.08.png (38.22 KiB) Viewed 2965 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
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
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Maybe you're pointing the script to the wrong server for the webservice ?
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
Hi,
All fixed. It was my nmidWebservice file - cacti/plugins/nmidWebService/webservice.wsdl - I'd had to edit the line -
<soap:address location="http://cacti02dub.blah/plugins/nmidWebS ... e.php?wsdl"/> - and I had never updated it. Thank you very much for all your help.
Regards,
Joan
All fixed. It was my nmidWebservice file - cacti/plugins/nmidWebService/webservice.wsdl - I'd had to edit the line -
<soap:address location="http://cacti02dub.blah/plugins/nmidWebS ... e.php?wsdl"/> - and I had never updated it. Thank you very much for all your help.
Regards,
Joan
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
yeah, I just had the same problem
I definately need to include a setup routine for the wsdl files ...
I definately need to include a setup routine for the wsdl files ...
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 2 guests