-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes-for-monitoring-via-zabbix.txt
49 lines (32 loc) · 1.73 KB
/
notes-for-monitoring-via-zabbix.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Login to Zabbix Admin.
Update your "Local Network" under "Data Collection" -> Discovery --> AS 192.168.30.1-254
than Enable the "Local Network" Discovery rule.
Now Under --> "Alerts" --> "Action" --> "Autoregistration actions" , create a new action as follows.
Name -> "New Alerts Reg"
Now under "Condition" section we would click "add" .
Select HostName (A) -- select "Does not match: and would add dummy value in "value" as : nocheck.com
Now under "Operations" multiple Add
1> "Add Host" --> Add
2> "Enable Host" --> Add
3> "set host invetory mode" --> Automatic --> Add
4> "Link to template" --> Linux by Zabbix Agent -> Add
Finally Add Button to create the "New action"
Now on Debian 12 Linux Servers downlaod the Pacakage and install agent from : https://www.zabbix.com/download
## in need agent 2 ...read the comparision
https://www.zabbix.com/documentation/current/en/manual/appendix/agent_comparison
#cd /tmp/
#wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb
#dpkg -i zabbix-release_latest+debian12_all.deb
#apt update
#apt install zabbix-agent
#systemctl enable zabbix-agent
#systemctl restart zabbix-agent
## Change Server & ServerActive in Client/Agent side with server IP and restart zabbix-agent
sed -i "s/Server=127.0.0.1/Server=192.168.30.123/" /etc/zabbix/zabbix_agentd.conf
sed -i "s/ServerActive=127.0.0.1/ServerActive=192.168.30.123/" /etc/zabbix/zabbix_agentd.conf
sed -i "s/Hostname=Zabbix server/Hostname=dvdpc.deepen.in/" /etc/zabbix/zabbix_agentd.conf
#systemctl restart zabbix-agent
######
Now Login to Zabbix System
Monotoring --> Discovery --> search "Local Network" in Discovery rule , and click "Apply"
And Check for Discoery --> Host ..with Agent its ready.