Problem is solved, cricket graphs shows statistics this time..
It was my error.
I should run ./compile in cricket dir as navcron-user, not as a root.
Running su - navcron was not enough, but su - navcron -s /bin/bash solved it :)
Thanx all 4 help!
Silvije
Citat John Magne Bredal <john.m.bredal(a)ntnu.no>:
> Hi,
>
> it seems like makecricketconfig does not find any data in the database
> for some reason. Can you please send me the log makecricketconfig.pl
> makes? This log should be in the mailbox to the user navcron.
>
> Silvije wrote:
> >
> >>
> >> When you say there are no statistics, what do you mean exactly? Are
> >> there empty graphs on your Cricket pages, or are there no links to any
> >> graphs at all?
> >
> >
> > There are no links at all, just Cricket warning saying:
> >
> > WARNING: This install of Cricket is a part of NAV-v3. When viewing the
> > data, please note that we are not responsible for any anomalies on the
> > network that you may see here. We are only displaying them. Any grief
> > you may experience when using this install of Cricket is purely
> > self-inflicted, and of no importance to us. If you however feel that we
> > are helping you in any way, please feel free to send money to the
> > editor. If you take this text seriously, don't
> >
> > and no graphs..
> >
> >> Ok, I did a little checking, and it seems Debian packages the Python
> >> Profiler as a separate package, under the non-free section (I don't know
> >> why, but I assume it's because the profile module is released under some
> >> other license than the rest of the Python library..?)
> >>
> >> Assuming you have the non-free section as part of your sources in
> >> /etc/apt/sources.list, try running "apt-get install python-profiler" and
> >> see whether NAV works after that. Cc: to Morten Werner, who is the NAV
> >> Debian package maintainer.
> >>
> >
> > Thanks for that, now it works without python errors :)
> >
> > Regards,
> >
> > Silvije Milisic,
> > CARNet
> > _______________________________________________
> > Nav-users mailing list
> > Nav-users(a)itea.ntnu.no
> > http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
>
>
> --
> John Magne Bredal
> NTNU, ITEA - Nettgruppa
> "Just because you're paranoid, doesn't mean they're not after you."
>
--
Ova poruka poslana je s CARNetovog webmail sustava
--- http://webmail.carnet.hr/ ---
>From john.m.bredal at ntnu.no Tue Nov 15 16:06:27 2005
From: john.m.bredal at ntnu.no (John Magne Bredal)
Date: Tue Nov 15 16:05:44 2005
Subject: [Nav-users] Messages
Message-ID: <4379F973.903(a)ntnu.no>
https://beta.nav.ntnu.no/messages/set?netbox=26
velger den ene messagen som ligger der.
trykker 'add equipment to message'
f?r:
Mod_python error: "PythonHandler messageshandler"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/usr/local/nav/apache/webroot/messages/messageshandler.py", line
129, in handler
output = commitplacement(req)
File "/usr/local/nav/apache/webroot/messages/messageshandler.py", line
1076, in commitplacement
raise "noe skjedde"
noe skjedde
--
Mads Vaagland
ITEA systemdrift, NTNU
via.
--
John Magne Bredal
NTNU, ITEA - Nettgruppa
"Just because you're paranoid, doesn't mean they're not after you."
>From morten.vold at ntnu.no Wed Nov 16 10:19:29 2005
From: morten.vold at ntnu.no (Morten Vold)
Date: Wed Nov 16 10:19:32 2005
Subject: [Nav-users] Messages
In-Reply-To: <4379F973.903(a)ntnu.no>
References: <4379F973.903(a)ntnu.no>
Message-ID: <437AF9A1.6070207(a)ntnu.no>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15/11/2005 16:06, John Magne Bredal uttered:
> https://beta.nav.ntnu.no/messages/set?netbox=26
> velger den ene messagen som ligger der.
John-Magne, I appreciate you forwarding bug reports to nav-users, but
don't forget that the list prefers English :)
> File "/usr/local/nav/apache/webroot/messages/messageshandler.py", line
> 1076, in commitplacement
> raise "noe skjedde"
>
> noe skjedde
This is a known bug, and as far as I know, it was fixed on the trunk in
r3350. It should be available in the 3.0.1 release (we have no schedule
for this release yet; the bug report comes from NTNU, who will be
running bleeding edge NAV shortly).
- --
Morten Vold, ITEA, NTNU
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDevmhXxIl0kpcOkQRAr2iAJ9byaD+TJsU5G9hrXG4QHYrxfL3wwCeJr7T
CqCXHakDnausoM3CyS1na2E=
=IphL
-----END PGP SIGNATURE-----
>From lox at netzwerkplanet.de Wed Nov 16 18:53:05 2005
From: lox at netzwerkplanet.de (Christian Lox)
Date: Wed Nov 16 18:54:37 2005
Subject: [Nav-users] cricket question
Message-ID: <437B7201.10701(a)netzwerkplanet.de>
Hi!
I just managed to get an installation of NAV up and running.
For test purposes I inserted some witches and routers into the database.
When clicking "statistics" on the toolbox page, I notice there are
not all device displayed:
There is on Cisco 7507 in the DB which is displayed unter
router-interfaces but not under router.
Then there are two 2610, which also do not appear under router.
One of them appears under router-interfaces, the other does not
appear at all.
Furthermore I am testing two switches which appear fine under
switch-interfaces but not under switches.
What am I doing wrong?
Thanks,
Christian
--
you don't need eyes to see
you need visions.
>From lox at netzwerkplanet.de Thu Nov 17 14:13:09 2005
From: lox at netzwerkplanet.de (Christian Lox)
Date: Thu Nov 17 14:14:49 2005
Subject: [Nav-users] replaced devices don't get updated
Message-ID: <437C81E5.9080107(a)netzwerkplanet.de>
Hi!
In our initial test setup I had to replace a switch and the
corresponding router interface.
We had a Cisco 2912XL connected to a Fastethernet interface on a
7507 router.
This morning the 2912 was replaced by a 3524 and the router
interface now is a Gigabit interface.
I edited the switch via "edit database".
It was recognized as a 3524XL.
So far so good.
I would expect that the corresponding websites (like Device browser,
statistics etc) get updated.
But the device browser still shows the 12 Ports of the 2912 which
was removed, though the type if the device reports " cisco,
cat3524XL, Catalyst 3524 XL switch".
How do we get the new device registered?
Thanks,
Christian
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/11/2005 09:11, Borge Brunes uttered:
>> I have a sneaking suspicion. Why did you put fp1A245-sw on
>> maintenance? Did you change any modules in the box while it was on
>> maintenance?
> I replaced the orginal box with a new one (Sorry. Should have told
> you that).
I think I know what the problem is - the maintenanceOff-events are
posted using the device ID of the replaced device, but since this device
is no longer associated with the netbox instance, the system still
thinks the netbox is down.
I will try to find some time to fix this bug tomorrow. I'm guessing
you're still running the bleeding edge from Subversion? ;)
- --
Morten Vold, ITEA, NTNU
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDZ0PGXxIl0kpcOkQRAn71AJ4tu0b7AMRB5AKd4h9QV98bSwK+uQCgmmop
9H/sa5lsSTHGVRI3C18hLT0=
=nNtc
-----END PGP SIGNATURE-----
>From odd.hauge at hiMolde.no Thu Nov 3 08:56:37 2005
From: odd.hauge at hiMolde.no (Hauge Odd Arne)
Date: Thu Nov 3 08:56:49 2005
Subject: [Nav-users] Moduke down and up again
Message-ID: <8EEE7738AEDF6947B3E5508A0244D1C27D0E16(a)stam.himolde.no>
Hi.
For a Cisco 3750Metro GSW I get the following messages.
This is an automatically generated message from NAV:
Module 11, box molde-gw2.uninett.no (158.38.0.65) does not reply to
request and is declared down.
Detected 2005-11-02 20:36:29.
And after some hours:
This is an automatically generated message from NAV:
Module 11, box molde-gw2.uninett.no (158.38.0.65) is up again.
Since: 2005-11-03 02:36:30.
Even if the module is declared down I can ping the ip-address.
Any ideas anyone ?
Regards
Odd Arne Hauge
I took a switch off maintenance. After a couple of minutes I
recived 2 messages:
- One from cron:
"Box fp1A245-sw.infra.uit.no (301) was on unscheduled maintenance,
taking off maintenance now..."
- One from alertengine:
"Dette er en automatisk generert melding fra NAV:
fp1A245-sw.infra.uit.no is no longer on maintenance,
since 2005-10-31 15:05:00"
After that I recive the same to messages every 5 minutes :-(
It has been going on for 16 houes now...
Suggestions anyone?
regards,
--
Borge Brunes, Computer Center, University of Tromso, Norway
http://www.cc.uit.no/~borge/ | http://www.freebsd.org
Hi.
Is there any solution to this "problem"...
I'm having the same issue, and it's a bit annoying.
Regards
Odd Arne Hauge
> -----Original Message-----
> From: nav-users-bounces(a)itea.ntnu.no
> [mailto:nav-users-bounces@itea.ntnu.no] On Behalf Of Borge Brunes
> Sent: Friday, March 11, 2005 2:41 PM
> To: nav-users(a)itea.ntnu.no
> Cc: borge(a)cc.uit.no
> Subject: [Nav-users] Problem with case sensitive hostname/sysname
>
> An old problem from The Beginning is back:
>
> eventEngine EVENTQ_MONITOR_TASK-6-RUN Got event: e=4153 d=108
> n=32 t=info s=x [dnsname=piffi.cc.uit.no] [sysname=PIFFI]
> [alerttype=dnsMismatch] alertEngine User-6-sendSMS: SMS XXXX:
> piffi.cc.uit.no does not match piffi.cc.uit.no (This is an
> M$-box and there is no easy way tho change the sysname)
>
> regards,
>
> --
> Borge Brunes, Computer Center, University of Tromso, Norway
> http://www.cc.uit.no/~borge/ | http://www.freebsd.org
>
>
> _______________________________________________
> Nav-users mailing list
> Nav-users(a)itea.ntnu.no
> http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
>
woj(a)tstd.pl said:
> last time I tried to get such statistics it was problematic, because cricket
> module couldn't do it automatically. Something changed?
I don't know, but it have always(?) worked for us with category=GW
and netsnmp 5.2.1 innstalled on the linux-host. I also use
sysservices 79 in snmpd.conf, but I don't think it's necessary.
regards,
--
Borge Brunes, Computer Center, University of Tromso, Norway
http://www.cc.uit.no/~borge/ | http://www.freebsd.org
woj(a)tstd.pl said:
> 2. Was anybody successful with monitoring linux boxes with MetaNav?
No problem.
regards,
--
B?rge Brunes, IT-avdelingen, Universitetet i Troms?
http://www.cc.uit.no/~borge/http://www.freebsd.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 27/10/2005 21:09, Wojciech Kozicki uttered:
> 1. Is debian package up to date? I was using it before, and I would
> like to try it again. I was using SID, maybe this time it will go on
> stable? What is best distro to install NAV? To have no problems with
> upgrades...
As far as I know, the Debian package maintainer (Morten Werner) has not
yet updated the Debian package to version 3.0.0. I do know that Uninett
want to put more force and support behind the Debian package. Their
plan is to roll out Debian based servers to Norwegian University
Colleges, readily configured for services like e-mail, network
monitoring and such.
> 2. Was anybody successful with monitoring linux boxes with MetaNav?
What do you mean, exactly? (BTW: The name is NAV - Network
Administration Visualized. MetaNav is the NAV web site).
- --
Morten Vold, ITEA, NTNU
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDZdzlXxIl0kpcOkQRAgqbAKCZ5Cd4k1u2dGdIPeVINYPDMlgXhQCcCFLk
Ykd24ffCVJPZdeyEbOPpZPY=
=ghyr
-----END PGP SIGNATURE-----
>From woj at tstd.pl Mon Oct 31 10:24:57 2005
From: woj at tstd.pl (Wojciech Kozicki)
Date: Mon Oct 31 10:25:13 2005
Subject: [Nav-users] one more time...
In-Reply-To: <4365DCE6.7080403(a)ntnu.no>
References: <200510272109.55787.woj(a)tstd.pl> <4365DCE6.7080403(a)ntnu.no>
Message-ID: <200510311024.58208.woj(a)tstd.pl>
On Monday 31 of October 2005 09:59, Morten Vold wrote:
> On 27/10/2005 21:09, Wojciech Kozicki uttered:
> > 2. Was anybody successful with monitoring linux boxes with MetaNav?
>
> What do you mean, exactly?
I mean - gather network interfaces statistics (for example)
> (BTW: The name is NAV - Network
> Administration Visualized. MetaNav is the NAV web site).
Ok.
regards
--
Woj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17/10/2005 20:57, Silvije uttered:
> # ./nav status cricket
> cricket: Up
> Does nav have to be in $PATH?
Only if it is convenient for you. On the other hand, I'm guessing that
on a Debian installation you can use "invoke-rc.d nav" to call the nav
init script.
When you say there are no statistics, what do you mean exactly? Are
there empty graphs on your Cricket pages, or are there no links to any
graphs at all?
> This is what I get:
>
> # python -c 'import profile'
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> ImportError: No module named profile
Ok, I did a little checking, and it seems Debian packages the Python
Profiler as a separate package, under the non-free section (I don't know
why, but I assume it's because the profile module is released under some
other license than the rest of the Python library..?)
Assuming you have the non-free section as part of your sources in
/etc/apt/sources.list, try running "apt-get install python-profiler" and
see whether NAV works after that. Cc: to Morten Werner, who is the NAV
Debian package maintainer.
On a side note: I don't know why the profile module is used in the
production release, but one of the original authors of the IP Device
Center has promised to look into it.
> This is solved, but only one router is drawn and link to another
> unknown device... I have seeded into database one router and 2
> switches but switches dont appear in graph.
Ok, on this matter I will have to ask Kristian to help, since he's the
most knowledgeable on the Traffic Map (having authored it, and all ;) )
Kristian?
- --
Morten Vold
NTNU ITEA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDVJnkXxIl0kpcOkQRAqozAJ4jS9LivAGdruuPTzvjbFOmRea86QCgtnOV
YcF4CpPUqArTRd/I1W7OUWg=
=na9/
-----END PGP SIGNATURE-----
>From kreide at gmail.com Tue Oct 18 00:50:04 2005
From: kreide at gmail.com (Kristian Eide)
Date: Tue Oct 18 08:50:10 2005
Subject: [Nav-users] Beginners problem
In-Reply-To: <4353F403.4070007(a)carnet.hr>
References: <4353F403.4070007(a)carnet.hr>
Message-ID: <b4c110fd0510172350r67599f4crdd324d0e8fc0a397(a)mail.gmail.com>
> This is solved, but only one router is drawn and link to another unknown
> device... I have seeded into database one router and 2 switches but
> switches dont appear in graph.
Switches are not shown on the top level actually, but you can click on
the router icon to navigate further down in the network (you might
have to be logged in for this to work).
--
Kristian
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17/10/2005 15:22, Reier Johan R?dland uttered:
> web_access for
> ^/(report|status|emotd|alertprofiles|machinetracker|browse|preferences|cricket)/?
Don't forget:
web_access for ^/(vlanPlot|navAdmin)/?
> When we put a user in that group he can also change the Traffic Map
> and save the new layout! Bug??
Yep. I just checked this with Kristian, and it seems to be an
unfortunate oversight on our part. The Traffic Map assumes that any
authenticated user is an adminstrator :(
> Are there some documentation on how to build new groups with
> different priveleges? What do the different Regular expressions do?
It might not be very well documented, but it should be straightforward.
The /web_access/ privilege is used to grant access to resources on the
web server, by matching the URL requested by the browser against the
regular expression in the privilege target. If the URL requested by the
browser matches any of the regular expressions in the web_access
privileges of the user's groups, access is granted. If not, access is
denied, and the user is redirected to the NAV login page.
So web_access for
^/(report|status|emotd|alertprofiles|machinetracker|browse|preferences|cricket)/?
grants access to any URL beginning with a slash, followed by any of the
pipe separated words, then possibly followed by another slash (I'm
assuming you know your regexp here).
> What are the use of "Member of the following organizations"?
I don't think this is actually used by any part of NAV right now, but
the idea is to use this in the future as an aid to further limit what
information users have access to. The organizational tree you can
select from is the one that has been entered in editdb, and the same one
which is referred to by IP devices registered in the NAV database. Each
IP device can belong to a given organizational unit, and so can network
prefixes.
So, what we hope to have ready in NAV 3.1 is a system where the
administrator(s) can configure privileges which allow users to use the
machine tracker to track IP addresses only within the prefixes belonging
to their own organizational units, or view detailed information only
about IP devices owned by their own organizational units.
I also see a need to maybe map these organizational units to
organizational units in an LDAP tree, so that NAV will automatically
know which organizational units LDAP-authenticated users belong to.
- --
Morten Vold
NTNU ITEA Integrasjonsgruppen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDVKzgXxIl0kpcOkQRAsgbAKCAayEN5U1GzadG88E9jsc8Z/96XwCeNQbr
72HoGUIDZAXeYir0aHagZLA=
=bDwB
-----END PGP SIGNATURE-----
>From morten.vold at ntnu.no Tue Oct 18 11:09:23 2005
From: morten.vold at ntnu.no (Morten Vold)
Date: Tue Oct 18 10:09:31 2005
Subject: [Nav-users] Group access in NAV
In-Reply-To: <Pine.LNX.4.63-L.0510171428050.21307(a)vekter.uio.no>
References: <Pine.LNX.4.63-L.0510171428050.21307(a)vekter.uio.no>
Message-ID: <4354ADB3.5080606(a)ntnu.no>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17/10/2005 15:22, Reier Johan R?dland uttered:
> Are there some documentation on how to build new groups with different
> priveleges? What do the different Regular expressions do?
> What are the use of "Member of the following organizations"?
I forgot to mention that some of the existing and future concepts
surrounding the privilege system are mentioned in the tigaNAV report:
http://metanav.ntnu.no/tigaNAV/tigaNAV.pdf
- --
Morten Vold
NTNU ITEA Integrasjonsgruppen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDVK2zXxIl0kpcOkQRAqXKAJ9MpoJS84n7oIAtkn2VRzOZLWrAswCghz0b
6C5cefwuGRA1FDbXscnLt5o=
=/zer
-----END PGP SIGNATURE-----
>From magnus at ntnu.no Tue Oct 18 12:29:12 2005
From: magnus at ntnu.no (Magnus Nordseth)
Date: Tue Oct 18 11:28:36 2005
Subject: [Nav-users] Beginners problem
In-Reply-To: <435499E5.9080807(a)ntnu.no>
References: <4353F403.4070007(a)carnet.hr> <435499E5.9080807(a)ntnu.no>
Message-ID: <20051018092912.GA9208(a)stud.ntnu.no>
Morten Vold:
> On a side note: I don't know why the profile module is used in the
> production release, but one of the original authors of the IP Device
> Center has promised to look into it.
It is safe to just remove the line
import profile
This will be fixed in the next NAV release.
--
Magnus Nordseth