(topic closed) ZOND plugin v0.32 released (beta)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

gilles wrote:johnrembo, i have an output for you

Code: Select all

php zond_process.php YTo2On.....6MToiYiI7fX0=

Code: Select all

Array
(
    [2031::traffic_in::] => Array
        (
            [type] => 2
            [method] => 0
            [query] => 172.22.75.1,xxxx,.1.3.6.1.2.1.2.2.1.10.514
        )

(...)

can you help me ?

windows 2003 sp2, php5[/quote]

actualy, your error is similar to hgd26 one.  I was only able to reproduce half of such behaviour and corrected some errors. Hope it will help. Try v0.21
I'm very interested in how zond plug-in will work on your windows installation.
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

TheWitness wrote:johnrembo,

Please review the script_server.php in SVN. There is an important call just prior to and after you "include" the script that needs to be added to your stub function to prevent issues. Just thought I would add this. Nice tool.

TheWitness
Okay, thanks, I will surely take a look...
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

cigamit wrote:I have noticed that in zond_process.php, you have several places that call PHP scripts like this.
$php_bin_path ss.php
This was causing an issue for me, as php was then outputting a Content Type header in the results. Changing all 3 places to add -q fixed it for me.
$php_bin_path -q ss.php
thanks for the tip! i've done as you suggested
eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

2.1 works kinda
Getting some interfaces that display every 3rn 4th 5th poll
interface speeds arent matching up sometimes



Thanks
Awesome plugin just what cacti needed and another tool gone and integrated
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

this looks very cool.
I use ssl so I had to change line 249 in setup.php to read https instead of http
also had to get rid of / infront of plugins on line 250 to make the url work for the chart icon
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

had to edit zond_init.php too for ssl
line 240

$path = 'https://'.((!empty($user)) ? $user.":" : '').((!empty($pass)) ? $pass."@" : '').$_SERVER['HTTP_HOST'].$config['url_path']."plugins/zond/";

line 272

err_to_browser("could not parse graph template (<a target=_blank href=https://".$_SERVER['HTTP_HOST'].$config['url_path']."graph_templates.php ?action=template_edit&id=$gt_id>$gt_id</a>)");
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I am so close, but it can't seem to find the netzond.class, even though it is in the top level of the zond directory.

java -showversion
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

rpm -qa|grep jre
srvadmin-jre-5.1.0-354
jre-1.6.0_01-fcs

whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

It almost looks like it adds 2 or 3 polls together then i get like a 200mg poll from a cir running 60mg
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

in zond_init.php, i have an error "Undefined offset: 2" at :

Code: Select all

$rrdpth = $mtch[2];
i think it is the preg_match function just before

$value['rrd_path'] contain this :
D:\apache2\htdocs\cacti\rra\firewall_traffic_in_1108.rrd

what $rrdpth must contain ?
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

eternal wrote:2.1 works kinda
Getting some interfaces that display every 3rn 4th 5th poll
interface speeds arent matching up sometimes



Thanks
Awesome plugin just what cacti needed and another tool gone and integrated
I think you should consider putting some screenshots here (about those unmatching interface speeds)
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

gilles wrote:in zond_init.php, i have an error "Undefined offset: 2" at :

Code: Select all

$rrdpth = $mtch[2];
i think it is the preg_match function just before

$value['rrd_path'] contain this :
D:\apache2\htdocs\cacti\rra\firewall_traffic_in_1108.rrd

what $rrdpth must contain ?
actualy it should contain

Code: Select all

firewall_traffic_in_1108
in your case.

I will try to implement OS detection and folder structure differences soon.
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

egarnel wrote:had to edit zond_init.php too for ssl
line 240

$path = 'https://'.((!empty($user)) ? $user.":" : '').((!empty($pass)) ? $pass."@" : '').$_SERVER['HTTP_HOST'].$config['url_path']."plugins/zond/";

line 272

err_to_browser("could not parse graph template (<a target=_blank href=https://".$_SERVER['HTTP_HOST'].$config['url_path']."graph_templates.php ?action=template_edit&id=$gt_id>$gt_id</a>)");
you are right, ssl is neecessary indeed. Your current solution is logical, but better way is to use $_SERVER['HTTP_PROTOCOL']. Anyway, i will implement it in next release.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

thanks johnrembo, zond now work on my windows server

in zond_init.php, pregmatch function don't work
i use this code :

Code: Select all

$mtch=split('[./\]', $value['rrd_path']);
$rrdpth = $mtch[count($mtch)-2];
edit:
no need to modify something else when PA is correctly configured
Last edited by gilles on Mon Jul 02, 2007 2:31 am, edited 1 time in total.
tbaror
Cacti User
Posts: 75
Joined: Mon Jun 05, 2006 6:54 am

no Zond Graph

Post by tbaror »

Hello,

i have installed ZOND plug-in under win2k3, iis cacti.
when i am trying to display ZONED graph i got error cannot find server, i assume that path should be change somewhere.
attached screenshot showing the error.
Please advice
Thanks
Attachments
zond.png
zond.png (7.93 KiB) Viewed 6030 times
zond.png
zond.png (7.93 KiB) Viewed 6030 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: no Zond Graph

Post by cigamit »

tbaror wrote:Hello,

i have installed ZOND plug-in under win2k3, iis cacti.
when i am trying to display ZONED graph i got error cannot find server, i assume that path should be change somewhere.
attached screenshot showing the error.
Please advice
Thanks
Check your cacti's config.php file and make sure your config['url_path'] doesn't contain http://ipaddress/ in it. Per the instructions for the PA, it shouldn't. if your cacti install is directly in the root, it should be '/' if its in a folder called cacti, then it should be set to '/cacti/'
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest