Hi,
Something must have stopped over night as I have gaps in cricket graphs and all lines in netmap have gone grey. Im not sure if this has was the case at previous nights.
Im using the lenny-test packages on Debian Lenny.
Running "/usr/share/cricket/collect-subtrees normal" as navcron I get these messages:
--- snip --- Error and the lines leading up to it: [06-Jan-2010 11:45:17 ] Retrieved data for 10.0.20.2 (): 0,0,45486572,20045736,17856320 [06-Jan-2010 11:45:17 ] Retrieved data for 10.7.0.11 (): 0,0,0,0,48601868,6105112,2442848594 [06-Jan-2010 11:45:18 ] Retrieved data for 10.7.0.9 (): 9,8,81827916,35395284,1346517318,26 Use of uninitialized value in split at /usr/share/cricket/collector line 274. [06-Jan-2010 11:45:18*] Could not find any datasources for target type 10.7.0.10. [06-Jan-2010 11:45:18*] No data retrieved. Skipping RRD update. --- snip ---
And the list goes on.
This is the line in usr/share/cricket/collector: 274 my(@targetDSs) = split(/\s*,\s*/, $ttRef->{'ds'});
I hope someone can give me a clue where to look..
mvh Nils Olav Fossum
Ok, did some changes, and got some more info
Looks like there is several things going wrong, and a part of these is probably me doing the wrong things.
Onsdag 6. januar 2010, skrev Nils Olav Fossum:
Hi,
Something must have stopped over night as I have gaps in cricket graphs and all lines in netmap have gone grey. Im not sure if this has was the case at previous nights.
Some lock files in temp do not get removed, this might be a part of my problem.. :
nav:/etc/nav/cricket-config/switches# sudo -u navcron /usr/share/cricket/collect-subtrees normal Subtree normal is currently being processed. If this is a mistake, use "rm /tmp/navcron-subtree-normal" to unlock it.
While writing this I switched to singeluser mode, cleaned /tmp and rebooted. The time stamps on rrd's is updated, but the graphs are staying blank.
Im trying to kickstart some of the processes, obviously Im not doing it very well. Are there some guides on how to kick-start the different processes?
Im using the lenny-test packages on Debian Lenny.
Switched to the "just lenny" archive and installed the sun-java6-jre package, made sure it is used with "update-alternatives --config java"
Running "/usr/share/cricket/collect-subtrees normal" as navcron I get these messages:
--- snip --- Error and the lines leading up to it: [06-Jan-2010 11:45:17 ] Retrieved data for 10.0.20.2 (): 0,0,45486572,20045736,17856320 [06-Jan-2010 11:45:17 ] Retrieved data for 10.7.0.11 (): 0,0,0,0,48601868,6105112,2442848594 [06-Jan-2010 11:45:18 ] Retrieved data for 10.7.0.9 (): 9,8,81827916,35395284,1346517318,26 Use of uninitialized value in split at /usr/share/cricket/collector line 274. [06-Jan-2010 11:45:18*] Could not find any datasources for target type 10.7.0.10. [06-Jan-2010 11:45:18*] No data retrieved. Skipping RRD update. --- snip ---
All the boxes that is failing is procurve switches.. All the Cisco boxes are OK. I have some older catalyst switches i can lab on, but all our newer infrastructure use Procurves :-/ Any help here i greatly appreciated.
Also, /etc/nav/cricket-config/switches/Defaults looks incomplete/corrupt:
graph cpu1min units = % color = dark-green draw-as = AREA y-axis = "Percent CPU utilization" legend
The file ends after the tab where the "=" sign should be.
I tried to fix it with some copy/paste, but I really dont know what should be there. What generates this file and where do the settings come from?
So, I will let this installation go like this for the rest of the weekend. I do not expect to find that much is fixed by it self on Monday :-/ A more structured approach is what I need to come up with. Suggestions are very welcome!
:-D
mvh Nils Olav Fossum
Nils Olav Fossum nils.fossum@midtre-gauldal.kommune.no writes:
Also, /etc/nav/cricket-config/switches/Defaults looks incomplete/corrupt:
graph cpu1min units = % color = dark-green draw-as = AREA y-axis = "Percent CPU utilization" legend
The file ends after the tab where the "=" sign should be.
I tried to fix it with some copy/paste, but I really dont know what should be there. What generates this file and where do the settings come from?
AFAIK I know it is not generated, but is following the package. You could try to 'aptitude reinstall nav' and see if the file is looking more sane.
You could also take a look at a copy [1] from one of my installations with the 2+3.5.4-1lenny1 version of the package.
- Werner
[1] http://folk.uio.no/werner/cricket-config_switches_Defaults
Lørdag 9. januar 2010, skrev Morten Werner Forsbring:
Nils Olav Fossum nils.fossum@midtre-gauldal.kommune.no writes:
Also, /etc/nav/cricket-config/switches/Defaults looks incomplete/corrupt:
graph cpu1min units = % color = dark-green draw-as = AREA y-axis = "Percent CPU utilization" legend
The file ends after the tab where the "=" sign should be.
I tried to fix it with some copy/paste, but I really dont know what should be there. What generates this file and where do the settings come from?
AFAIK I know it is not generated, but is following the package. You could try to 'aptitude reinstall nav' and see if the file is looking more sane.
Something is touching that file as the timestamp this morning was from around 05.00 today. 'aptitude reinstall nav' did not change the file
However, I have these in my apt cache: -rw-r--r-- 1 root root 1778976 19 nov. 07:10 nav_2+3.5.4-1lenny1_all.deb -rw-r--r-- 1 root root 1778736 26 okt. 06:27 nav_2+3.5.4-1lenny1~test5_all.deb
(the apt cache has never been cleared since installation)
The 'Defaults'-files in these are identical and looks more complete to me. I copied one of them, and now 'sudo -u navcron /usr/share/cricket/collect-subtrees normal' runs without errors. This also fixes the left-behind 'lock'-file '/tmp/navcron-subtree-normal'. There must be a crash somewhere, and cleanup is not executed properly.
I have no clue where the corruption of '/etc/nav/cricket-config/switches/Defaults' come from, I think I remember this from previous attempts at NAV installations...
You could also take a look at a copy [1] from one of my installations with the 2+3.5.4-1lenny1 version of the package.
- Werner
[1] http://folk.uio.no/werner/cricket-config_switches_Defaults
I see this file is not the same as those in the Debs, I better take a look at Cricket documentation. :-)
Thank you, Werner! This got me going again.