-
Configure and run SNMP on the OpenBSD system, the default configuration is enough, if you are running this on an internal secure network, the included default
snmpd.conf
is everything you need -
Put
pf-labels.xml
somewhere on your file system so that it is accessible by everyone (includingnobody
-like accounts) -
Open the Cacti admin console, go to
Data Collection
/Data Queries
, click+
to create a new oneFill
Name
,Description
,XML Path
is the path topf-labels.xml
, setData Input Method
toGet SNMP Data (Indexed)
-
Edit your new data query and
Associated Graph Templates
, selectInterface - Traffic (bytes/sec)
Set the first data source
traffic_in
topfLabelInBytes
, the second onetraffic_out
topfLabelOutBytes
, leave the rest empty -
Go to your host in
Management
/Devices
and select it At the very bottom you will have anAssociated Data Queries
section, selectAdd Data Query
with thePF Labels
data queryYou will have the option to run it in verbose method to check if everything works as expected
If it does, you should see as many elements as you have PF labels
-
Go to
Create
/New Graphs
and select your hostThe PF labels should be listed in
Data Query
, select the graphs and add themYou can use
|host_description| - |query_pfLabel| - Traffic
as title to get the label in the title