I agree that the OID being used for service connections and graphed as "connections/sec" is not correct. apSvcConnections is a gauge or instantaneous measurement of the connections at that point in time when the query is made.twochannel wrote:
- Service Connections are a snapshot type value. "At this time there are X connections". Not connections/sec rate.
I believe we want apSvcTotalLocalConnections which is a counter that can be used to derive the connections/sec.
I added this to my css-conns.xml, then, taking a short cut since these were all new graphs I was building anyway, I blew away the graphs and recreated them so I could get the new data source in RRD. Other details required first such as defining the data source must be done. On the graph template, I just replaced the datasource that was being used to build the graph and gprint data.
- <apSvcTotalConnections>
<name>TotalConnections</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.368.1.15.2.1.61</oid>
</apSvcTotalConnections>
From the MIB:
apSvcConnections OBJECT-TYPE
SYNTAX Gauge32 ( 0..65534 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of TCP connections to this service."
DEFVAL { 0 }
::= { apSvcEntry 20 }
apSvcTotalLocalConnections OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object will return the total number of local connections
that have been accepted on this service."
::= { apSvcEntry 61 }