Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
klr0514 wrote: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.
.
ok, I managed to find-out some things.
Here's the response from ucd-snmp mailing lists about the caching problems:
The 5.x line introduced a simple build-in cache for interface statistics,
on a per-architecture basis. This is hard-coded into these early versions.
More recently, there has been a major re-write of the IF-MIB and related
groups. This includes making the timeout behaviour much more flexible.
It is now possible to set the cache timeout dynamically (for each group
individually), flush a specific cache, or flush *all* caches. This is
also common across all supported architectures, rather than being
hardcoded into particular O/S's
We suggest you try with the most recent release of the software (5.4.1).
Hi, I read through this entire post and I did see a small thread where someone also couldn't find the netzond.class file. I've tried Sun's JDK 1.6, JRE 1.6 and JRE 1.5 for my browser VM but none of these work. In fact, the 1.6 version freezes on my system when I click the zond window. I have to kill the apache process. If I use JRE 1.5 I just get a little red X and a note at the bottom saying applet failed to initialize. I've attached a screen cap of this.
Java Debug:
load: class ./netzond.class not found.
java.lang.ClassNotFoundException: ..netzond.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1804)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
at sun.applet.AppletPanel.run(AppletPanel.java:324)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
... 9 more
John's command line debugging:
php zond_init.php 1230
<HTML>
<HEAD>
<TITLE>Localhost - BIND 9 0.0.127.in-addr Statistics</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);
eegilbert wrote:Hi, I read through this entire post and I did see a small thread where someone also couldn't find the netzond.class file. I've tried Sun's JDK 1.6, JRE 1.6 and JRE 1.5 for my browser VM but none of these work. In fact, the 1.6 version freezes on my system when I click the zond window. I have to kill the apache process. If I use JRE 1.5 I just get a little red X and a note at the bottom saying applet failed to initialize. I've attached a screen cap of this.
Java Debug:
(...)
At this point though i never get anything back. The command just sits there indefinitely. Any thoughts?
firstly, I would like you to check if the line $config['url_path']='' is present in include/config.php
if yes - it should not contain any urls - for example if your cacti is at http://myhost/cacti, then find a row
$config = array();
at config.php and add
$config['url_path']='/cacti/' at the next line.
after setting this correctly, try debug zond plugin once again to be sure that no more records like http://H_O_S_Thttps://REMOVED/cacti/plugins/zond/zond_process.php?s_i_d=536e7f6486184
are returned by the script - this row is the cause of your problems.
now, about zond_process.php problem - there has allready been a discussion on retrieving script commands it executes.
to sum up:
open zond_process.php with an editor,
uncomment line 55
I still get the applet failing to initialize as before but I did correct the URL in the include/config.php
If I view the page source of the applet window, and then copy the URL as mentioned by you in a previous post, i get the values for
ok, half of problem is sovled.
now, could you please check you web servers logs - I am wondering what it tells when you click zond button.
ps: you could play with zond-security settings. As far as I saw you are using https - try enter https username and password under zond settings.
[/quote]
zorrosam wrote:Sorry but i have problem with network interfaces graphs .... again .... but on many others zond works perfectly ....
any idea?
sam
you have allready mentioned this problem, but, also, it would be very nice to have more details on this subject, because "problem with network interfaces graphs" is to abstract.
are you experiencing gaps in graphs? are charts refreshing only every 30 seconds or event more rare?
i am currently working on graph template support in zond(95% finished), next step will be ucd-snmp 5.4 testing (5.1, 5.2 have problems with update intervals on some machines).
Little typos make a huge difference! I had modified zond_init.php when I first installed this a week ago while troubleshooting before I posted here. Anyways, the JAVA console wasn't lying, it couldn't find netzond.class.
some screenshots (note time scale - minutes:seconds) :
Install it like any toher plug-in. Don't forget to enable "ZOND button next to charts" for your user (or guest) under "User Management" as displayed in 3rd screenshot.
I am looking forward for your collaboration in catching-out all the bugs.
Please also share your suggestions on this thing - what features you find annoying, what other functionalities you'd like to see etc....
I already do all this, but the ZOND button is still missing in the graphs area.
I have the cacti EZ installed, mysql, php, Java 1.5..