(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

Re: ahh it seems str_split is a php 5 function only...

Post by johnrembo »

zorrosam wrote:ahh it seems str_split is a php 5 function only... and im, guessin ur using php 4 or below...

i which way i can fix the code on my rehdat 4 with php4?
thanx for the tip,
it should work now - try downloading v0.32 again.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

download correct version

Post by zorrosam »

... mmmm .. i download again the ta.gz at page 1 of the post .. but has the same problem again ...

any advice ?
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

problem again ...

Post by zorrosam »

$pass = !function_exists('str_split') ? array_unique(str_split($pass)) : array_unique(str_split4($pass));

.... in this line there's a problem ...
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Re: problem again ...

Post by johnrembo »

zorrosam wrote:$pass = !function_exists('str_split') ? array_unique(str_split($pass)) : array_unique(str_split4($pass));

.... in this line there's a problem ...
damn...friday is pushing me :]
forgot to disable testing (!)

try once again...
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Re: download correct version

Post by johnrembo »

zorrosam wrote:... mmmm .. i download again the ta.gz at page 1 of the post .. but has the same problem again ...

any advice ?
...or you can simply disable "request encryption" under zond settings.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

plugin ok but problem with network interfaces .. again

Post by zorrosam »

sigh ....

i'll hope that the interfaces that collect data with xml file are ok no ... but seems to have problems again ... and i can't visualize none of these ...
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Re: plugin ok but problem with network interfaces .. again

Post by johnrembo »

zorrosam wrote:sigh ....

i'll hope that the interfaces that collect data with xml file are ok no ... but seems to have problems again ... and i can't visualize none of these ...
have you reported this bug before? I must have missed it.
can you give more details on this subject?
klr0514
Posts: 27
Joined: Tue Apr 04, 2006 8:19 am
Contact:

Post by klr0514 »

Fatal error: Call to undefined function: str_split() in /var/www/html/plugins/zond/zond_functions.php on line 143

I think this error may have already been addressed, but with v0.32 this is occurring (downloaded today). With v.031, all of my client stats are working okay, but the interface stats for traffic do not update with zond. Any ideas?
klr0514
Posts: 27
Joined: Tue Apr 04, 2006 8:19 am
Contact:

Post by klr0514 »

Disabling encryption seems to have resolved the str_split error, but I am still not getting any data on my interface stats (which are reported in cacti, but not on Zond). Any ideas on what I may have missed?
Attachments
zond_output.jpg
zond_output.jpg (120.1 KiB) Viewed 8430 times
bloodrayne
Cacti User
Posts: 53
Joined: Mon Nov 29, 2004 11:43 am

Post by bloodrayne »

Wow very nice plugin!

Thanks to you!

:praise:
klr0514
Posts: 27
Joined: Tue Apr 04, 2006 8:19 am
Contact:

java console log errors

Post by klr0514 »

I am going to abbreviate these entries to minimize browser reconfigurations..

Trace level set to 5: all ... completed.
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with cookie "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; clickedFoldert2=1%5E; highlightedTreeviewLinkt2=2"
network: Server http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI requesting to set-cookie with "PHPSESSID=7f0a7ca3348df259d21516e89809ba11; path=/"
network: Cache entry not found [url: http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI version: null]
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI with proxy=DIRECT
network: Connecting http://x.x.x.x/plugins/zond/zond_proces ... ntzOjQyOiI
klr0514
Posts: 27
Joined: Tue Apr 04, 2006 8:19 am
Contact:

so this gets even stranger...

Post by klr0514 »

I have some interface graphs that do work, and some that do not. According to graph_management, they are all using the same template (Interface - Traffic (bits/second), but the graphs that do work were created after I upgraded Cacti to the latest version. The others were created using a previous version of Cacti.
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Re: so this gets even stranger...

Post by johnrembo »

klr0514 wrote:I have some interface graphs that do work, and some that do not. According to graph_management, they are all using the same template (Interface - Traffic (bits/second), but the graphs that do work were created after I upgraded Cacti to the latest version. The others were created using a previous version of Cacti.
Can you give me more info in this? How exactly "do not work" asserts?

in 0.32 there were a lot of major changes in graph-template parsing mechanism and still - I intend to catch-out all the bugs left.
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

klr0514 wrote:Disabling encryption seems to have resolved the str_split error, but I am still not getting any data on my interface stats (which are reported in cacti, but not on Zond). Any ideas on what I may have missed?
I can't guarantee it is 100% true in your case but consider the following:

Several people were complaining about ZOND plugin for displaying zeroes instead of values. It is snmp-daemon specific problem - well, at least I think so.

I don't know how about windows, but linux machines realy seems to have very long snmp-counter update interval.
cacti3:/opt/cacti/plugins/zond# date;snmpget -v 2c -c public 127.0.0.1 IF-MIB:ifInOctets.2
Tue Aug 21 10:54:33 EEST 2007
IF-MIB::ifInOctets.2 = Counter32: 1333720876
...let's wait a little bit...

cacti3:/opt/cacti/plugins/zond# date;snmpget -v 2c -c public 127.0.0.1 IF-MIB:ifInOctets.2
Tue Aug 21 10:55:01 EEST 2007
IF-MIB::ifInOctets.2 = Counter32: 1333720876
...32 sec. have passed and counter is still not updated (i realy was browsing cacti during that time!)

cacti3:/opt/cacti/plugins/zond# date;snmpget -v 2c -c public 127.0.0.1 IF-MIB:ifInOctets.2
Tue Aug 21 10:55:01 EEST 2007
IF-MIB::ifInOctets.2 = Counter32: 1333720876
...still the same....

cacti3:/opt/cacti/plugins/zond# date;snmpget -v 2c -c public 127.0.0.1 IF-MIB:ifInOctets.2
Tue Aug 21 10:55:02 EEST 2007
IF-MIB::ifInOctets.2 = Counter32: 1334047640
...FINALY!...it took more than half of a minute...that means you had to see zeroes on ZOND during that time...

it also lied us about the traffic. Instead of measuring bits per second we have measured bits per 30seconds (result should be divided by 30).


on freebsd(unix) systems counter is perfectly updated every second.

so, most likely it is some snmp-daemon option which forces to behave like that.

and here is aditional info realated to the subject:
Image
klr0514
Posts: 27
Joined: Tue Apr 04, 2006 8:19 am
Contact:

Post by klr0514 »

So when I say they don't work, all numbers are 0 for an extended period of time (let's say 30 minutes). Cacti is updating the main graph with data and I can verify the IOS counters on the interface, but ZOND does not seem to report this. The graphs that are working are behaving exactly as you mentioned. The data is reported in bursts and has to be divided by 30 to make it work correctly. I am running Linux CentOS 4.3. It is just really strange that older graphs with the same template do not work, but newer graphs will.

.
Attachments
this is a working interface
this is a working interface
zond_working.jpg (134.34 KiB) Viewed 8346 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests