thresholdmon AttributeError crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
The fix for bug 1316608, introduced in NAV 4.3.3, enables the nav.metrics.
The threshold monitor makes the assumption that all looked-up objects from this API are Django model objects, causing the threshold monitor to crash when generating some threshold events. For example, when a "CPU" threshold is exceeded, the object returned by the lookup API will be a string or unicode object, causing an attribute access to fail.
The traceback from cron mail looks like this:
Traceback (most recent call last):
File "/usr/lib/
main()
File "/usr/lib/
scan()
File "/usr/lib/
evaluate_
File "/usr/lib/
end_event(rule, metric, value)
File "/usr/lib/
event = make_event(False, rule, metric, value)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
_add_
File "/usr/lib/
table=
AttributeError: 'unicode' object has no attribute '_meta'
Changed in nav: | |
status: | Fix Committed → Fix Released |
Changed in nav: | |
milestone: | 4.2.4 → 4.2.5 |
fix here: https:/ /nav.uninett. no/hg/stable/ rev/bf4623ed4ef c