From 6689275c24aadf5a2f23a9e47965e085f29d7b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Olber?= Date: Tue, 16 Aug 2016 13:02:50 +0200 Subject: [PATCH] Split Template App Security into 2 independent templates: Iptables, Fail2Ban Move userparameter selinux-enable, from security.conf into selinux.conf Move userparameters from security.conf into iptables.conf and linux.conf Added squid.conf file and Template App Squid --- templates/Template App Apache.xml | 657 + templates/Template App BIND.xml | 266 + templates/Template App Fail2Ban.xml | 141 + templates/Template App Iptables.xml | 334 + templates/Template App Monit.xml | 141 + templates/Template App MySQLd.xml | 10707 ++++++++++++++++ templates/Template App OpenVPN.xml | 150 + templates/Template App PHP.xml | 194 + templates/Template App Percona XtraBackup.xml | 98 + templates/Template App PostgreSQL.xml | 1984 +++ templates/Template App S.M.A.R.T..xml | 1703 +++ templates/Template App SPAM Blacklist.xml | 88 + templates/Template App Solr.xml | 105 + templates/Template App Unicorn Rails.xml | 88 + templates/Template App Unicorn.xml | 88 + templates/Template App mdadm.xml | 80 + templates/Template App php-fpm.xml | 141 + templates/Template OS CentOS.xml | 5207 ++++++++ templates/Template OS Debian.xml | 5224 ++++++++ templates/Template SELinux.xml | 105 + zabbix_agentd.conf.d/iptables.conf | 2 + zabbix_agentd.conf.d/selinux.conf | 1 + zabbix_agentd.conf.d/squid.conf | 1 + 23 files changed, 27505 insertions(+) create mode 100644 templates/Template App Apache.xml create mode 100644 templates/Template App BIND.xml create mode 100644 templates/Template App Fail2Ban.xml create mode 100644 templates/Template App Iptables.xml create mode 100644 templates/Template App Monit.xml create mode 100644 templates/Template App MySQLd.xml create mode 100644 templates/Template App OpenVPN.xml create mode 100644 templates/Template App PHP.xml create mode 100644 templates/Template App Percona XtraBackup.xml create mode 100644 templates/Template App PostgreSQL.xml create mode 100644 templates/Template App S.M.A.R.T..xml create mode 100644 templates/Template App SPAM Blacklist.xml create mode 100644 templates/Template App Solr.xml create mode 100644 templates/Template App Unicorn Rails.xml create mode 100644 templates/Template App Unicorn.xml create mode 100644 templates/Template App mdadm.xml create mode 100644 templates/Template App php-fpm.xml create mode 100644 templates/Template OS CentOS.xml create mode 100644 templates/Template OS Debian.xml create mode 100644 templates/Template SELinux.xml create mode 100644 zabbix_agentd.conf.d/iptables.conf create mode 100644 zabbix_agentd.conf.d/selinux.conf create mode 100644 zabbix_agentd.conf.d/squid.conf diff --git a/templates/Template App Apache.xml b/templates/Template App Apache.xml new file mode 100644 index 0000000..eb078cc --- /dev/null +++ b/templates/Template App Apache.xml @@ -0,0 +1,657 @@ + + + 3.0 + 2016-05-02T08:01:16Z + + + Zabbix Templates + + + + + + + + {Template App Apache:net.tcp.service[http].last(0)}=0 + Apache (HTTP) server is down + + 0 + 4 + + 0 + + + + {Template App Apache:net.tcp.service[tcp,,443].last(0)}=0 + Apache (HTTPS) server is down + + 0 + 4 + + 0 + + + + {Template App Apache:chkconfig[httpd].last(0)}=0 + Apache is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Apache:proc.num[httpd].last(0)}<1 + Apache is not running + + 0 + 4 + + 0 + + + + {Template App Apache:httpd.version.diff(0)}>0 + Apache version has changed + + 0 + 1 + + 0 + + + + {Template App Apache:openssl.version.diff(0)}>0 + OpenSSL version has changed + + 0 + 1 + + 0 + + + + + + Apache Connections + 900 + 200 + 0.0000 + 100.0000 + 0 + 0 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 009900 + 0 + 7 + 0 + + Template App Apache + netstat[ESTAB] + + + + 1 + 0 + 3333FF + 0 + 7 + 0 + + Template App Apache + netstat[FIN-WAIT-1] + + + + 2 + 0 + FF33FF + 0 + 7 + 0 + + Template App Apache + netstat[FIN-WAIT-2] + + + + 3 + 0 + FF3333 + 0 + 7 + 0 + + Template App Apache + netstat[CLOSE-WAIT] + + + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template App BIND.xml b/templates/Template App BIND.xml new file mode 100644 index 0000000..f82c7dd --- /dev/null +++ b/templates/Template App BIND.xml @@ -0,0 +1,266 @@ + + + 3.0 + 2016-05-02T08:03:15Z + + + Zabbix Templates + + + + + + + + {Template App BIND:proc.num[named].last(0)}=0 + BIND is down + + 0 + 4 + + 0 + + + + {Template App BIND:chkconfig[named].last(0)}=0 + BIND is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App BIND:net.tcp.service[tcp,,53].last(0)}=0 + BIND server is down + + 0 + 4 + + 0 + + + + {Template App BIND:bind.version.diff(0)}>0 + BIND version has changed + + 0 + 1 + + 0 + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template App Fail2Ban.xml b/templates/Template App Fail2Ban.xml new file mode 100644 index 0000000..42d6bd7 --- /dev/null +++ b/templates/Template App Fail2Ban.xml @@ -0,0 +1,141 @@ + + + 3.0 + 2016-08-16T09:44:35Z + + + Templates + + + + + + + + {Template App Fail2Ban:chkconfig[fail2ban].last(0)}=0 + Fail2ban is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Fail2Ban:proc.num[fail2ban-server].sum(#3)}=0 + Fail2Ban service is down + + 0 + 3 + + 0 + + + + diff --git a/templates/Template App Iptables.xml b/templates/Template App Iptables.xml new file mode 100644 index 0000000..ba025cb --- /dev/null +++ b/templates/Template App Iptables.xml @@ -0,0 +1,334 @@ + + + 3.0 + 2016-08-16T09:45:06Z + + + Templates + + + + + + + + + {Template App Fail2Ban:chkconfig[fail2ban].last(0)}=0 + Fail2ban is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Fail2Ban:proc.num[fail2ban-server].sum(#3)}=0 + Fail2Ban service is down + + 0 + 3 + + 0 + + + + {Template App Iptables:firewall-enabled.last(0)}=0 + Firewall is disabled + + 0 + 3 + + 0 + + + + {Template App Iptables:firewall-md5.diff(0)}<>0 + iptables has been changed + + 0 + 1 + + 0 + + + + {Template App Iptables:chkconfig[iptables].last(0)}=0 + iptables is not enabled in autostart + + 0 + 2 + + 0 + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template App Monit.xml b/templates/Template App Monit.xml new file mode 100644 index 0000000..70f3a75 --- /dev/null +++ b/templates/Template App Monit.xml @@ -0,0 +1,141 @@ + + + 3.0 + 2016-05-02T08:35:49Z + + + Zabbix Templates + + + + + + + + {Template App Monit:proc.num[monit].last(0)}=0 + Monit is down + + 0 + 4 + + 0 + + + + {Template App Monit:chkconfig[monit].last(0)}=0 + Monit is not enabled in autostart + + 0 + 2 + + 0 + + + + diff --git a/templates/Template App MySQLd.xml b/templates/Template App MySQLd.xml new file mode 100644 index 0000000..cc816cd --- /dev/null +++ b/templates/Template App MySQLd.xml @@ -0,0 +1,10707 @@ + + + 3.0 + 2016-08-16T08:59:00Z + + + Templates + + + + + + + + {Template App MySQLd:vfs.file.exists[/etc/my.cnf].last()}=0 + /etc/my.cnf does not exist (missing file) + + 0 + 4 + + 0 + + + + {Template App MySQLd:vfs.file.cksum[/etc/my.cnf].diff(0)}>0 + /etc/my.cnf has been changed + + 0 + 1 + + 0 + + + + {Template App MySQLd:mysql.Max_used_connections.last()}>({Template App MySQLd:mysql.setting.max_connections.last()}-2) + Connection limit reached (current {ITEM.LASTVALUE}) in MySQL + + 0 + 5 + + 0 + + + + {Template App MySQLd:mysql.innodb_lock_structs.delta(900)}>100 + InnoDB lock structures more than 100 in 15m + + 0 + 2 + + 0 + + + + {Template App MySQLd:mysql.uncheckpointed_bytes.delta(600)}>300M + InnoDB uncheckpointed bytes in the last 10m > 300MB + + 0 + 2 + + 0 + + + + {Template App MySQLd:mysql.Threads_connected.last(0)}>300 + More than 300 threads + + 0 + 3 + + 0 + + + + {Template App MySQLd:mysql.Threads_connected.last(0)}>500 + More than 500 threads + + 0 + 3 + + 0 + + + + {Template App MySQLd:chkconfig[mysql].last(0)}=0 + MySQL is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App MySQLd:proc.num[mysqld].last(0)}<1 + Mysql is not running + + 0 + 5 + + 0 + + + + {Template App MySQLd:mysql.version.diff(0)}>0 + MySQL server version has changed + + 0 + 1 + + 0 + + + + {Template App MySQLd:mysql.Table_locks_waited.delta(300)}>10 + Server is waiting on table locks + + 0 + 2 + + 0 + + + + {Template App MySQLd:mysql.Table_locks_waited.delta(300)}>20 + Server is waiting on table locks + + 0 + 2 + + 0 + + + + ({TRIGGER.VALUE}=0 and {Template App MySQLd:mysql.State_copying_to_tmp_table.count(900,1,"ge")}>10) or ({TRIGGER.VALUE}=1 and {Template App MySQLd:mysql.State_copying_to_tmp_table.count(900,1,"ge")}>0) + Thread in state Copying_to_tmp_table for more than 15 min + + 0 + 2 + + 0 + + + + {Template App MySQLd:mysql.Max_used_connections.last()}>({Template App MySQLd:mysql.setting.max_connections.last()}*0.9) + Too many connections (over 90%,current {ITEM.LASTVALUE}) in MySQL + + 0 + 4 + + 0 + + + + {Template App MySQLd:proc.num[mysqld].last(0)}>1 + Too many instances of mysqld (current: {ITEM.LASTVALUE}) + + 0 + 4 + + 0 + + + + {Template App MySQLd:proc.num[mysqld].last(0)}>1 + Too many instances of mysql running (current: {ITEM.LASTVALUE}) + + 0 + 4 + + 0 + + + + + + [MySQL] Command Counters + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + D8ACE0 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_update_multi + + + + 1 + 1 + FFC3C0 + 1 + 2 + 0 + + Template App MySQLd + mysql.Questions + + + + 2 + 5 + 00B99B + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_replace_select + + + + 3 + 5 + 2175D9 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_replace + + + + 4 + 5 + FFF200 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_insert + + + + 5 + 5 + FF7D00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_delete + + + + 6 + 1 + FF0000 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_select + + + + 7 + 5 + 00CF00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_update + + + + 8 + 5 + 942D0C + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_delete_multi + + + + 9 + 5 + 55009D + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_load + + + + 10 + 5 + AAABA1 + 1 + 2 + 0 + + Template App MySQLd + mysql.Com_insert_select + + + + + + [MySQL] Connections + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + FFD660 + 1 + 2 + 0 + + Template App MySQLd + mysql.Max_used_connections + + + + 1 + 1 + C0C0C0 + 1 + 2 + 0 + + Template App MySQLd + mysql.setting.max_connections + + + + 2 + 2 + FF7D00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Threads_connected + + + + 3 + 0 + FF3932 + 1 + 2 + 0 + + Template App MySQLd + mysql.Aborted_clients + + + + 4 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQLd + mysql.Connections + + + + 5 + 0 + 00FF00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Aborted_connects + + + + + + [MySQL] Files and Tables + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + DE0056 + 0 + 2 + 0 + + Template App MySQLd + mysql.Opened_tables + + + + 1 + 0 + 4A6959 + 0 + 2 + 0 + + Template App MySQLd + mysql.Open_tables + + + + 2 + 0 + 1D1159 + 0 + 2 + 0 + + Template App MySQLd + mysql.Open_files + + + + 3 + 1 + D09887 + 0 + 2 + 0 + + Template App MySQLd + mysql.setting.table_cache + + + + + + [MySQL] Handlers + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + C02942 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_next + + + + 1 + 5 + 8C286E + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_first + + + + 2 + 5 + BDB8B3 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_delete + + + + 3 + 5 + BAB27F + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_key + + + + 4 + 5 + 5A3D31 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_rnd + + + + 5 + 5 + 69D2E7 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_rnd_next + + + + 6 + 5 + FA6900 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_read_prev + + + + 7 + 1 + 4D4A47 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_write + + + + 8 + 5 + C79F71 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_update + + + + + + [MySQL] InnoDB Active/Locked Transactions + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + C0C0C0 + 0 + 2 + 0 + + Template App MySQLd + mysql.active_transactions + + + + 1 + 0 + FF0000 + 0 + 2 + 0 + + Template App MySQLd + mysql.locked_transactions + + + + + + [MySQL] InnoDB Adaptive Hash Index + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + D9C7A3 + 1 + 2 + 0 + + Template App MySQLd + mysql.hash_index_cells_used + + + + 1 + 1 + 0C4E5D + 1 + 2 + 0 + + Template App MySQLd + mysql.hash_index_cells_total + + + + + + [MySQL] InnoDB Buffer Pool + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 3D1500 + 1 + 2 + 0 + + Template App MySQLd + mysql.setting.pool_size + + + + 1 + 5 + AA3B27 + 1 + 2 + 0 + + Template App MySQLd + mysql.free_pages + + + + 2 + 1 + EDAA41 + 1 + 2 + 0 + + Template App MySQLd + mysql.database_pages + + + + 3 + 0 + 13343B + 1 + 2 + 0 + + Template App MySQLd + mysql.modified_pages + + + + + + [MySQL] InnoDB Buffer Pool Activity + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + E6D883 + 1 + 2 + 0 + + Template App MySQLd + mysql.pages_read + + + + 1 + 1 + D6883A + 1 + 2 + 0 + + Template App MySQLd + mysql.pages_created + + + + 2 + 1 + 55AD84 + 1 + 2 + 0 + + Template App MySQLd + mysql.pages_written + + + + + + [MySQL] InnoDB Checkpoint Age + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 661100 + 1 + 2 + 0 + + Template App MySQLd + mysql.uncheckpointed_bytes + + + + + + [MySQL] InnoDB Current Lock Waits + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 201A33 + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_lock_wait_secs + + + + + + [MySQL] InnoDB I/O + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 0ABFCC + 1 + 2 + 0 + + Template App MySQLd + mysql.file_fsyncs + + + + 1 + 0 + 402204 + 1 + 2 + 0 + + Template App MySQLd + mysql.file_reads + + + + 2 + 0 + B3092B + 1 + 2 + 0 + + Template App MySQLd + mysql.file_writes + + + + 3 + 0 + FFBF00 + 1 + 2 + 0 + + Template App MySQLd + mysql.log_writes + + + + + + [MySQL] InnoDB I/O Pending + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 4444FF + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_log_flushes + + + + 1 + 0 + FFF200 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_buf_pool_flushes + + + + 2 + 0 + FF7D00 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_aio_sync_ios + + + + 3 + 0 + 8F9286 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_normal_aio_writes + + + + 4 + 0 + 00A348 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_chkp_writes + + + + 5 + 0 + 6DC8FE + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_ibuf_aio_reads + + + + 6 + 0 + B90054 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_normal_aio_reads + + + + 7 + 0 + FF0000 + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_aio_log_ios + + + + 8 + 0 + 55009D + 0 + 2 + 0 + + Template App MySQLd + mysql.pending_log_writes + + + + + + [MySQL] InnoDB Insert Buffer + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 862F2F + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_merges + + + + 1 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_inserts + + + + 2 + 0 + 0000FF + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_merged + + + + + + [MySQL] InnoDB Insert Buffer Usage + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 793A57 + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_cell_count + + + + 1 + 1 + 8C873E + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_used_cells + + + + 2 + 5 + A38A5F + 1 + 2 + 0 + + Template App MySQLd + mysql.ibuf_free_cells + + + + + + [MySQL] InnoDB Internal Hash Memory Usage + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + A38A5F + 1 + 2 + 0 + + Template App MySQLd + mysql.lock_system_memory + + + + 1 + 5 + 8C873E + 1 + 2 + 0 + + Template App MySQLd + mysql.page_hash_memory + + + + 2 + 5 + 23B0BA + 1 + 2 + 0 + + Template App MySQLd + mysql.thread_hash_memory + + + + 3 + 5 + E97F02 + 1 + 2 + 0 + + Template App MySQLd + mysql.recovery_system_memory + + + + 4 + 1 + 793A57 + 1 + 2 + 0 + + Template App MySQLd + mysql.adaptive_hash_memory + + + + 5 + 5 + 4D3339 + 1 + 2 + 0 + + Template App MySQLd + mysql.file_system_memory + + + + 6 + 5 + D1C5A5 + 1 + 2 + 0 + + Template App MySQLd + mysql.dictionary_cache_memory + + + + + + [MySQL] InnoDB Lock Structures + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 0C4E5D + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_lock_structs + + + + + + [MySQL] InnoDB Log + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + AFECED + 1 + 2 + 0 + + Template App MySQLd + mysql.unflushed_log + + + + 1 + 1 + 5B8257 + 1 + 2 + 0 + + Template App MySQLd + mysql.log_bytes_written + + + + 2 + 0 + AB4253 + 1 + 2 + 0 + + Template App MySQLd + mysql.log_bytes_flushed + + + + 3 + 1 + 6E3803 + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_log_buffer_size + + + + + + [MySQL] InnoDB Memory Allocation + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 53777A + 1 + 2 + 0 + + Template App MySQLd + mysql.total_mem_alloc + + + + 1 + 0 + C02942 + 1 + 2 + 0 + + Template App MySQLd + mysql.additional_pool_alloc + + + + + + [MySQL] InnoDB Row Lock Time + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + B11D03 + 1 + 2 + 0 + + Template App MySQLd + mysql.Innodb_row_lock_time + + + + + + [MySQL] InnoDB Row Lock Waits + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + E84A5F + 1 + 2 + 0 + + Template App MySQLd + mysql.Innodb_row_lock_waits + + + + + + [MySQL] InnoDB Row Operations + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + AFECED + 0 + 2 + 0 + + Template App MySQLd + mysql.rows_read + + + + 1 + 5 + EA8F00 + 0 + 2 + 0 + + Template App MySQLd + mysql.rows_updated + + + + 2 + 5 + 35962B + 0 + 2 + 0 + + Template App MySQLd + mysql.rows_inserted + + + + 3 + 5 + DA4725 + 0 + 2 + 0 + + Template App MySQLd + mysql.rows_deleted + + + + + + [MySQL] InnoDB Semaphores + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQLd + mysql.spin_waits + + + + 1 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.os_waits + + + + 2 + 0 + 306078 + 1 + 2 + 0 + + Template App MySQLd + mysql.spin_rounds + + + + + + [MySQL] InnoDB Semaphore Waits + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 7020AF + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_sem_waits + + + + + + [MySQL] InnoDB Semaphore Wait Time + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 708226 + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_sem_wait_time_ms + + + + + + [MySQL] InnoDB Tables In Use + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 663344 + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_locked_tables + + + + 1 + 1 + D99362 + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_tables_in_use + + + + + + [MySQL] InnoDB Transactions + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 8F005C + 1 + 2 + 0 + + Template App MySQLd + mysql.innodb_transactions + + + + 1 + 0 + 74C366 + 1 + 2 + 0 + + Template App MySQLd + mysql.read_views + + + + 2 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQLd + mysql.current_transactions + + + + 3 + 0 + FF7D00 + 1 + 2 + 0 + + Template App MySQLd + mysql.history_list + + + + + + [MySQL] MyISAM Indexes + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_read_requests + + + + 1 + 0 + AFECED + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_reads + + + + 2 + 0 + F51D30 + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_writes + + + + 3 + 1 + 862F2F + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_write_requests + + + + + + [MySQL] MyISAM Key Cache + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + FECEA8 + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_buf_bytes_unflushed + + + + 1 + 1 + 99B898 + 1 + 2 + 0 + + Template App MySQLd + mysql.setting.key_buffer_size + + + + 2 + 1 + 2A363B + 1 + 2 + 0 + + Template App MySQLd + mysql.Key_buf_bytes_used + + + + + + [MySQL] MySQL Binary/Relay Logs + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 8F005C + 1 + 2 + 0 + + Template App MySQLd + mysql.relay_log_space + + + + 1 + 0 + 35962B + 1 + 2 + 0 + + Template App MySQLd + mysql.Binlog_cache_use + + + + 2 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQLd + mysql.Binlog_cache_disk_use + + + + 3 + 0 + 8D00BA + 1 + 2 + 0 + + Template App MySQLd + mysql.binary_log_space + + + + + + [MySQL] Network Traffic + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + 4B2744 + 0 + 2 + 0 + + Template App MySQLd + mysql.Bytes_sent + + + + 1 + 1 + E4C576 + 0 + 2 + 0 + + Template App MySQLd + mysql.Bytes_received + + + + + + [MySQL] Processlist + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + D1642E + 1 + 2 + 0 + + Template App MySQLd + mysql.State_end + + + + 1 + 5 + 54382A + 1 + 2 + 0 + + Template App MySQLd + mysql.State_sending_data + + + + 2 + 5 + DE0056 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_locked + + + + 3 + 5 + 907890 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_init + + + + 4 + 5 + B56414 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_updating + + + + 5 + 5 + FF7F00 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_reading_from_net + + + + 6 + 5 + 487860 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_freeing_items + + + + 7 + 5 + B83A04 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_sorting_result + + + + 8 + 5 + 521808 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_none + + + + 9 + 5 + 6E3803 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_statistics + + + + 10 + 5 + 783030 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_preparing + + + + 11 + 5 + 1693A7 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_login + + + + 12 + 5 + 194240 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_other + + + + 13 + 5 + 784890 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_copying_to_tmp_table + + + + 14 + 1 + DE0056 + 1 + 2 + 0 + + Template App MySQLd + mysql.State_closing_tables + + + + 15 + 5 + 6E645A + 1 + 2 + 0 + + Template App MySQLd + mysql.State_writing_to_net + + + + + + [MySQL] QPS + 900 + 200 + 0.0000 + 100.0000 + 0 + 0 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 009900 + 0 + 2 + 0 + + Template App MySQLd + mysql.qps + + + + + + [MySQL] Query Cache + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 2 + 4444FF + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_queries_in_cache + + + + 1 + 0 + 00A0C1 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_not_cached + + + + 2 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_lowmem_prunes + + + + 3 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_inserts + + + + 4 + 2 + EAAF00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_hits + + + + + + [MySQL] Query Cache Memory + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 8D00BA + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_total_blocks + + + + 1 + 0 + 837C04 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_free_blocks + + + + 2 + 1 + FFC3C0 + 1 + 2 + 0 + + Template App MySQLd + mysql.Qcache_free_memory + + + + 3 + 1 + 74C366 + 1 + 2 + 0 + + Template App MySQLd + mysql.setting.query_cache_size + + + + + + [MySQL] Select Types + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 5 + 13343B + 0 + 2 + 0 + + Template App MySQLd + mysql.Select_range_check + + + + 1 + 5 + AA3B27 + 0 + 2 + 0 + + Template App MySQLd + mysql.Select_full_range_join + + + + 2 + 5 + EDAA41 + 0 + 2 + 0 + + Template App MySQLd + mysql.Select_range + + + + 3 + 1 + 3D1500 + 0 + 2 + 0 + + Template App MySQLd + mysql.Select_full_join + + + + 4 + 5 + 686240 + 0 + 2 + 0 + + Template App MySQLd + mysql.Select_scan + + + + + + [MySQL] Sorts + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.Sort_range + + + + 1 + 1 + FFAB00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Sort_rows + + + + 2 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQLd + mysql.Sort_scan + + + + 3 + 0 + DA4725 + 1 + 2 + 0 + + Template App MySQLd + mysql.Sort_merge_passes + + + + + + [MySQL] Table Locks + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 002A8F + 1 + 2 + 0 + + Template App MySQLd + mysql.Table_locks_immediate + + + + 1 + 1 + D2D8F9 + 1 + 2 + 0 + + Template App MySQLd + mysql.Table_locks_immediate + + + + 2 + 1 + FF3932 + 1 + 2 + 0 + + Template App MySQLd + mysql.Table_locks_waited + + + + 3 + 0 + 35962B + 1 + 2 + 0 + + Template App MySQLd + mysql.Slow_queries + + + + + + [MySQL] Temporary Objects + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 2 + 157419 + 1 + 2 + 0 + + Template App MySQLd + mysql.Created_tmp_files + + + + 1 + 0 + F51D30 + 1 + 2 + 0 + + Template App MySQLd + mysql.Created_tmp_disk_tables + + + + 2 + 0 + 837C04 + 1 + 2 + 0 + + Template App MySQLd + mysql.Created_tmp_tables + + + + 3 + 1 + FFAB00 + 1 + 2 + 0 + + Template App MySQLd + mysql.Created_tmp_tables + + + + + + [MySQL] Threads + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 2 + DE0056 + 0 + 2 + 0 + + Template App MySQLd + mysql.Threads_created + + + + 1 + 1 + D8ACE0 + 0 + 2 + 0 + + Template App MySQLd + mysql.setting.thread_cache_size + + + + + + [MySQL] Transaction Handler + 800 + 150 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 784890 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_rollback + + + + 1 + 0 + D1642E + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_savepoint + + + + 2 + 0 + DE0056 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_commit + + + + 3 + 0 + 487860 + 1 + 2 + 0 + + Template App MySQLd + mysql.Handler_savepoint_rollback + + + + + + diff --git a/templates/Template App OpenVPN.xml b/templates/Template App OpenVPN.xml new file mode 100644 index 0000000..9165d34 --- /dev/null +++ b/templates/Template App OpenVPN.xml @@ -0,0 +1,150 @@ + + + 3.0 + 2016-05-02T08:41:26Z + + + Zabbix Templates + + + + + + + + {Template App OpenVPN:net.tcp.service[tcp,,1194].sum(#3)}=0 or {Template App OpenVPN:net.tcp.service[tcp,,443].sum(#3)}=0 + OpenVPN service is down + + 0 + 3 + + 0 + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template App PHP.xml b/templates/Template App PHP.xml new file mode 100644 index 0000000..f61b21f --- /dev/null +++ b/templates/Template App PHP.xml @@ -0,0 +1,194 @@ + + + 3.0 + 2016-05-02T08:41:53Z + + + Zabbix Templates + + + + + + + + {Template App PHP:vfs.file.exists[/etc/php.ini].last()}=0 + /etc/php.ini does not exist (missing file) + + 0 + 4 + + 0 + + + + {Template App PHP:vfs.file.cksum[/etc/php.ini].diff(0)}>0 + /etc/php.ini has been changed + + 0 + 1 + + 0 + + + + {Template App PHP:php.version.diff(0)}>0 + PHP version has changed + + 0 + 1 + + 0 + + + + diff --git a/templates/Template App Percona XtraBackup.xml b/templates/Template App Percona XtraBackup.xml new file mode 100644 index 0000000..8673ec2 --- /dev/null +++ b/templates/Template App Percona XtraBackup.xml @@ -0,0 +1,98 @@ + + + 3.0 + 2016-05-02T08:41:40Z + + + Zabbix Templates + + + + + + + + {Template App Percona XtraBackup:xtrabackup.status.last()}=0 + XtraBackup has encountered an error + + 0 + 3 + + 0 + + + + {Template App Percona XtraBackup:xtrabackup.status.nodata(86400)}=1 + XtraBackup not run for over 24h + + 0 + 3 + + 0 + + + + diff --git a/templates/Template App PostgreSQL.xml b/templates/Template App PostgreSQL.xml new file mode 100644 index 0000000..a092091 --- /dev/null +++ b/templates/Template App PostgreSQL.xml @@ -0,0 +1,1984 @@ + + + 3.0 + 2016-05-02T08:43:03Z + + + Zabbix Templates + + + + + + + + {Template App PostgreSQL:psql.checkpoints_req.last(0)}>{$PGCHECKPOINTS_THRESHOLD} + Checkpoints are occurring too frequently + + 0 + 1 + + 0 + + + + {Template App PostgreSQL:psql.server_connections.last(0)}>{$PGCONNECTIONS_THRESHOLD} + Many connections are forked. + + 0 + 1 + + 0 + + + + {Template App PostgreSQL:proc.num[,postgres,,].last(0)}=0 + PostgreSQL process is not running. + + 0 + 4 + + 0 + + + + {Template App PostgreSQL:psql.running.last(0)}<>0 + PostgreSQL service is not running. + + 0 + 4 + + 0 + + + + {Template App PostgreSQL:psql.slow_queries[{$PGSLOWQUERY_THRESHOLD}].last(0)}>{$PGSLOWQUERY_THRESHOLD} + Too many slow queries + + 1 + 1 + + 0 + + + + {Template App PostgreSQL:psql.version.diff(0)}>0 + Version of PostgreSQL server(d) was changed + + 0 + 1 + + 0 + + + + + + Checkpoint count + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 2 + 0 + + Template App PostgreSQL + psql.checkpoints_req + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App PostgreSQL + psql.checkpoints_timed + + + + + + Connection count + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 00C800 + 0 + 2 + 0 + + Template App PostgreSQL + psql.server_connections + + + + 1 + 0 + 0000C8 + 0 + 2 + 0 + + Template App PostgreSQL + psql.active_connections + + + + 2 + 0 + C800C8 + 0 + 2 + 0 + + Template App PostgreSQL + psql.idle_connections + + + + 3 + 0 + 00C8C8 + 0 + 2 + 0 + + Template App PostgreSQL + psql.idle_tx_connections + + + + 4 + 0 + C8C800 + 0 + 2 + 0 + + Template App PostgreSQL + psql.locks_waiting + + + + + + diff --git a/templates/Template App S.M.A.R.T..xml b/templates/Template App S.M.A.R.T..xml new file mode 100644 index 0000000..93c95bf --- /dev/null +++ b/templates/Template App S.M.A.R.T..xml @@ -0,0 +1,1703 @@ + + + 3.0 + 2016-08-16T09:08:11Z + + + Templates + + + + + + diff --git a/templates/Template App SPAM Blacklist.xml b/templates/Template App SPAM Blacklist.xml new file mode 100644 index 0000000..0364361 --- /dev/null +++ b/templates/Template App SPAM Blacklist.xml @@ -0,0 +1,88 @@ + + + 3.0 + 2016-05-02T08:44:49Z + + + Zabbix Templates + + + + + + + + {Template App SPAM Blacklist:blacklist[{HOST.HOST}].last()}>0 + {HOST.NAME} found on {ITEM.LASTVALUE} blacklist(s) + + 0 + 3 + + 0 + + + + diff --git a/templates/Template App Solr.xml b/templates/Template App Solr.xml new file mode 100644 index 0000000..2d0ac06 --- /dev/null +++ b/templates/Template App Solr.xml @@ -0,0 +1,105 @@ + + + 3.0 + 2016-05-02T08:44:04Z + + + Zabbix Templates + + + + + + + + {Template App Solr:net.tcp.service[tcp,,8983].sum(#3)}=0 + Solr service is down + + 0 + 4 + + 0 + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template App Unicorn Rails.xml b/templates/Template App Unicorn Rails.xml new file mode 100644 index 0000000..a3f3926 --- /dev/null +++ b/templates/Template App Unicorn Rails.xml @@ -0,0 +1,88 @@ + + + 3.0 + 2016-05-02T08:45:28Z + + + Zabbix Templates + + + + + + + + {Template App Unicorn Rails:proc.num[ruby,,,"unicorn_rails"].last(0)}=0 + Unicorn Rails is down + + 0 + 4 + + 0 + + + + diff --git a/templates/Template App Unicorn.xml b/templates/Template App Unicorn.xml new file mode 100644 index 0000000..7efeff4 --- /dev/null +++ b/templates/Template App Unicorn.xml @@ -0,0 +1,88 @@ + + + 3.0 + 2016-05-02T08:45:16Z + + + Zabbix Templates + + + + + + + + {Template App Unicorn:proc.num[ruby,,,"unicorn"].last(0)}=0 + Unicorn is down + + 0 + 4 + + 0 + + + + diff --git a/templates/Template App mdadm.xml b/templates/Template App mdadm.xml new file mode 100644 index 0000000..fd48cf0 --- /dev/null +++ b/templates/Template App mdadm.xml @@ -0,0 +1,80 @@ + + + 3.0 + 2016-05-02T08:35:26Z + + + Zabbix Templates + + + + + + + + {Template App mdadm:mdstat.last(0)}>0 + RAID is corrupted + + 0 + 3 + + 0 + + + + diff --git a/templates/Template App php-fpm.xml b/templates/Template App php-fpm.xml new file mode 100644 index 0000000..5946254 --- /dev/null +++ b/templates/Template App php-fpm.xml @@ -0,0 +1,141 @@ + + + 3.0 + 2016-05-02T08:42:27Z + + + Zabbix Templates + + + + + + + + {Template App php-fpm:chkconfig[php-fpm].last(0)}=0 + pgp-fpm is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App php-fpm:proc.num[php-fpm].last(0)}=0 + php-fpm (port:9000) server is down + + 0 + 4 + + 0 + + + + diff --git a/templates/Template OS CentOS.xml b/templates/Template OS CentOS.xml new file mode 100644 index 0000000..9243b42 --- /dev/null +++ b/templates/Template OS CentOS.xml @@ -0,0 +1,5207 @@ + + + 3.0 + 2016-08-16T09:45:41Z + + + Templates + + + + + + + + + + {Template OS CentOS:vfs.file.cksum[/etc/passwd].diff(0)}>0 + /etc/passwd has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:vfs.file.cksum[/etc/services].diff(0)}>0 + /etc/services has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:vfs.file.cksum[/etc/sysconfig/network].diff(0)}>0 + /etc/sysconfig/network has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:vfs.file.cksum[/usr/bin/ssh].diff(0)}>0 + /usr/bin/ssh has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:vfs.file.cksum[/usr/sbin/sshd].diff(0)}>0 + /usr/sbin/sshd has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:kernel.maxfiles.last(0)}<512 + Configured max number of opened files is too low + + 0 + 1 + + 0 + + + + {Template OS CentOS:kernel.maxproc.last(0)}<256 + Configured max number of processes is too low + + 0 + 1 + + 0 + + + + {Template OS CentOS:chkconfig[crond].last(0)}=0 + Cron is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template OS CentOS:proc.num[crond].sum(#2)}=0 + Cron service is down + + 0 + 4 + + 0 + + + + {Template OS CentOS:system.cpu.util[,iowait].last(300)}>20 + Disk I/O is overloaded + + 0 + 2 + OS spends significant time waiting for I/O (input/output) operations. It could be indicator of performance issues with storage system. + 0 + + + + {Template App Fail2Ban:chkconfig[fail2ban].last(0)}=0 + Fail2ban is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Fail2Ban:proc.num[fail2ban-server].sum(#3)}=0 + Fail2Ban service is down + + 0 + 3 + + 0 + + + + {Template App Iptables:firewall-enabled.last(0)}=0 + Firewall is disabled + + 0 + 3 + + 0 + + + + {Template OS CentOS:system.uptime.last(0)}<600 + Has just been restarted + + 0 + 1 + + 0 + + + + {Template OS CentOS:system.uname.diff(0)}>0 + Host information was changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:system.hostname.diff(0)}>0 + Hostname was changed + + 0 + 1 + + 0 + + + + {Template App Iptables:firewall-md5.diff(0)}<>0 + iptables has been changed + + 0 + 1 + + 0 + + + + {Template App Iptables:chkconfig[iptables].last(0)}=0 + iptables is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template OS CentOS:vm.memory.size[pavailable].last(0)}<5 + Lack of available memory, current {ITEM.LASTVALUE} available + + 0 + 4 + + 0 + + + + {Template OS CentOS:chkconfig[ntpd].last(0)}=0 + NTPd is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template OS CentOS:proc.num[ntpd].last(0)}<1 + NTPd is not running + + 0 + 3 + + 0 + + + + {Template OS CentOS:os-full.diff(0)}>0 + OS (Full details) has been changed + + 0 + 1 + + 0 + + + + {Template OS CentOS:system.cpu.load[,avg5].last(240)}>({Template OS CentOS:system.cpu.num.last()}*1.5) + Processor load is too high (>{ITEM.VALUE2}, current {ITEM.LASTVALUE}) + + 0 + 4 + + 0 + + + + {Template OS CentOS:system.cpu.util.used.last(240)}>85 + Processor utilization is too high (>85%, current {ITEM.LASTVALUE}) + + 0 + 2 + + 0 + + + + {Template OS CentOS:proc.num[rsyslogd].last(0)}<1 + rsyslogd is not running + + 0 + 3 + + 0 + + + + {Template OS CentOS:chkconfig[rsyslog].last(0)}=0 + Rsyslog is not enabled in autostart + + 0 + 3 + + 0 + + + + {Template OS CentOS:chkconfig[sshd].last(0)}=0 + SSHd is not enabled in autostart + + 0 + 3 + + 0 + + + + {Template OS CentOS:proc.num[sshd].last(0)}<1 + SSHd is not running + + 0 + 4 + + 0 + + + + {Template OS CentOS:net.tcp.service[tcp,,7324].last(0)}=0 + SSHd server is down + + 0 + 4 + + 0 + + + + {Template OS CentOS:proc.num[].last(0)}>1000 + Too many processes + + 0 + 3 + + 0 + + + + {Template OS CentOS:proc.num[,,run].last(0)}>30 + Too many processes running + + 0 + 3 + + 0 + + + + {Template OS CentOS:system.users.num.last(0)}>50 + Too many users connected + + 0 + 3 + + 0 + + + + {Template OS CentOS:yum-update-count.last(0)}>0 + Updates pending: {ITEM.VALUE} + + 0 + 1 + + 0 + + + + {Template OS CentOS:root_users.change()}>1 + Users with UID 0 + + 0 + 4 + trigger checks the system, if there are more users with the UID 0 than 1 + 0 + + + + {Template OS CentOS:proc.num[zabbix_agentd].last(0)}<1 + Zabbix_agentd is not running + + 0 + 2 + + 0 + + + + + + [Linux] CPU jumps + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 009900 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.switches + + + + 1 + 0 + 000099 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.intr + + + + + + [Linux] CPU load + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 0 + 009900 + 0 + 7 + 0 + + Template OS CentOS + system.cpu.load[,avg1] + + + + 1 + 0 + 000099 + 0 + 7 + 0 + + Template OS CentOS + system.cpu.load[,avg5] + + + + 2 + 0 + 990000 + 0 + 7 + 0 + + Template OS CentOS + system.cpu.load[,avg15] + + + + + + [Linux] CPU utilization + 900 + 100 + 0.0000 + 100.0000 + 0 + 1 + 1 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 0 + FF5555 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,steal] + + + + 1 + 0 + 55FF55 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,softirq] + + + + 2 + 0 + 009999 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,interrupt] + + + + 3 + 0 + 990099 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,nice] + + + + 4 + 0 + 999900 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,iowait] + + + + 5 + 0 + 990000 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,system] + + + + 6 + 0 + 000099 + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,user] + + + + 7 + 0 + FFFFFF + 0 + 2 + 0 + + Template OS CentOS + system.cpu.util[,idle] + + + + + + [Linux] Memory usage + 900 + 200 + 0.0000 + 100.0000 + 0 + 0 + 1 + 1 + 0 + 0.0000 + 0.0000 + 1 + 2 + 0 + + Template OS CentOS + vm.memory.size[total] + + + + 0 + 0 + CC0000 + 0 + 2 + 0 + + Template OS CentOS + vm.memory.size[used-true] + + + + 1 + 2 + 00BB00 + 0 + 2 + 0 + + Template OS CentOS + vm.memory.size[cached] + + + + 2 + 2 + 00EE00 + 0 + 2 + 0 + + Template OS CentOS + vm.memory.size[buffers] + + + + 3 + 2 + 99FF99 + 0 + 2 + 0 + + Template OS CentOS + vm.memory.size[free] + + + + + + [Linux] netstat + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 1A7C11 + 0 + 2 + 0 + + Template OS CentOS + netstat[CLOSE-WAIT] + + + + 1 + 0 + F63100 + 0 + 2 + 0 + + Template OS CentOS + netstat[ESTAB] + + + + 2 + 0 + 2774A4 + 0 + 2 + 0 + + Template OS CentOS + netstat[FIN-WAIT-1] + + + + 3 + 0 + A54F10 + 0 + 2 + 0 + + Template OS CentOS + netstat[FIN-WAIT-2] + + + + 4 + 0 + FC6EA3 + 0 + 2 + 0 + + Template OS CentOS + netstat[TIME-WAIT] + + + + + + [Linux] Network sockets + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 1 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 1 + EE0000 + 0 + 2 + 0 + + Template OS CentOS + sockstat.tcp.orphan + + + + 1 + 1 + 00DD00 + 0 + 2 + 0 + + Template OS CentOS + sockstat.tcp.inuse + + + + 2 + 1 + DDDD00 + 0 + 2 + 0 + + Template OS CentOS + sockstat.tcp.timewait + + + + + + [Linux] Process and Open files + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 7 + 0 + + Template OS CentOS + kernel.maxfiles + + + + 1 + 0 + 00C800 + 0 + 7 + 0 + + Template OS CentOS + kernel.maxproc + + + + 2 + 0 + 0000C8 + 0 + 7 + 0 + + Template OS CentOS + proc.num[] + + + + 3 + 0 + C800C8 + 0 + 7 + 0 + + Template OS CentOS + proc.num[,,run] + + + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/templates/Template OS Debian.xml b/templates/Template OS Debian.xml new file mode 100644 index 0000000..8e66402 --- /dev/null +++ b/templates/Template OS Debian.xml @@ -0,0 +1,5224 @@ + + + 3.0 + 2016-08-16T09:46:26Z + + + Templates + + + + + +