Bug 144204

Summary: Wrong uptime reporting in snmpwalk/get.
Product: [Fedora] Fedora Reporter: Razvan Corneliu C.R. VILT <razvan.vilt>
Component: net-snmpAssignee: Radek Vokál <rvokal>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://stats.d3vi1.linux360.ro/uptime.php
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-18 08:29:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Razvan Corneliu C.R. VILT 2005-01-05 01:14:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20041020 Epiphany/1.4.4

Description of problem:
After some time (didn't restart yet to verify as it's a production
station), the snmp uptime values start to be wrong, it seems like a
counter reset.
[root@d3vi1 ~]# snmpget -v 2c -c public localhost system.sysUpTime.0
SNMPv2-MIB::sysUpTime.0 = Timeticks: (25375329) 2 days, 22:29:13.29
[root@d3vi1 ~]# uptime
02:31:36 up 35 days, 12:18,  2 users,  load average: 0.20, 0.34, 0.29

Version-Release number of selected component (if applicable):
net-snmp-5.1.2-11

How reproducible:
Always

Steps to Reproduce:
1.Check the system uptime using the uptime command
2.Check the uptime reported by snmpd
3.Compare the values. If the uptime is over ~32 days it resets for
net-snmp.

Actual Results:  The net-snmp reported values are wrong.

Expected Results:  The net-snmp uptime value should be the same (+- a
few ticks) if you run the two commands one after another.

Comment 1 Radek Vokál 2005-01-18 08:29:00 UTC
# snmpget -v 2c -c public bunny system.sysUpTime.0
system.sysUpTime.0 = Timeticks: (586752671) 67 days, 21:52:06.71

This seems like sth else is reseting your service. This value doesn't
report the machine uptime but the deamon uptime.