Ubuntu 22.04
Sponsored Link

Cacti : Add Monitoring Host2022/12/14

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

#
mibs :
root@node01:~#
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
agentaddress  0.0.0.0,[::]

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

root@node01:~#
systemctl restart snmpd

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

root@node01:~#
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