Ubuntu 22.04
Sponsored Link

Cacti : Add Monitoring Host
Add Monitoring Target Host on the network.
[1] Install SNMP on the target host you'd like to monitor.
apt -y install snmp snmpd snmp-mibs-downloader libnet-snmp-perl snmptrapd
vi /etc/snmp/snmp.conf
# line 4 : comment out

mibs :
vi /etc/snmp/snmpd.conf
# line 18, 19 : change to any location name and email address
sysLocation    "Server World Node01"
sysContact     "root@node01.srv.world"

# line 49 : change

# line 71, 72 : comment out
# line 73 : add any comunity name and network you allowed to access
#rocommunity  public default -V systemonly
#rocommunity6 public default -V systemonly
rocommunity Serverworld

systemctl restart snmpd

# verify status # replace [Serverworld] to the comunity name you set

snmpwalk -v 2c -c Serverworld node01 system

SNMPv2-MIB::sysDescr.0 = STRING: Linux node01.srv.world 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1823) 0:00:18.23
SNMPv2-MIB::sysContact.0 = STRING: "root@node01.srv.world"
SNMPv2-MIB::sysName.0 = STRING: node01.srv.world
SNMPv2-MIB::sysLocation.0 = STRING: "Server World Node01"
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.10 = 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. You can change default settings if you need.
[5] After adding a new target Host and data of it are gotten after few minutes later, 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 the [Create] button.
[8] Click the [Edit Trees] button and then turn to On for [Publish] field and Click the [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