Re: [pysnmp-users] reported sysuptime and self._value
Brought to you by:
elie
From: Filippo G. <fgi...@gm...> - 2008-10-30 14:16:46
|
On Mon, Oct 27, 2008 at 11:35:09AM +0100, Filippo Giunchedi wrote: > class SysUpTime(TimeTicks): > def smiRead(self, name, value, idx): > return self.clone(int(time()-self._value)*100) > > in fact self._value is never setted if I'm not mistaken thus the reported uptime > is the current unix epoch. > Is this a known bug (self._value is used elsewhere as well) or I'm missing > something? After reading a bit through the code it seems another "bug" though. I'm sending out notifications using NotificationOriginator which includes sysUpTime from __SNMPv2-MIB but without a smiRead() (obviously) but using sysuptime.syntax, thus the reported value is time(). Or at least that is my new best guess :) Is this a known issue and/or how to fix it? thanks in advance, filippo -- Filippo Giunchedi - http://esaurito.net PGP key: 0x6B79D401 random quote follows: Everyone is entitled to his own opinion, but not his own facts. -- Daniel Patrick Moynihan |