net-snmp CPU hours not agreeing with /proc/stat

Mark Edwards <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi, I am observing slightly odd results when comparing a cacti graph  
made from system,user,nice CPU values from net-snmp vs. one made by  
extracting values from /proc/stat via a shell script.

Theoretically, these statistics should be identical, right?  But they  
aren't.

This is on an Ubuntu 6.06 Server system, net-snmpd version 5.2.1.2.

The OID's that are being used are:

.1.3.6.1.4.1.2021.11.52.0
.1.3.6.1.4.1.2021.11.51.0
.1.3.6.1.4.1.2021.11.50.0

The shell script basically just does at `cat /proc/stat` and reports  
the raw values back to cacti.

Here is a sample of a graph showing the issue:

http://mark.antsclimbtree.com/files/snmp_v_procstat.gif

The top graph is from net-snmp numbers; the bottom graph is from  
numbers directly from /proc/stat.

Anyone have an idea what might be going on here?

Thanks!

--
Mark Edwards



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.