HOWTO create your own cacti rrd graphs for pfsense
From Chaos
Contents |
Summary
This article is meant to give the reader a better understanding of how to create Cacti RRD graphs for a pfSense firewall. Please note that some of the topics in this article are Cacti-specific. If you try this with other RRD Tools (MRTG, etc), it may or may not work.
Details
System Health
The first set of SNMP MIBs we will be monitoring for system health are below.
- hrSystemUptime [Timeticks]: .1.3.6.1.2.1.25.1.1.0
- hrSystemNumUsers [Gauge32]: .1.3.6.1.2.1.25.1.5.0
- hrSystemProcesses [Gauge32]: .1.3.6.1.2.1.25.1.6.0
- hrSystemMaxProcesses [INTEGER]: .1.3.6.1.2.1.25.1.7.0
- hrStorageIndex [INTEGER-INDEXED]: .1.3.6.1.2.1.25.2.3.1 (Index Begin)
- hrStorageType [OID]: .1.3.6.1.2.1.25.2.3.1.2
- hrStorageDescr [STRING]: .1.3.6.1.2.1.25.2.3.1.3
- hrStorageAllocationUnits [INTEGER]: .1.3.6.1.2.1.25.2.3.1.4
- hrStorageSize [INTEGER]: .1.3.6.1.2.1.25.2.3.1.5
- hrStorageUsed [INTEGER]: .1.3.6.1.2.1.25.2.3.1.6
- hrStorageAllocationFailures [Counter32]: .1.3.6.1.2.1.25.2.3.1.7
- hrSWRunIndex [INTEGER-INDEXED]: .1.3.6.1.2.1.25.4.2.1 (Index Begin)
- hrSWRunName [STRING]: .1.3.6.1.2.1.25.4.2.1.2
- hrSWRunID [OID]: .1.3.6.1.2.1.25.4.2.1.3
- hrSWRunPath [STRING]: .1.3.6.1.2.1.25.4.2.1.4
- hrSWRunParameters [STRING]: .1.3.6.1.2.1.25.4.2.1.5
- hrSWRunType [INTEGER]: .1.3.6.1.2.1.25.4.2.1.6
- hrSWRunStatus [INTEGER]: .1.3.6.1.2.1.25.4.2.1.7 (4 = invalid, 2 = runnable, 1 = running, 0 = stopped)
After some quick calculations and google'ing, I found out that hrStorageSize * hrStorageAllocationUnits = Total Disk Size (in KBytes). Likewise, hrStorageUsed * hrStorageAllocationUnits = Total Disk Space Used (in KBytes) which matched up perfectly with 'df' output on the pfSense box.
Interfaces
- ifIndex [INTEGER]: .1.3.6.1.2.1.2.2.1 (Index Begin)
- ifDescr [STRING]: .1.3.6.1.2.1.2.2.1.2
- ifType [INTEGER]: .1.3.6.1.2.1.2.2.1.3
- ifMtu [INTEGER]: .1.3.6.1.2.1.2.2.1.4
- ifSpeed [Gauge32]: .1.3.6.1.2.1.2.2.1.5
- ifPhysAddress [STRING]: .1.3.6.1.2.1.2.2.1.6
