NAV 3.11.4 is now available for download at Launchpad: https://launchpad.net/nav/3.11/3.11.4
This maintenance release contains fixes for 7 reported issues, as well as some performance improvements to the collection system:
Bugfixes:
* LP#644155 (Network Explorer never returns response to some searches) * LP#912276 (Device History Request-URI Too Large) * LP#996955 (All sensor stats are named "Sensor", and clutter the ipdevinfo view) * LP#997008 (Failed ipdevpoll jobs aren't properly rescheduled) * LP#997606 (add option to run each ipdevpoll job type in separate process) * LP#997980 (bad MAC for IPv6 addresses from Catalyst 6500) * LP#999606 (dhcping is not documented as requirement for DHCP service monitor)
Various performance-related improvements:
* Internal caching of collected SNMP variables pr. ipdevpoll SNMP session.
* Various tweaks to avoid producing unnecessary SNMP queries.
* Added database indexes for some potentially slow and frequently used queries.
* Added ipdevpolld multiprocess option to run each job type as separate subprocess (enabling this will consume up to 60 PostgreSQL connections, be warned!)
* An -n option was added to ipdevpolld. Used in combination with the -J option, ipdevpoll will run a single job for a single netbox as a foreground process.
* When new jobs are added to the internal ipdevpoll job queues, boxes are prioritized in ascending order of last update time. I.e. ipdevpoll will run jobs first for boxes that are new or haven't completed an inventory job in a long time.
Please report bugs at https://launchpad.net/nav/+filebug :-)
Binary packages for Debian will be made available as soon as possible. The Debian package is maintained by Morten Werner Forsbring, on commission From UNINETT.
Happy NAVing everyone!
Morten Brekkevold morten.brekkevold@uninett.no writes:
NAV 3.11.4 is now available for download at Launchpad: https://launchpad.net/nav/3.11/3.11.4
[...]
Binary packages for Debian will be made available as soon as possible. The Debian package is maintained by Morten Werner Forsbring, on commission From UNINETT.
The Debian package is available as Alioth [1] as usual.
- Werner
morten.brekkevold@uninett.no said:
- Added ipdevpolld multiprocess option to run each job type as separate subprocess (enabling this will consume up to 60 PostgreSQL connections,
be warned!)
- An -n option was added to ipdevpolld. Used in combination with the -J option, ipdevpoll will run a single job for a single netbox as a foreground process.
Where is the documentation about how you enable/use this?
--Ingeborg
On 08/07/2012 11:27 AM, Ingeborg Hellemo wrote:
morten.brekkevold@uninett.no said:
- Added ipdevpolld multiprocess option to run each job type as separate subprocess (enabling this will consume up to 60 PostgreSQL connections,
be warned!)
- An -n option was added to ipdevpolld. Used in combination with the -J option, ipdevpoll will run a single job for a single netbox as a foreground process.
Where is the documentation about how you enable/use this?
I guess here:
./ipdevpolld --help Usage: ipdevpolld [options]
Options: --version show program's version number and exit -h, --help show this help message and exit -f, --foreground run in foreground instead of daemonizing -s, --log-stderr log to stderr instead of log file -j, --list-jobs print a list of configured jobs and exit -p, --list-plugins load and print a list of configured plugins -J JOBNAME run only JOBNAME in this process -n NETBOX, --netbox=NETBOX Run JOBNAME once for NETBOX. Also implies -f and -s options. -m, --multiprocess Run ipdevpoll in a multiprocess setup -P, --pidlog Include process ID in every log line
This program runs SNMP polling jobs for IP devices monitored by NAV
john.m.bredal@uninett.no said:
-m, --multiprocess Run ipdevpoll in a multiprocess setup
And I am missing what?
2012-08-07 12:54:20,952 [43367] [INFO nav.ipdevpoll] --- Starting ipdevpolld multiprocess master --- 2012-08-07 12:54:20,956 [43369] [INFO nav.ipdevpoll] ipdevpolld now running in the background Traceback (most recent call last): File "/usr/local/nav/bin/ipdevpolld", line 21, in <module> main() File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 316, in main processor.run() File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 215, in run self.start_ipdevpoll() File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 267, in start_ipdevpoll process.run() File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 59, in run self.setup_multiprocess() File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 107, in setup_multiprocess from . import control File "/usr/local/nav/lib/python/nav/ipdevpoll/control.py", line 21, in <module> from twisted.runner import procmon ImportError: No module named runner
--Ingeborg
On 08/07/2012 12:55 PM, Ingeborg Hellemo wrote:
john.m.bredal@uninett.no said:
-m, --multiprocess Run ipdevpoll in a multiprocess setup
And I am missing what?
from twisted.runner import procmon
ImportError: No module named runner
Hm, I don't know what OS or version you're running, but python-twisted must be installed and it should have the runner module built in. python-twisted should be available in Ubuntu and Debian.
john.m.bredal@uninett.no said:
Hm, I don't know what OS or version you're running, but python-twisted must be installed and it should have the runner module built in.
OS is FreeBSD
py27-twistedRunner-12.1.0 (and the rest of the twister-packages for good measure) is now installed.
This time, somewhere, $PATH gets lost...
2012-08-07 14:07:20,499 [62051] [INFO nav.ipdevpoll] --- Starting ipdevpolld multiprocess master --- 2012-08-07 14:07:20,502 [62053] [INFO nav.ipdevpoll] ipdevpolld now running in the background env: python: No such file or directory env: python: No such file or directory env: python: No such file or directory env: python: No such file or directory 2012-08-07 14:07:20,552 [62053] [WARNING control] Subprocess linkcheck died, restart will be tried 2012-08-07 14:07:20,553 [62053] [WARNING control] Subprocess profiling died, restart will be tried
*sigh*
Any ideas?
--Ingeborg
On Tue, 07 Aug 2012 14:46:18 +0200 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
This time, somewhere, $PATH gets lost...
2012-08-07 14:07:20,499 [62051] [INFO nav.ipdevpoll] --- Starting ipdevpolld multiprocess master --- 2012-08-07 14:07:20,502 [62053] [INFO nav.ipdevpoll] ipdevpolld now running in the background env: python: No such file or directory env: python: No such file or directory env: python: No such file or directory env: python: No such file or directory 2012-08-07 14:07:20,552 [62053] [WARNING control] Subprocess linkcheck died, restart will be tried 2012-08-07 14:07:20,553 [62053] [WARNING control] Subprocess profiling died, restart will be tried
*sigh*
Any ideas?
Might either be some version differences in Twisted, or something that just works plain differently under FreeBSD (as usual) ;)
Would you please try the attached patch, which explicitly attaches the parent environment to each subprocess?
morten.brekkevold@uninett.no said:
Would you please try the attached patch, which explicitly attaches the parent environment to each subprocess?
The patch works.
--Ingeborg
On Mon, 20 Aug 2012 13:14:27 +0200 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
morten.brekkevold@uninett.no said:
Would you please try the attached patch, which explicitly attaches the parent environment to each subprocess?
The patch works.
Thanks for testing, hereby committing it to the 3.11.x branch.