On Tue, 21 Feb 2023 09:17:30 +0100 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
We have now upgraded to NAV 5.6, but still receive the occational
Subject: deviceNotice/None on router.domain from NAV, but no message template is defined.
Are you sure you are *actually* running ipdevpoll from NAV 5.6, or don't have multiple NAV installations running? The only code path in NAV 5.6 that posts deviceNotice events from ipdevpoll will always set a `new_version` attribute as well (using `N/A` if the value is missing), but this seems to be missing entirely from the dump you posted.
Now I am sure I'm running NAV 5.6
First we receive one message:
Device FANTRAY 1 at router.domain had a hardware upgrade from 86 to version n/a.
Later we receive
Variable dump: {'_messages': None, 'alert_type': None, 'device': <Device: n/a>, 'event': <EventQueue: id=102529692, event_type_id='deviceNotice', source_id='ipdevpoll', target_id='eventEngine', netbox=<Netbox: router.domain> , subid='', state='x', time=datetime.datetime(2023, 3, 3, 8, 36, 43, 77434)>, 'event_type': <EventType: deviceNotice>, 'history_vars': {}, 'language': 'en', 'msgtype': 'email', 'netbox': <Netbox: router.domain>, 'new_version': 'n/a', 'old_version': '86', 'severity': 3, 'source': <Subsystem: ipdevpoll>, 'state': 'x', 'subid': '', 'time': datetime.datetime(2023, 3, 3, 8, 36, 43, 77434), 'value': 100}
Both messages are about the same netbox
--Ingeborg