CereusReporting - PDF Reports - 4.00 for Cacti 1.x out soon!

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Ok, I've solved.... the problem was this "/root/functions.php".
I've NO IDEA who is calling this file and WHY. Maybe this file was an old copy..... really strange.

BTW now it's solved, the poller starts very well ;)

Simon
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

/root/functions.php ??

wow ... I wonder why that one was called/included ... need to check my sources ..

Did the php error log tell 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
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Yess, as you can see my post, previous page ;)
I've posted the error, then take a look on them and find out. Best practice is to read the error FIRST and the post ;) I know :)
I'll take a look to fino out WHERE this file is called, really strange!

Simon
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

ahh, didn't read that one ;-)

My guess is that one of the php files is including a functions.php file without putting the correct directory of that file, hence it gets included.

It's probably some left-over of a test/previous install or whatsoever.

For the plugin install. global.php is bein used for pre-PIA 2.x plugins.

nmidCreatePDF is Pia 2.x compliant and does not need to be included in the global.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
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

Post by xefil »

Wonderful, now I can test this plugin out ;)

thank's for the support!

Simon
kibo15
Posts: 6
Joined: Thu Jul 01, 2010 6:01 am
Location: Paris - France

Can't find getSmokePingPath.pl

Post by kibo15 »

Hi

First of all, thank you for providing such a nice tool, it is is definitely a must have.

I'm running on CentOS 5, installed cacti 0.8.7f and Oetiker's smokeping 2.4.2.
I downloaded and installed nmidSmokePing 0.3.9a to create smokeping grahs within cacti.

All along those installations, I ran into some problems that I always managed to solve somehow.
But I'm stuck on this one : I can't find the getSmokePingPath.pl file.
When clicking on a host associated with a smokeping graph, I get this message from apache error_log :

Code: Select all

[Thu Jul 01 13:13:58 2010] [error] [client xx.xx.xx.xx] script not found or unable to stat: /var/www/cgi-bin/getSmokePingPath.pl, referer: http://yy.yy.yy.yy/cacti/graph_view.php?action=tree&tree_id=12&leaf_id=80
I haven't found anything about it in the documentation or in the forum, Google doesn't give me much. However, somewhere in the forum Phalek said that the file is included in the 129 build, but I just can't find it

Code: Select all

[root@yy.yy.yy.yy cacti]# ll plugins/nmidSmokeping/
total 32
-rw-r--r-- 1 1000 users    44 jun 29  2009 index.php
-rw-r--r-- 1 1000 users 27894 aug 25  2009 setup.php
Any idea ?
Feel free to ask if you need specific details.

Thank you in advance :wink:
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Yeah, install is quite a journey :-)

I uploaded the file here:

http://redmine.nmid-plugins.de/projects ... ping/files

depending on which nmidWebService plugin you have, you will need to change the URL in the file to fit your needs. The url with "webservice_re.php" in it is for the > 0.8 Versions.

And it seems like I must have silently removed that file without even knowing 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
kibo15
Posts: 6
Joined: Thu Jul 01, 2010 6:01 am
Location: Paris - France

Post by kibo15 »

Thank you Phalek, I'll let you know how it turns out :wink:
kibo15
Posts: 6
Joined: Thu Jul 01, 2010 6:01 am
Location: Paris - France

Post by kibo15 »

Hi Phalek,

I am now able to see the smoking graphs from the cacti tree, but only those who have similar entries in the smokeping config file.

I tried setting the same config file smokeping uses in nmidsmokeping's setup.php before reinstalling, but it just overwrites (fwrite) smokeping config file leaving it invalid (no header). I guess append the file wouldn't work either since it would generate duplicate entries in the config file... maybe a more complex method?

Is there a way for cacti to only modify the target section of the config file ?
If not, how could smokeping take into account new/updated entries in the nmidsmokeping's config file and modify its trees accordingly ?

Thanx
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

It's by desing that the nmidSmokePing plugin pny creates the target section.

The idea behind that is that you have two files, one lets say "smokeping.header" and the one created by nmidSmokeping ( i think called smokeping_nmid_spserver1_config.txt). You simply need to combine those two files.

There's an example of this in the nmid thread look here at the second post from me : http://forums.cacti.net/viewtopic.php?t ... &start=255
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
kibo15
Posts: 6
Joined: Thu Jul 01, 2010 6:01 am
Location: Paris - France

Post by kibo15 »

Hi Phalek,

Thank you for the script, it's exactly what I needed. But it is unclear to me where I should insert the code : getGraph.pl, getSmokePingPath.pl or should I write the script as a file and call it in another one ?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

The purpose of that script is to generate the target section of the smokeping config. getGraph.pl is just an add-on for displaying cacti graphs in other tools (e.g a portal) the getSmokePingGraph.pl file is the one responsible for displaying the graphs within cacti.
Last edited by phalek on Mon Jul 05, 2010 7:49 am, edited 1 time in total.
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
kibo15
Posts: 6
Joined: Thu Jul 01, 2010 6:01 am
Location: Paris - France

Post by kibo15 »

All is fine now!! Thank you very much :)
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

After install NMID PDF CACTI went down

Post by joseme »

HI:
After I installed NMIDcreatePDF 0.84, my windows CACTI went Down (http 500 error), so I cannot uinstalled using graphic mode. when I see the php_error.log i got:

[07-Jul-2010 13:30:00] PHP Fatal error: SourceGuardian Loader - script header is broken [10] in C:\Inetpub\wwwroot\cacti\plugins\nmidCreatePDF\functions.php on line 2.

so, is there any way to uninstall this plugin using command line?, my CACTI is 0.8.7d and is on windows server 2003 . Please is urgent!.
Regards
Jose
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Just delete the nmidcreatepdf folder in the plunging dir
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests