davide | 16 Apr 13:39 2014

Shutdown a port

NAV 4

I can change port description or vlan in "Configure port".

How can I change the port administrative status?

Thank you

Mischa Diehm | 8 Apr 12:06 2014
Picon
Picon

Downgrade after upgrade to 4.0.2

Hi,

is there a way to downgrade back to 3.15.8 after a debian upgrade to 4.0.2? After purging 4.0.2 and reinstalling 3.15.8 the files are there but the db seems corrupt:

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 69, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)

  File "/usr/lib/pymodules/python2.7/nav/web/webfront/views.py", line 110, in login
    'errors': errors,

  File "/usr/lib/python2.7/dist-packages/django/views/generic/simple.py", line 26, in direct_to_template
    c = RequestContext(request, dictionary)

  File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 176, in __init__
    self.update(processor(request))

  File "/usr/lib/pymodules/python2.7/nav/django/context_processors.py", line 64, in account_processor
    if preferences.count() == 0:

  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 351, in count
    return self.query.get_count(using=self.db)

  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 418, in get_count
    number = obj.get_aggregation(using=using)[None]

  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 384, in get_aggregation
    result = query.get_compiler(using).execute_sql(SINGLE)

  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 818, in execute_sql
    cursor.execute(sql, params)

  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
    return self.cursor.execute(query, args)

DatabaseError: relation "accountnavbar" does not exist
LINE 1: SELECT COUNT(*) FROM "accountnavbar" WHERE "accountnavbar"."...

thx,
Mischa
 
-- 
Mischa Diehm | Network Operations Center (NOC)
UniBasel | UniRechenZentrum (URZ)
Klingebergstr. 70 | CH-4056 Basel
Tel. +41 61 267 1574 | http://urz.unibas.ch
Attachment (smime.p7s): application/pkcs7-signature, 2977 bytes
Davide Miccone | 7 Apr 20:13 2014

Graphite configure and startup with NAV 4.0.1

Please,
someone can help me to configure and start graphite on Debian 7 with Nav 
4.0.1?

I already activated carbon setting

CARBON_CACHE_ENABLED=true in the file /etc/default/graphite-carbon
ENABLE_UDP_LISTENER = True in the file /etc/carbon/carbon.conf

But I don't understand how to correclty configure graphite for NAV.

Any help will be appreciated.

Davide.

Davide Miccone | 7 Apr 11:56 2014

gpg --keyserver keys.gnupg.net --recv-keys CE8E05E8 WONT WORKS

Trying to install public key with the command (I followed the instructions 
from https://nav.uninett.no/nav_on_debian)

gpg --keyserver keys.gnupg.net --recv-keys CE8E05E8

get the error:

gpg: requesting key CE8E05E8 from hkp server keys.gnupg.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

Any suggestion to resolve?

rija.rasolo | 4 Apr 11:30 2014
Picon

Inventory problem - Extreme Networks Switch - entPhysicalDescr

Hi,
I'm testing the latest NAV virtual machine. I've got problems adding some
Extreme Networks SummitX-250 and Summit-X450.
The error log show that entPhysicalDescr is empty.
Here's the log of ipdevpoll run :
/usr/lib/nav/ipdevpolld -J snmpcheck -n 10.0.0.37
2014-04-04 11:23:40,406 [INFO nav.ipdevpoll] --- Starting ipdevpolld snmpcheck
---
2014-04-04 11:23:42,399 [INFO plugins] Imported 23 plugin classes, 23 classes
in plugin registry
2014-04-04 11:23:42,399 [INFO nav.ipdevpoll] Running single 'snmpcheck' job
for 2-a16-0-1.univ-rouen.fr
root <at> nav-debian-virtual-appliance:/usr/share/pyshared/nav# /usr/lib/nav/
ipdevpolld -J inventory -n 10.0.0.37
2014-04-04 11:23:56,936 [INFO nav.ipdevpoll] --- Starting ipdevpolld inventory
---
2014-04-04 11:23:58,933 [INFO plugins] Imported 23 plugin classes, 23 classes
in plugin registry
2014-04-04 11:23:58,933 [INFO nav.ipdevpoll] Running single 'inventory' job
for 2-a16-0-1.univ-rouen.fr
2014-04-04 11:23:58,985 [DEBUG plugins.modules.modules] [inventory 2-
a16-0-1.univ-rouen.fr] Collecting ENTITY-MIB module data
2014-04-04 11:24:53,472 [DEBUG plugins.modules.modules] [inventory 2-
a16-0-1.univ-rouen.fr] alias mapping: {}
2014-04-04 11:24:53,474 [DEBUG plugins.modules.modules] [inventory 2-
a16-0-1.univ-rouen.fr] test :[{'entPhysicalSoftwareRev': '15.3.1.4',
'entPhysicalHardwareRev': '7.0', 'entPhysicalParentRelPos': 1, 0: 3,
'entPhysicalClass': 'module', 'entPhysicalName': '', 'entPhysicalContainedIn':
2, 'entPhysicalSerialNum': '0943G-80792', 'entPhysicalDescr': None,
'entPhysicalFirmwareRev': '1.0.3.5', 'entPhysicalIsFRU': True,
'entPhysicalModelName': '800190-00-07'}]
2014-04-04 11:24:53,476 [ERROR jobs.jobhandler] [inventory 2-a16-0-1.univ-
rouen.fr] Plugin nav.ipdevpoll.plugins.modules.Modules(u'2-a16-0-1.univ-
rouen.fr') reported an unhandled failure
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 368,
in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464,
in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551,
in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
1101, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/modules.py",
line 61, in handle
    self._process_entities(physical_table)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/modules.py",
line 185, in _process_entities
    module_containers = self._process_modules(entities)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/modules.py",
line 123, in _process_modules
    module = self._module_from_entity(ent)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/modules.py",
line 109, in _module_from_entity
    module.description = ent['entPhysicalDescr'].strip()
exceptions.AttributeError: 'NoneType' object has no attribute 'strip'

2014-04-04 11:24:53,480 [ERROR jobs.jobhandler] [inventory 2-a16-0-1.univ-
rouen.fr] Job 'inventory' for 2-a16-0-1.univ-rouen.fr aborted: Job aborted due
to plugin failure (cause=AttributeError("'NoneType' object has no attribute
'strip'",))

Anyone can help ?

Regards

Picon

Problem with uplink detecion

Hi,

I just face another problém with uplink detection. I tried to follow
documentation about troubleshooting topology, but it yielded no results.

I check switchport report of both connected devices and there it is showed
in the columnt labeled as connected to.

I also check cdp and it also report it correctly.

I also found another problém when it displays an actual uplink, but with
empty from device (which seems to me quite strange). In other case an uplink
is showed only on one device but not the other.

Is there any limit about number of uplinks? (I have more then ten uplinks on
one box)

Brgds

Mat

-----Original Message-----
From: nav-users-request@...
[mailto:nav-users-request@...] On
Behalf Of Morten Brekkevold
Sent: Thursday, March 27, 2014 3:09 PM
To: nav-users@...
Subject: Announcement: NAV 3.15.7 released

For those of you who wish to continue running NAV 3.15 for while, the
seventh maintenance release of this series is now available for download at
Launchpad: https://launchpad.net/nav/3.15/3.15.7

This release fixes 12 reported issues:

  * LP#1251211 (portadmin wishlist: option to reset active interface whene
                changing vlan)
  * LP#1285601 (Switch ports on non-existant VLANs on Cisco switches don't
                appear as switch ports in NAV)
  * LP#1287700 (SeedDB will readily accept serial numbers with trailing
spaces)
  * LP#1289219 (affected displays no information on nodes not in topology)
  * LP#1289320 (Submitting invalid alert subscription forms cause crash
instead
                of error message)
  * LP#1291956 (LDAP auth against MS AD broken since NAV 3.14.1592653)
  * LP#1291978 (User supplied login name is not escaped in LDAP search
filters,
                causing possible injection vulnerabilities)
  * LP#1292513 (sysname/reverse dns lookups are inconsistent or lacking
after a
                bulk import)
  * LP#1293621 (missing cascade in table accounttool)
  * LP#1295092 (Only modules and power supplies on first member are
collected
                from stacked HP 2920)
  * LP#1297200 (powersupplywatch crashes when there are more than ~1024
devices
                to poll)
  * LP#1297767 (Django exposes sensitive data like: username/password)

Please report further bugs at https://launchpad.net/nav/+filebug

A binary package for Debian Wheezy has been made available in our APT
repository, as usual.

Happy NAVing everyone!

--
Morten Brekkevold
UNINETT AS
Attachment (smime.p7s): application/pkcs7-signature, 8 KiB
Morten Brekkevold | 3 Apr 12:59 2014
Picon
Picon

Announcement: NAV 4.0.1 released

Because of some critical bug fixes from the 3.15 series, we have also
released version 4.0.1, the first maintenance release of the 4.0 series,
today.

The source code is available for download at Launchpad [1] and a new
package for Debian Wheezy has been published in our APT repository [2].

Changes
=======

The following reporte bugs have been fixed in the 3.15 series and are
part of 4.0.1:

  * LP#1300117 (Fix for bug 1295092 causes ipdevpoll inventory jobs to crash for
                Cisco devices)
  * LP#1301251 (LDAP users with non-ASCII characters in their name cause login
                page to crash when user lookup method is 'search' (MS AD))
  * LP#1301343 (CDP cache is never refreshed on devices that do not respond to
                CDP-MIB::cdpGlobalLastChange)
  * LP#1301349 (Module down alerts fail to mention the module's name)
  * LP#1301794 (LDAP group membership verification crashes with
                UnicodeDecodeError when username contains non-ASCII chars)

A single issue affecting only the 4.0 series was fixed:

  * LP#1301260 (seeddb prefix edit does not display all fields)

Because the 3.15 and 4.0 series are maintained in parallel, you may need
to use the -o option if you are executing the `navsyncdb` program
manually for schema upgrades.

Happy NAVing everyone!

Links
=====

[1] https://launchpad.net/nav/4.0/4.0.1
[2] https://nav.uninett.no/nav_on_debian

--

-- 
Morten Brekkevold
UNINETT AS
Morten Brekkevold | 3 Apr 12:58 2014
Picon
Picon

Announcement: NAV 3.15.8 released

The eighth maintenance release of the NAV 3.15 has been released today,
version 3.15.8.

The source code is available for download at Launchpad [1] and a new
package for Debian Wheezy has been published in our APT repository [2].

Changes
=======

The following reported bugs have been fixed (LP#1300117 is especially
critical for those with Cisco devices under NAV 3.15.7):

  * LP#1300117 (Fix for bug 1295092 causes ipdevpoll inventory jobs to crash for
                Cisco devices)
  * LP#1301251 (LDAP users with non-ASCII characters in their name cause login
                page to crash when user lookup method is 'search' (MS AD))
  * LP#1301343 (CDP cache is never refreshed on devices that do not respond to
                CDP-MIB::cdpGlobalLastChange)
  * LP#1301349 (Module down alerts fail to mention the module's name)
  * LP#1301794 (LDAP group membership verification crashes with
                UnicodeDecodeError when username contains non-ASCII chars)

Happy NAVing everyone!

Links
=====

[1] https://launchpad.net/nav/3.15/3.15.8
[2] https://nav.uninett.no/nav_on_debian

--

-- 
Morten Brekkevold
UNINETT AS
Mischa Diehm | 31 Mar 12:28 2014
Picon
Picon

NAV mac-search with Nexus and FabricPath

Hi,

we have FP activated in our datacenter and use Cisco Nexus (5,6,7)k. I'm not sure what caused the problem but NAV can't find MAC-addresses on these devices and even on catalysts behind them anymore. I don't know what algorithm is used to figure out where a MAC-address is attached but maybe someone who knows can clarify what is needed for that to work?

Thanks in advance,
Mischa


-- 
Mischa Diehm | Network Operations Center (NOC)
UniBasel | UniRechenZentrum (URZ)
Klingebergstr. 70 | CH-4056 Basel
Tel. +41 61 267 1574 | http://urz.unibas.ch
Attachment (smime.p7s): application/pkcs7-signature, 2977 bytes
Picon

Graphite on other machine

Hello,

I tried to run graphite on another machine. I was able to redirect statistics collection, but I cannot see
graph data:

I have made changes in etc/graphite.conf:

[carbon]
#
# NAV supports Carbon's UDP line receiver. Host and port information of
# the backend can be configured in this section.
#
host = IP
port = 2003

[graphiteweb]
#
# Where is the Graphite web interface located. NAV needs this to get graphs
# and data from Graphite.
#
base=https://IP

When I first started NAV, it was configured to use the graphite on the same machine as NAV. It worked. 

When I changed it and restarted NAV processes it sent statistics to the new IP (I confirmed it via graphite
web fronted), but it still tries to access old graphiteweb for rendering graphs, not the one changed in grahpite.conf.

Can there be a problém with certificate? (it is self signed one)

Isn't it somehow cached in a database?

Brgds

Mat

-----Original Message-----
From: nav-users-request@...
[mailto:nav-users-request@...] On Behalf Of Martin.Jaburek@...
Sent: Friday, March 28, 2014 1:38 PM
To: Morten Brekkevold
Cc: nav-users@...
Subject: RE: Problem retrieving port statistics

I solved my problém with moving databases to memory - it reduces load on machine and now it is ok. But I am
still experiencing gaps on some graphs. There is one device which suffers from it most - see attached
graphs. (graphs are from 2 devices - one OK and the other with GAPS)

Gaps are only in port metrics graphs - they are at exactly the same time on all ports on given device.

Systém metrics are just fine on this device.

I checked the 5min graph of ipdevpoll systém metrics and it shows 100 at peak times, what I assume are only
nearly 2 minutes.

I'm monitoring about 140 devices right now with nav.

I think that it is much correlated to my yesterday upgrade to 4.0.0 (from 4.0b5). 

Since then I can also see attached errors. They were not there when I was on version 4.0b5.

It happens only on cisco catalyst 4500/6500 and one type of 3560E. (I have many 3750 but, there is no problém
at all) and causes inventory jobs to fail.

Brgds 

Mat

-----Original Message-----
From: nav-users-request@...
[mailto:nav-users-request@...] On Behalf Of Morten Brekkevold
Sent: Friday, March 28, 2014 10:36 AM
To: JABUREK Martin
Cc: nav-users@...
Subject: Re: Problem retrieving port statistics

On Thu, 27 Mar 2014 08:37:51 +0000 "Martin.Jaburek@..."
<Martin.Jaburek@...> wrote:

> Now I am able to collect all information needed.
>
> But I still have a problém with collected data - there are very often 
> gaps in graphs.

Which graphs have gaps? Port metrics? System metrics? All of them?

How many devices are you monitoring, and what does the runtime of the various ipdevpoll jobs look like?

If the 1minstats job is spending more than 1 minute to complete for any device, there may be gaps its graphs, 5
minutes for the 5minstats job.

--
Morten Brekkevold
UNINETT
Attachment (smime.p7s): application/pkcs7-signature, 8 KiB
Morten Brekkevold | 27 Mar 15:52 2014
Picon
Picon

Announcement: NAV 4.0.0 released

We are proud to present the final NAV 4.0.0 release, now available for
download at Launchpad: https://launchpad.net/nav/4.0/4.0.0

Changes
=======

As announced when we released the first beta version, NAV 4.0 introduces
two major changes.

The two big changes are:

1. The complete replacement of Cricket as a 3rd party tool for
   statistics collection and graphing. NAV 4 collects the statistics
   using the already existing ipdevpoll SNMP collector, and uses
   Graphite as a 3rd party service for storing and graphing this data.
   This also means NAV no longer uses RRDtool for storing time-series
   data.

2. A full design overhaul of the web interface, using the Foundation CSS
   framework.

The full release notes for this release can be read at [1]. You are also
advised to read the updated installation docs at [2].

If you are upgrading from an existing 3.15 installation, you should
avoid starting the new NAV version before migrating your old
Cricket/RRD-based statistics to Graphite/Whisper. Instructions for this
can found at [3].

If you want to upgrade from a 4.0 beta version, be advised that the
polling interval for sensor statistics has been changed from 5 minutes
to 1 minute. The updated example storage-schemas.conf reflects this. The
whisper files under nav/devices/*/sensors/*.wsp must either be resized
to include a new 1 minute resolution archive, or be deleted so that
Carbon will re-create empty files from the new config.

Debian packages
===============

Debian packages have been uploaded to our repository, instructions for
using the repository are still found at [4]. NAV's documentation does
not cover installation of Graphite's Carbon daemon and the Graphite web
interface, which are necessary dependencies in NAV 4.0; it only mentions
configuration measures.

We have backported a graphite-web package, as it is not provided by the
Debian Wheezy distribution. This package does not automatically set up a
Graphite web instance for you. We will write a guide suggesting how to
do so, but it will be largely based on the shell script we use to
automatically build our published virtual appliance. This shell script
can be viewed at [5] (ca. lines 35-80).

NAV 3.15 support
================

We will continue to support the 3.15 series at least until NAV 4.1 is
released, but we recommend all new users to start with NAV 4.

Happy NAVing everyone!

Links
=====

[1] https://nav.uninett.no/doc/4.0/release-notes.html
[2] https://nav.uninett.no/doc/4.0/intro/install.html
[3] https://nav.uninett.no/doc/4.0/howto/migrate-rrd-to-graphite.html
[4] https://nav.uninett.no/nav_on_debian
[5] http://bit.ly/1rFgrzz

--

-- 
Morten Brekkevold
UNINETT AS

Gmane