Debian 13 trixie

Cacti : Add Monitoring Host2025/10/03

 

Add Monitoring Target Host on the network.

[1] Install SNMP on the target host you'd like to monitor.
root@node01:~#
vi /etc/apt/sources.list
# add [non-free] to each line
deb http://deb.debian.org/debian/ trixie main non-free-firmware non-free
deb http://security.debian.org/debian-security trixie-security main non-free-firmware non-free
deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware non-free
deb http://deb.debian.org/debian/ trixie-backports main non-free-firmware non-free

root@node01:~#
apt update

root@node01:~#
apt -y install snmp snmpd snmp-mibs-downloader
root@node01:~#
vi /etc/snmp/snmp.conf
# line 4 : comment out

#
mibs :
root@node01:~#
vi /etc/snmp/snmpd.conf
# line 49 : change agentaddress
agentaddress 10.0.0.51

# line 71,72 : comment out and add a line
# change [Serverworld] to your any community name
# change [10.0.0.0/24] to your localnetwork
#rocommunity  public default -V systemonly
#rocommunity6 public default -V systemonly
rocommunity Serverworld localhost
rocommunity Serverworld 10.0.0.0/24
rocommunity6 Serverworld localhost

root@node01:~#
systemctl restart snmpd
# validation : replace [Serverworld] to the comunity name you set

root@node01:~#
snmpwalk -v 2c -c Serverworld 10.0.0.51 system

SNMPv2-MIB::sysDescr.0 = STRING: Linux node01.srv.world 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2290) 0:00:22.90
SNMPv2-MIB::sysContact.0 = STRING: Me <me@example.org>
SNMPv2-MIB::sysName.0 = STRING: node01.srv.world
SNMPv2-MIB::sysLocation.0 = STRING: Sitting on the Dock of the Bay
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
.....
.....
[2] Login to the Cacti admin site and Click [Management] - [Devices] on the left pane, then Click [+] button on the right pane.
[3] Input information for new monitoring target Host.
[4] After clicking [Create] button, following screen is shown. Select Graphs or Data Source you'd like to set. That's OK all, Click [Save] button.
[5] After adding new target Host, it will be displayed on [Devices] list.
[6] If you'd like to add the new Host on [Graphs] tree, Click [Management] - [Trees] on the left pane, then Click [+] button on the right pane.
[7] Input any tree name and Click [Create] button.
[8] Click [Edit Trees] button and then turn to On for [Publish] field and Click [Save] button.
[9] Next, Click [Management] - [Graphs] on the left pane, then check boxes of Graphs you'd like to set on tree, and next, Select [Place on a Tree (***)] and Click [Go] button.
[10] That's OK, move to [Graphs] tab, then new tree will be displayed.
Matched Content