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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
LinuxLoader
Posts: 15
Joined: Fri Mar 17, 2006 9:43 am

Post by LinuxLoader »

After upgreiding to cacti latest and plugin arch 1.4 zond stop working for me ... here is the error

Code: Select all

 php zond_init.php 1596
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 333
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 335
PHP Notice:  Undefined index:  color in /var/www/cacti/plugins/zond/zond_init.php on line 348
PHP Notice:  Undefined offset:  1 in /var/www/cacti/plugins/zond/zond_functions.php on line 305
PHP Notice:  Undefined offset:  2 in /var/www/cacti/plugins/zond/zond_functions.php on line 306
PHP Notice:  Undefined index:  color in /var/www/cacti/plugins/zond/zond_init.php on line 349
PHP Notice:  Undefined offset:  1 in /var/www/cacti/plugins/zond/zond_functions.php on line 305
PHP Notice:  Undefined offset:  2 in /var/www/cacti/plugins/zond/zond_functions.php on line 306
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 369
PHP Notice:  Undefined index:  title in /var/www/cacti/plugins/zond/zond_init.php on line 375
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 381
PHP Notice:  Undefined index:  title in /var/www/cacti/plugins/zond/zond_init.php on line 385
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 333
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 335
PHP Notice:  Undefined index:  color in /var/www/cacti/plugins/zond/zond_init.php on line 348
PHP Notice:  Undefined offset:  1 in /var/www/cacti/plugins/zond/zond_functions.php on line 305
PHP Notice:  Undefined offset:  2 in /var/www/cacti/plugins/zond/zond_functions.php on line 306
PHP Notice:  Undefined index:  color in /var/www/cacti/plugins/zond/zond_init.php on line 349
PHP Notice:  Undefined offset:  1 in /var/www/cacti/plugins/zond/zond_functions.php on line 305
PHP Notice:  Undefined offset:  2 in /var/www/cacti/plugins/zond/zond_functions.php on line 306
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 369
PHP Notice:  Undefined index:  title in /var/www/cacti/plugins/zond/zond_init.php on line 375
PHP Notice:  Undefined index:  plot_type in /var/www/cacti/plugins/zond/zond_init.php on line 381
PHP Notice:  Undefined index:  title in /var/www/cacti/plugins/zond/zond_init.php on line 385
<HTML>
 <HEAD>
    <TITLE>core-vt-8g - Traffic - Gi0/1</TITLE>
 </HEAD>
  <SCRIPT LANGUAGE=javascript>
    function resize_window(w,h) {
        var refresh=2;
        var wW = screen.width;
        var wH = screen.height;

        while (1) {

            if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                var ww = document.body.clientWidth;
                var wh = document.body.clientHeight;
            } else {
                var ww = window.innerWidth;
                var wh = window.innerHeight;
            }

            var diff_w = Math.round((w - ww)/refresh);
            var diff_h = Math.round((h - wh)/refresh);

            if (diff_w <1 && diff_h <1) {
                self.resizeBy(diff_w,diff_h);
                self.moveTo((wW-ww)/2,(wH-wh)/2);
                return;
            }

            self.moveTo((wW-ww)/2,(wH-wh)/2);
            self.resizeBy(diff_w,diff_h);
        }
    }
 </SCRIPT>
 <BODY onLoad="resize_window(600,258)" style='background-color:#F9F9F9;margin:0'>
 <APPLET id = 'applet' codebase='http://H_O_S_T/plugins/zond/' code='netzond.class' width=600 height=258'>
    <PARAM name='dataParams' value='time,time,mm:ss,[,]'>
    <PARAM name='SWParams' value='bits per second,1000,2,true,false,100,true,0,5'>
    <PARAM name='outerParams' value='2,1,Tahoma,7,8,8,core-vt-8g - Traffic - Gi0/1,,,, ,zond plugin,true,1500,http://H_O_S_T/plugins/zond/zond_process.php?s_i_d=okgl6mhlnnihs80crvb4gi0l77&tasks=YTo0OntzOjQyOiIzNTUzOjp0cmFmZmljX2luOjpjb3JldnQ4Z190cmFmZmljX2luXzE2MzEiO2E6NDp7czo0OiJ0eXBlIjtzOjE6IjIiO3M6NjoibWV0aG9kIjtzOjE6IjAiO3M6NToicXVlcnkiO3M6NDg6IjEwLjMuMC4xOCBldm8tcm8gLjEuMy42LjEuMi4xLjMxLjEuMS4xLjYuMTAxMDEgMiI7czo0OiJjZGVmIjtzOjU6ImIsOCwqIjt9czo0MzoiMzU1NDo6dHJhZmZpY19vdXQ6OmNvcmV2dDhnX3RyYWZmaWNfaW5fMTYzMSI7YTo0OntzOjQ6InR5cGUiO3M6MToiMiI7czo2OiJtZXRob2QiO3M6MToiMCI7czo1OiJxdWVyeSI7czo0OToiMTAuMy4wLjE4IGV2by1ybyAuMS4zLjYuMS4yLjEuMzEuMS4xLjEuMTAuMTAxMDEgMiI7czo0OiJjZGVmIjtzOjU6ImQsOCwqIjt9czo1OiJQUklOVCI7YToyOntpOjA7czoxOiJhIjtpOjE7czoxOiJjIjt9czozOiJNQVAiO2E6Mjp7czo0MjoiMzU1Mzo6dHJhZmZpY19pbjo6Y29yZXZ0OGdfdHJhZmZpY19pbl8xNjMxIjtzOjE6ImIiO3M6NDM6IjM1NTQ6OnRyYWZmaWNfb3V0Ojpjb3JldnQ4Z190cmFmZmljX2luXzE2MzEiO3M6MToiZCI7fX0.'>
    <PARAM name='innerParams' value='2,5,5,40,5,55,5,0,-1,true,true,true,false,solid,1,1,1,static,false'>
    <PARAM name='colorParams' value='0,0,0;96,96,96;94,94,147;77,77,123;17,178,253;6,254,216;146,70,200;164,164,164;10,10,10;74,74,74;2,19,2;21,206,21;0,0,0;0,42,151'>
    <PARAM name='objcolsParams' value='1,0,0,1,4,3,2,2,7,5,6,5,5,9,8,9'>
    <PARAM name='swString' value='0,plot,11,10,200,true,true,Inbound,true,true,solid,1,false,false,false;1,,12,12,200,true,true,,true,true,solid,1,false,false,false;2,line,13,13,255,true,true,Outbound,true,true,solid,1,false,false,false;3,,12,12,200,true,true,,true,true,solid,1,false,false,false'>
 </APPLET>
 </BODY>
</HTML>
[quote][b]Cacti Version[/b] - 0.8.7e
[b]Plugin Architecture[/b] - 2.5
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.31-gentoo-r6monitoring
[b]Web Server[/b] - Apache
[b]PHP[/b] - 5.2.11-pl1-gentoo
[b]PHP Extensions[/b] - date, libxml, openssl, pcre, zlib, bcmath, bz2, curl, dba, dom, ftp, gd, gettext, hash, iconv, mbstring, mcrypt, mysql, SimpleXML, SPL, PDO, posix, Reflection, session, pdo_mysql, snmp, soap, sockets, standard, xml, xmlreader, xsl, zip, apache2handler, yaz
[b]MySQL[/b] - 5.0.84
[b]RRDTool[/b] - 1.2.30
[b]SNMP[/b] - 5.4.2.1
[b]Plugins[/b][list]PHP Network Weathermap (weathermap - v0.96)
Host Info (hostinfo - v0.2)[/list][/quote]
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

LinuxLoader wrote:After upgreiding to cacti latest and plugin arch 1.4 zond stop working for me ... here is the error

Code: Select all

 php zond_init.php 1596
(...) </APPLET>
 </BODY>
</HTML>
this is known problem reported by several users. I am working on this (and several other issues) now.
aleto
Posts: 39
Joined: Wed May 25, 2005 3:57 am

Post by aleto »

Any updates on this?
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

aleto wrote:Any updates on this?
work in progress...~10% remaining.
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

Thanks John!
We really appreciate your work!
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

johnrembo wrote: can you manualy check if two digit groups are returned by the script? Simply copy and paste url to your browser (zond should be running in the separate window, otherwise permission issues may occur)

http://srvman/plugins/zond/zond_process ... 19e&tasks= YTo0OntzOjQxOiIyOTgwOjpoZGRfdG90YWw6OmVzeHByb2QwMV9oZGRfdG90YWxfMTAwNCI7Y TozOntzOjQ6InR5cGUiO3M6MToiMSI7czo2OiJtZXRob2QiO3M6MToiMiI7czo1OiJxdW VyeSI7czoxNTc6ImVzeHByb2QwMS5kb21tZWwubG9jYWwgcHVibGljIEM6XHdhbXBcd3d3X HNjcmlwdHNcc3NfaG9zdF9...
it should display something like
21235423215 2354865453
It does not return anything. It just forwards me to the cacti index if I paste the url to a browser window.
Is makes no differance if i use a window with logged-in user, or the guest user(not logged-in).
Permissions seems fine(guest user has permissions on the graphs, also the traffic datasource works fine).
Is it normal for the task variable to be that long?
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

YoMarK wrote:
johnrembo wrote: can you manualy check if two digit groups are returned by the script? Simply copy and paste url to your browser (zond should be running in the separate window, otherwise permission issues may occur)

http://srvman/plugins/zond/zond_process ... 19e&tasks= YTo0OntzOjQxOiIyOTgwOjpoZGRfdG90YWw6OmVzeHByb2QwMV9oZGRfdG90YWxfMTAwNCI7Y TozOntzOjQ6InR5cGUiO3M6MToiMSI7czo2OiJtZXRob2QiO3M6MToiMiI7czo1OiJxdW VyeSI7czoxNTc6ImVzeHByb2QwMS5kb21tZWwubG9jYWwgcHVibGljIEM6XHdhbXBcd3d3X HNjcmlwdHNcc3NfaG9zdF9...
it should display something like
21235423215 2354865453
It does not return anything. It just forwards me to the cacti index if I paste the url to a browser window.
Is makes no differance if i use a window with logged-in user, or the guest user(not logged-in).
Permissions seems fine(guest user has permissions on the graphs, also the traffic datasource works fine).
Is it normal for the task variable to be that long?

ok, it is normal behaviour of the zond security.
please check if "SECURITY ENVIRONMENT=CACTI(strong)"
then, open zond graph(no matter if it shows nothing), copy url from html source
then, open new tab (not new browser instance!) and paste url there.

remember - if session id's will not match - you will be redirected to cacti login screen.
aleto
Posts: 39
Joined: Wed May 25, 2005 3:57 am

Post by aleto »

Any updates on this?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

New version posted.

See topic http://forums.cacti.net/viewtopic.php?p=120958

couple of bugs, but getting there.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Hi I've install this plugin and I get a new windows with this errors

Code: Select all

Notice: Undefined index: data_name in G:\cacti\plugins\zond\zond_init.php on line 360

Notice: Undefined index: data_name in G:\cacti\plugins\zond\zond_init.php on line 361

Notice: Undefined index: data_name in G:\cacti\plugins\zond\zond_init.php on line 364

Notice: Undefined index: data_name in G:\cacti\plugins\zond\zond_init.php on line 360

Notice: Undefined index: data_name in G:\cacti\plugins\zond\zond_init.php on line 364
or a blank Windows (java loads) but nothing is shown
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

[url=http://forums.cacti.net/viewtopic.php?t=24934&highlight=zond]zond plugin[/url]
[url=http://forums.cacti.net/viewtopic.php?t=28384]memorize plugin[/url]
[url=http://forums.cacti.net/viewtopic.php?p=141322#141322]transporter plugin[/url]
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

HI:

Whaat du you mean by try this one!, My question was related to ZonD this is a different plugin. Do I need to install this plugin as a prerequesite ????

Confused ? :-?
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I've tried to uses realtime, But I get a broken image...
Attachments
rel.JPG
rel.JPG (15.44 KiB) Viewed 6841 times
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

both of these plugins are independent.

ZOND has no advantages if compared to "realtime". Moreover - it has issues that can't be solved at cacti-side. I'm not supporting ZOND plugin for over the year now.
Community uses "realtime" - so should you. All quesitons reg. "realtime" should not be addressed here.
[url=http://forums.cacti.net/viewtopic.php?t=24934&highlight=zond]zond plugin[/url]
[url=http://forums.cacti.net/viewtopic.php?t=28384]memorize plugin[/url]
[url=http://forums.cacti.net/viewtopic.php?p=141322#141322]transporter plugin[/url]
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Thank you and we'll do. I have moved the post..
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest