User Tools

Site Tools


networking:monitoring:zabbix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:monitoring:zabbix [2015/08/06 17:32]
127.0.0.1 external edit
networking:monitoring:zabbix [2016/09/29 15:00] (current)
gcooper
Line 1: Line 1:
 ====== Zabbix NMS Notes ====== ====== Zabbix NMS Notes ======
 +
 +See also **[[networking:monitoring:zabbix_host|Add a Zabbix Host to Monitor]]**
 +
 +See also **[[networking:linux:static_ip_addr|Static IP Address]]**
  
 **Home**: http://www.zabbix.com/ **Home**: http://www.zabbix.com/
Line 14: Line 18:
  
 **HowTo - Agent**: http://tecadmin.net/install-zabbix-agent-on-centos-rhel/ **HowTo - Agent**: http://tecadmin.net/install-zabbix-agent-on-centos-rhel/
- 
-See also **[[networking:linux:static_ip_addr|Static IP Address]]** 
  
 ===== Install Server ===== ===== Install Server =====
Line 22: Line 24:
 sudo apt-get update sudo apt-get update
 sudo apt-get install apache2 mysql-server php5 php5-cli php5-common php5-mysql snmp snmp-mibs-downloader \ sudo apt-get install apache2 mysql-server php5 php5-cli php5-common php5-mysql snmp snmp-mibs-downloader \
-  smistrip+  smistrip nmap traceroute 
 reboot reboot
 </file> </file>
Line 40: Line 43:
 <file> <file>
 sudo apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-agent sudo apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-agent
- +echo "zabbix ALL=(ALL:ALL) NOPASSWD:/usr/bin/nmap" >> /etc/sudoers 
-sudo service apache2 restart +sudo service apache2 restart && sudo service zabbix-server restart
-sudo service zabbix-server restart+
 </file> </file>
  
Line 179: Line 181:
 sc config "Zabbix Agent" start= auto sc config "Zabbix Agent" start= auto
 netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050
 +</file>
 +
 +== Uninstall ==
 +
 +<file>
 +net stop "Zabbix Agent"
 +cd C:\Support\zabbix_agents_2.4.4.win\bin\win64
 +.\zabbix_agentd.exe --config C:\support\zabbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -d
 +netsh advfirewall firewall delete rule name="Zabbix Agent"
 </file> </file>
  
Line 278: Line 289:
 :!: Set the SNMP community string (like a password) for each host by adding a **macro** ''{$SNMP_COMMUNITY}'' with the value being the community string for the host to be monitored. :!: Set the SNMP community string (like a password) for each host by adding a **macro** ''{$SNMP_COMMUNITY}'' with the value being the community string for the host to be monitored.
  
-{{ ::zabbix_snmp_host.png?750 |Add SNMP Host}}+{{ :networking:monitoring:zabbix_snmp_host.png?750 |Add SNMP Host}} 
 + 
 +=== Mikrotik === 
 + 
 +https://github.com/YSmetana/zabbix-mikrotik-snmp 
 + 
 +  - In Zabbix, Add a Host 
 +    - Add a host group too, if not already created 
 +    - Use UDP port 161 
 +  - Assign the SNMP IP address and community string 
 +    - 'public' may be OK if no external access 
 +    - Otherwise, assign another community string 
 +      - A community string is a bit like a 'password'
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 287: Line 310:
 telnet <IP of agent> 10050 telnet <IP of agent> 10050
 </file> </file>
 +
 +:!: When **importing templates**, be sure to import the **'raw'** or pure XML file, not an HTML file from a web page.
  
 ===== Zimbra ===== ===== Zimbra =====
  
 https://github.com/YetOpen/zabbix-scripts/tree/master/zabbix-zimbra https://github.com/YetOpen/zabbix-scripts/tree/master/zabbix-zimbra
networking/monitoring/zabbix.1438903920.txt.gz · Last modified: 2015/09/03 09:52 (external edit)