Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


zond plug-in v0.34c released
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Tue Nov 18, 2008 6:25 am    Post subject: Re: zond's graph without legends Reply with quote

tamias wrote:
johnrembo wrote:
locate $sw_string array .... set all to "false".

I did, but how to remove the remaining text and boxes at the bottom?



hmm...i'll have to check documentation and then will reply.
Back to top
KyRoo



Joined: 19 Oct 2007
Posts: 47

PostPosted: Tue Dec 02, 2008 10:25 am    Post subject: Reply with quote

Hi johnrembo,

I have a question for you.
Does the plugin try to access the rrd files in any way?

the reason I ask is because I have a problem.

For some reason the Zond plugin was not working anymore. Since I last tried I moved the rrd-files to a shared network location and the web-user does not have rights on that folder (I know, graphs are not working to but I have made a solution for that)
I tried the newest versions of zond but no success.

I have those error mesages:
In the popup windows
Code:

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

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

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

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

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


in the java console:
Code:

Script [http://<link>/cacti/plugins/zond/zond_process.php?s_i_d=5bbd80566fac0c704f811151629fee2c&tasks=YTozOntzOjU6IlBSSU5UIjthOjM6e2k6MDtzOjU6ImNkZWZhIjtpOjE7czo1OiJjZGVmZiI7aToyO3M6NToiY2RlZmEiO31zOjM6Ik1BUCI7YTozOntpOjA7czoxOiJhIjtzOjU6ImNkZWZhIjtzOjE6ImEiO3M6NToiY2RlZmYiO3M6MToiYiI7fWk6MDthOjE6e3M6MTE6ImNkZWZfc3RyaW5nIjthOjI6e3M6NToiY2RlZmEiO3M6NToiYSw4LCoiO3M6NToiY2RlZmYiO3M6NToiYiw4LCoiO319fQ..] returned incorrect data values count! (0 instead of 3 records)
java.lang.NumberFormatException: For input string: "<br />"


Then when I try to access this link with my browser I get:
(http://<link>/cacti/plugins/zond/zond_process.php?s_i_d=5bbd80566fac0c704f811151629fee2c&tasks=YTozOntzOjU6IlBSSU5UIjthOjM6e2k6MDtzOjU6ImNkZWZhIjtpOjE7czo1OiJjZGVmZiI7aToyO3M6NToiY2RlZmEiO31zOjM6Ik1BUCI7YTozOntpOjA7czoxOiJhIjtzOjU6ImNkZWZhIjtzOjE6ImEiO3M6NToiY2RlZmYiO3M6MToiYiI7fWk6MDthOjE6e3M6MTE6ImNkZWZfc3RyaW5nIjthOjI6e3M6NToiY2RlZmEiO3M6NToiYSw4LCoiO3M6NToiY2RlZmYiO3M6NToiYiw4LCoiO319fQ)

Code:


Notice: Undefined variable: fh in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 125

Warning: Invalid argument supplied for foreach() in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 125

Notice: Undefined variable: output in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 156

Warning: Invalid argument supplied for foreach() in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 156

Notice: Undefined variable: supermap in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 170

Notice: Undefined variable: output in D:\Inetpub\wwwroot\cacti\plugins\zond\zond_process.php on line 171
unknown variable("") type(string) !


Nothing else changed so can you confirm me that the web user needs access to the rrd file for zond to work?

thanks,
KyRoo
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Tue Dec 02, 2008 2:03 pm    Post subject: Reply with quote

John


Can you stear me to what I might want to look at to see why Zond does not even show up on the graphs ? It will show up on the settings tab and users tab ..

but just not on the graphs. I have even tried disabling all my other graphs ...
Back to top
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Wed Dec 03, 2008 3:52 am    Post subject: Reply with quote

KyRoo wrote:
Hi johnrembo,

I have a question for you.
Does the plugin try to access the rrd files in any way?
(...)
Nothing else changed so can you confirm me that the web user needs access to the rrd file for zond to work?

thanks,
KyRoo


Hi,
zond uses cacti's built-in functions and is not directly communicating with rrd files. However, if graphs can't be accessed - execution of "rrdtool_function_graph" at zond_init.php under line 188 most likely fails, and the query generated by zond_init.php for zond_process.php is faulty too.
If you're familiar with php - you could try extend beginning and end of zond_init.php with several lines that would do the following:
1) determine required rrd file (extract record from poller_output table by local_data_id - in zond_init.php it is known as ldi or l_d_i)
2) copy rrd file from shared resource to cacti's local rrd path
3) perform zond_init.php
4) at the very bottom of zon_init.php - remove temporary rrd file.
Back to top
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Wed Dec 03, 2008 4:53 am    Post subject: Reply with quote

chrisgapske wrote:
John


Can you stear me to what I might want to look at to see why Zond does not even show up on the graphs ? It will show up on the settings tab and users tab ..

but just not on the graphs. I have even tried disabling all my other graphs ...


check if "users management->admin->Zond button next to charts" is marked.
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Wed Dec 03, 2008 8:15 am    Post subject: Reply with quote

yes all boxes are checked. I have tryed both ways enabled for every user and on a per user basis.
Back to top
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Wed Dec 03, 2008 9:07 am    Post subject: Reply with quote

chrisgapske wrote:
yes all boxes are checked. I have tryed both ways enabled for every user and on a per user basis.


hmm...any other plugins using same auth_realm as zond does?
first, you could try disabling all plugins except zond and see if it helps.
second, you could try changing zond's auth realm to any other number than 71, at /zond/setup.php, lines 238-240.
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Wed Dec 03, 2008 9:11 am    Post subject: Reply with quote

I tryed changeing it to 171 and same issue. It would seem that the button just does not show up on the graph. .

And I did at try removing all other plugins but Zond.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Fri Dec 19, 2008 4:26 am    Post subject: Reply with quote

Hi,
I have zond and SNMPTrafficeGrapher
I control same interface with both tool.
But there is some weird things:
They measure different!
Both set 5000 ms
And they show different max. values etc.
Why?
Another question, why zond shows negative values??



snmpt.jpg
 Description:
SNMPTrafficGrapher
 Filesize:  61.87 KB
 Viewed:  257 Time(s)

snmpt.jpg



zond.jpg
 Description:
ZOND
 Filesize:  60.14 KB
 Viewed:  257 Time(s)

zond.jpg


Back to top
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Mon Dec 22, 2008 2:52 am    Post subject: Reply with quote

TFC, i remember we allreade had similar discussion on page-6 of this topic.
I was investigating this problem intensively and have come to a conclusion there are external processes that sometimes randomly terminate zonds "sleep()" function - this is not a bug, but normal unix sleep() behaviour. Because this happens randomly - it is very difficult to debug the problem. I've corrected this issuje, however, only partly - delta time between two measurements is now correct, but I was unable to force exact 1sec. 2secs etc. sleeps(). That results in some biases.
I was even wondering placing zond_process.php on another machine (which doesn't contai cacti with it's poller) - that should sovle the problem. however it's is poor man's solution.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Mon Dec 22, 2008 2:58 am    Post subject: Reply with quote

Yes u right, the values are taken in different time spaces. But, if you look at the values, they are completely different. One of them has Mega other one have not. As you know, the difference between two delta time must not be like that.
And, i crosschecked this graph by using realtime plug-in. Again, it shoed megabits/sec values. But zond dont show megabits/sec.
Back to top
johnrembo
Cacti User


Joined: 24 Apr 2006
Posts: 204

PostPosted: Mon Dec 22, 2008 3:09 am    Post subject: Reply with quote

TFC wrote:
Yes u right, the values are taken in different time spaces. But, if you look at the values, they are completely different. One of them has Mega other one have not. As you know, the difference between two delta time must not be like that.


you should take a look at my last post (image) on page-2. When zond looses 1 response - (last counter=previous counter, delta =0). Next value is (0-current_counter=hudge negative value).
zond_process.php is isolated-type script that doesn't know anything about previous values - so the only way to correct this issuje is tune zond applet by adding some intelligence. However - collecting hudge ammount of ...say...64-bit counter tables will simply kill your browser.
That's a problem
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 617
Location: Izmir/Turkey

PostPosted: Mon Dec 22, 2008 3:17 am    Post subject: Reply with quote

Too compliated.
Debuggings is hard.
I think I cant use zond in these circumstances...
Becouse shows wrong values :s
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Page 8 of 8

 



Powered by phpBB © 2001, 2005 phpBB Group