diff --git a/README.md b/README.md index 16f0433..b75b26c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,49 @@ Template App APC ====== Monitoring memory usage of APC (http://pecl.php.net/package/APC) module. File ```bin/apc-stats.php``` need to be accessed via HTTP for example http://127.0.0.1/apc-stats.php +Template App Amavisd +====== +Monitoring for Amavisd service. + +Template App BIND +====== +Monitoring for BIND (DNS server) service. Checking also version of BIND. + +Template App Clamav +====== +Monitoring for ClamAV. + +Template App Dovecot +====== +Monitoring for Dovecot. + +Template App Etherpad +====== +Monitoring for Etherpad (http://etherpad.org/) + +Template App Exim +===== +Monitoring for mail server Exim. + +Template App lm_sensors +===== +Monitoring CPU and MotherBoard temperatures by lm_senros module. + +Template App mdadm +====== +Monitoring mdadm arrays. Checking number of corrupted disk arrays. + +Template App MySQL +===== +Monitoring for MySQL 5.5, 5.6 and 5.7. It is using PHP-cli for monitoring. You need also add zabbix user to database. Please run SQL query: +``` +CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'ha7jqnlacwefrs'; +GRANT REPLICATION CLIENT, SELECT, PROCESS, SHOW DATABASES ON *.* TO 'zabbix'@'localhost' IDENTIFIED BY 'ha7jqnlacwefrs'; +FLUSH PRIVILEGES; +``` + +If you want change password, you need to edit files ```.my.cnf``` and also in file ```bin/ss_get_mysql_stats.php```. + Template App Brocade HBA ====== Monitoring for Network Adapters - Brocade. Template is using Discovery to create Items and Triggers. You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /usr/bin/bcu``` @@ -206,11 +249,7 @@ Monitoring for S.M.A.R.T. enabled storage devices (HDD's, SSD's and other). Uses Template App PowerPath ====== -<<<<<<< HEAD -EMC PowerPath: Host-based software for automated data path management, failover and recovery, and optimized load balancing. PowerPath automates, standardizes, and optimizes data paths in physical and virtual environments as well as cloud deployments to deliver high availability and performance. -======= Monitoring for EMC PowerPath: Host-based software for automated data path management, failover and recovery, and optimized load balancing. PowerPath automates, standardizes, and optimizes data paths in physical and virtual environments as well as cloud deployments to deliver high availability and performance. ->>>>>>> 3ed283df96fdc7b7052da5e6dc946265e1761962 Template Security ====== diff --git a/bin/lm_sensors.sh b/bin/lm_sensors.sh new file mode 100644 index 0000000..b974b7c --- /dev/null +++ b/bin/lm_sensors.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +cachefile='/tmp/lm_sensors.log' +if [ -f $cachefile ]; then + cachefileage=$(($(date +%s) - $(stat -c %Y $cachefile))) + if [ $cachefileage -gt 300 ]; then + sensors > $cachefile + fi +else + sensors > $cachefile +fi + +cat $cachefile | grep "$1" | cut -d ":" -f 2 | sed -e 's/^[ \t]*//' | cut -d " " -f 1 | tr -d "+°C?" \ No newline at end of file diff --git a/sudoers.d/zabbix b/sudoers.d/zabbix index 4a7e637..d131954 100644 --- a/sudoers.d/zabbix +++ b/sudoers.d/zabbix @@ -1,8 +1,12 @@ zabbix ALL=(ALL) NOPASSWD: /sbin/iptables -L INPUT -n zabbix ALL=(ALL) NOPASSWD: /usr/sbin/nscd -g +zabbix ALL=(ALL) NOPASSWD: /usr/sbin/smartctl zabbix ALL=(ALL) NOPASSWD: /usr/sbin/rabbitmqctl zabbix ALL=(ALL) NOPASSWD: /usr/bin/php /etc/zabbix/bin/rabbit.php +apache ALL=(ALL) NOPASSWD: /usr/bin/scanimage +zabbix ALL=(ALL) NOPASSWD: /usr/sbin/exim -bp zabbix ALL=(ALL) NOPASSWD: /opt/dell/srvadmin/bin/omreport zabbix ALL=(ALL) NOPASSWD: /usr/bin/bcu zabbix ALL=(ALL) NOPASSWD: /sbin/powermt +zabbix ALL=(ALL) NOPASSWD: /bin/find /var/spool/postfix/ -type f Defaults:zabbix !requiretty diff --git a/templates/Template_App_Amavisd.xml b/templates/Template_App_Amavisd.xml new file mode 100644 index 0000000..cc2a7a5 --- /dev/null +++ b/templates/Template_App_Amavisd.xml @@ -0,0 +1,82 @@ + + + 2.0 + 2015-08-12T06:52:13Z + + + Templates + + + + + + + + {Template App Amavisd:proc.num[amavisd].last(0)}=0 + Service amavis is not running + + 0 + 3 + + 0 + + + + diff --git a/templates/Template_App_Dovecot.xml b/templates/Template_App_Dovecot.xml new file mode 100644 index 0000000..5f77f14 --- /dev/null +++ b/templates/Template_App_Dovecot.xml @@ -0,0 +1,251 @@ + + + 2.0 + 2015-08-12T06:59:56Z + + + Templates + + + + + + + + {Template App Dovecot:chkconfig[dovecot].last(0)}=0 + Dovecot is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Dovecot:dovecot.version.diff(0)}>0 + Dovecot version has changed + + 0 + 1 + + 0 + + + + {Template App Dovecot:net.tcp.service[imap].last(0)}=0 + IMAP server is down + + 0 + 4 + + 0 + + + + {Template App Dovecot:net.tcp.service[pop].last(0)}=0 + POP3 server is down + + 0 + 4 + + 0 + + + + diff --git a/templates/Template_App_Etherpad.xml b/templates/Template_App_Etherpad.xml new file mode 100644 index 0000000..b4050e6 --- /dev/null +++ b/templates/Template_App_Etherpad.xml @@ -0,0 +1,188 @@ + + + 2.0 + 2015-08-12T07:00:26Z + + + Templates + + + + + + + + {Template App Etherpad:chkconfig[etherpad].last(0)}=0 + Etherpad is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Etherpad:proc.num[node].last(0)}=0 or {Template App Etherpad:net.tcp.service[tcp,,10000].last(0)}=0 + Etherpad is not running + + 0 + 3 + + 0 + + + + diff --git a/templates/Template_App_Exim.xml b/templates/Template_App_Exim.xml new file mode 100644 index 0000000..2930c16 --- /dev/null +++ b/templates/Template_App_Exim.xml @@ -0,0 +1,293 @@ + + + 2.0 + 2015-08-12T07:00:43Z + + + Templates + + + + + + + + {Template App Exim:chkconfig[exim].last(0)}=0 + Exim is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Exim:exim.version.diff(0)}>0 + Exim version has changed + + 0 + 1 + + 0 + + + + {Template App Exim:mailqueue-exim.min(3600)}>500 + High mail queue ({ITEM.LASTVALUE} mails) + + 0 + 3 + + 0 + + + + {Template App Exim:mailqueue-exim.min(21600)}>50 + High old mail queue ({ITEM.LASTVALUE} mails) + + 0 + 2 + + 0 + + + + {Template App Exim:net.tcp.service[smtp].last(0)}=0 + SMTP server is down + + 0 + 4 + + 0 + + + + + + Mail queue + 900 + 200 + 0.0000 + 100.0000 + 1 + 0 + 0 + 0 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 5 + C80000 + 0 + 2 + 0 + + Template App Exim + mailqueue-exim + + + + + + diff --git a/templates/Template_App_MySQL.xml b/templates/Template_App_MySQL.xml new file mode 100644 index 0000000..c5a082a --- /dev/null +++ b/templates/Template_App_MySQL.xml @@ -0,0 +1,11133 @@ + + + 2.0 + 2015-08-12T06:50:17Z + + + Templates + + + + + + + + {Template App MySQL:vfs.file.exists[/etc/my.cnf].last()}=0 + /etc/my.cnf does not exist (missing file) + + 0 + 4 + + 0 + + + + {Template App MySQL:vfs.file.cksum[/etc/my.cnf].diff(0)}>0 + /etc/my.cnf has been changed + + 0 + 1 + + 0 + + + + {Template App MySQL:mysql.innodb_lock_structs.delta(900)}>100 + InnoDB lock structures more than 100 in 15m + + 0 + 2 + + 0 + + + + {Template App MySQL:mysql.uncheckpointed_bytes.delta(600)}>300M + InnoDB uncheckpointed bytes in the last 10m > 300MB + + 0 + 2 + + 0 + + + + {Template App MySQL:vfs.fs.size[/var/lib/mysql,pfree].last(0)}<1 + Low free (<1%) disk space, volume /san/mysql-fs + + 0 + 5 + + 0 + + + + {Template App MySQL:vfs.fs.inode[/var/lib/mysql,pfree].last(0)}<1 + Low free (<1%) inodes, volume /san/mysql-fs + + 0 + 5 + + 0 + + + + {Template App MySQL:vfs.fs.size[/var/lib/mysql,pfree].last(0)}<5 + Low free (<5%) disk space, volume /san/mysql-fs + + 0 + 4 + + 0 + + + + {Template App MySQL:vfs.fs.inode[/var/lib/mysql,pfree].last(0)}<5 + Low free (<5%) inodes, volume /san/mysql-fs + + 0 + 4 + + 0 + + + + {Template App MySQL:vfs.fs.size[/var/lib/mysql,pfree].last(0)}<10 + Low free (<10%) disk space, volume /san/mysql-fs + + 0 + 3 + + 0 + + + + {Template App MySQL:vfs.fs.inode[/var/lib/mysql,pfree].last(0)}<10 + Low free (<10%) inodes, volume /san/mysql-fs + + 0 + 3 + + 0 + + + + {Template App MySQL:vfs.fs.size[/var/lib/mysql,pfree].last(0)}<20 + Low free (<20%) disk space, volume /san/mysql-fs + + 0 + 2 + + 0 + + + + {Template App MySQL:vfs.fs.inode[/var/lib/mysql,pfree].last(0)}<20 + Low free (<20%) inodes, volume /san/mysql-fs + + 0 + 2 + + 0 + + + + {Template App MySQL:mysql.Threads_connected.last(0)}>300 + More than 300 threads + + 0 + 3 + + 0 + + + + {Template App MySQL:mysql.Threads_connected.last(0)}>500 + More than 500 threads + + 0 + 3 + + 0 + + + + {Template App MySQL:chkconfig[mysql].last(0)}=0 + MySQL is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App MySQL:proc.num[mysqld].last(0)}<1 + Mysql is not running + + 0 + 5 + + 0 + + + + {Template App MySQL:mysql.version.diff(0)}>0 + MySQL server version has changed + + 0 + 1 + + 0 + + + + {Template App MySQL:mysql.connection.last(0)}>300 + Mysql too many connections: {ITEM.LASTVALUE} + + 0 + 5 + + 0 + + + + {Template App MySQL:mysql.connection.last(0)}>2500 + Mysql too many connections: {ITEM.LASTVALUE} + + 0 + 5 + + 0 + + + + {Template App MySQL:mysql.Table_locks_waited.delta(300)}>10 + Server is waiting on table locks + + 0 + 2 + + 0 + + + + ({TRIGGER.VALUE}=0 and {Template App MySQL:mysql.State_copying_to_tmp_table.count(900,1,"ge")}>10) or ({TRIGGER.VALUE}=1 and {Template App MySQL: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 + + + + + + [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 MySQL + mysql.Com_update_multi + + + + 1 + 1 + FFC3C0 + 1 + 2 + 0 + + Template App MySQL + mysql.Questions + + + + 2 + 5 + 00B99B + 1 + 2 + 0 + + Template App MySQL + mysql.Com_replace_select + + + + 3 + 5 + 2175D9 + 1 + 2 + 0 + + Template App MySQL + mysql.Com_replace + + + + 4 + 5 + FFF200 + 1 + 2 + 0 + + Template App MySQL + mysql.Com_insert + + + + 5 + 5 + FF7D00 + 1 + 2 + 0 + + Template App MySQL + mysql.Com_delete + + + + 6 + 1 + FF0000 + 1 + 2 + 0 + + Template App MySQL + mysql.Com_select + + + + 7 + 5 + 00CF00 + 1 + 2 + 0 + + Template App MySQL + mysql.Com_update + + + + 8 + 5 + 942D0C + 1 + 2 + 0 + + Template App MySQL + mysql.Com_delete_multi + + + + 9 + 5 + 55009D + 1 + 2 + 0 + + Template App MySQL + mysql.Com_load + + + + 10 + 5 + AAABA1 + 1 + 2 + 0 + + Template App MySQL + 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 + 2 + FF7D00 + 1 + 2 + 0 + + Template App MySQL + mysql.Threads_connected + + + + 1 + 1 + C0C0C0 + 1 + 2 + 0 + + Template App MySQL + mysql.setting.max_connections + + + + 2 + 0 + FF3932 + 1 + 2 + 0 + + Template App MySQL + mysql.Aborted_clients + + + + 3 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQL + mysql.Connections + + + + 4 + 0 + 00FF00 + 1 + 2 + 0 + + Template App MySQL + mysql.Aborted_connects + + + + 5 + 1 + FFD660 + 1 + 2 + 0 + + Template App MySQL + mysql.Max_used_connections + + + + + + [MySQL] Database Filesystem Usage + 900 + 200 + 0.0000 + 100.0000 + 0 + 0 + 1 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 1 + 1 + 00C800 + 0 + 2 + 0 + + Template App MySQL + vfs.fs.size[/var/lib/mysql,pfree] + + + + 0 + 1 + C80000 + 0 + 2 + 0 + + Template App MySQL + vfs.fs.size[/var/lib/mysql,pused] + + + + + + [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 + 1 + 2 + 0 + + Template App MySQL + mysql.Opened_tables + + + + 1 + 0 + 4A6959 + 1 + 2 + 0 + + Template App MySQL + mysql.Open_tables + + + + 2 + 0 + 1D1159 + 1 + 2 + 0 + + Template App MySQL + mysql.Open_files + + + + 3 + 1 + D09887 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Handler_read_next + + + + 1 + 5 + 8C286E + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_read_first + + + + 2 + 5 + BDB8B3 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_delete + + + + 3 + 5 + BAB27F + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_read_key + + + + 4 + 5 + 5A3D31 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_read_rnd + + + + 5 + 5 + 69D2E7 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_read_rnd_next + + + + 6 + 5 + FA6900 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_read_prev + + + + 7 + 1 + 4D4A47 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_write + + + + 8 + 5 + C79F71 + 1 + 2 + 0 + + Template App MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.active_transactions + + + + 1 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.hash_index_cells_used + + + + 1 + 1 + 0C4E5D + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.setting.pool_size + + + + 1 + 5 + AA3B27 + 1 + 2 + 0 + + Template App MySQL + mysql.free_pages + + + + 2 + 1 + EDAA41 + 1 + 2 + 0 + + Template App MySQL + mysql.database_pages + + + + 3 + 0 + 13343B + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.pages_read + + + + 1 + 1 + D6883A + 1 + 2 + 0 + + Template App MySQL + mysql.pages_created + + + + 2 + 1 + 55AD84 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + 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 MySQL + 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 MySQL + mysql.file_fsyncs + + + + 1 + 0 + 402204 + 1 + 2 + 0 + + Template App MySQL + mysql.file_reads + + + + 2 + 0 + B3092B + 1 + 2 + 0 + + Template App MySQL + mysql.file_writes + + + + 3 + 0 + FFBF00 + 1 + 2 + 0 + + Template App MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_log_flushes + + + + 1 + 0 + FFF200 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_buf_pool_flushes + + + + 2 + 0 + FF7D00 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_aio_sync_ios + + + + 3 + 0 + 8F9286 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_normal_aio_writes + + + + 4 + 0 + 00A348 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_chkp_writes + + + + 5 + 0 + 6DC8FE + 1 + 2 + 0 + + Template App MySQL + mysql.pending_ibuf_aio_reads + + + + 6 + 0 + B90054 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_normal_aio_reads + + + + 7 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQL + mysql.pending_aio_log_ios + + + + 8 + 0 + 55009D + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.ibuf_merges + + + + 1 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQL + mysql.ibuf_inserts + + + + 2 + 0 + 0000FF + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.ibuf_cell_count + + + + 1 + 1 + 8C873E + 1 + 2 + 0 + + Template App MySQL + mysql.ibuf_used_cells + + + + 2 + 5 + A38A5F + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.lock_system_memory + + + + 1 + 5 + 8C873E + 1 + 2 + 0 + + Template App MySQL + mysql.page_hash_memory + + + + 2 + 5 + 23B0BA + 1 + 2 + 0 + + Template App MySQL + mysql.thread_hash_memory + + + + 3 + 5 + E97F02 + 1 + 2 + 0 + + Template App MySQL + mysql.recovery_system_memory + + + + 4 + 1 + 793A57 + 1 + 2 + 0 + + Template App MySQL + mysql.adaptive_hash_memory + + + + 5 + 5 + 4D3339 + 1 + 2 + 0 + + Template App MySQL + mysql.file_system_memory + + + + 6 + 5 + D1C5A5 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + 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 MySQL + mysql.unflushed_log + + + + 1 + 1 + 5B8257 + 1 + 2 + 0 + + Template App MySQL + mysql.log_bytes_written + + + + 2 + 0 + AB4253 + 1 + 2 + 0 + + Template App MySQL + mysql.log_bytes_flushed + + + + 3 + 1 + 6E3803 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.total_mem_alloc + + + + 1 + 0 + C02942 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + 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 MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.rows_read + + + + 1 + 5 + EA8F00 + 1 + 2 + 0 + + Template App MySQL + mysql.rows_updated + + + + 2 + 5 + 35962B + 1 + 2 + 0 + + Template App MySQL + mysql.rows_inserted + + + + 3 + 5 + DA4725 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.spin_waits + + + + 1 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQL + mysql.os_waits + + + + 2 + 0 + 306078 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + 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 MySQL + 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 MySQL + mysql.innodb_locked_tables + + + + 1 + 1 + D99362 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.innodb_transactions + + + + 1 + 0 + 74C366 + 1 + 2 + 0 + + Template App MySQL + mysql.read_views + + + + 2 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQL + mysql.current_transactions + + + + 3 + 0 + FF7D00 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Key_read_requests + + + + 1 + 0 + AFECED + 1 + 2 + 0 + + Template App MySQL + mysql.Key_reads + + + + 2 + 0 + F51D30 + 1 + 2 + 0 + + Template App MySQL + mysql.Key_writes + + + + 3 + 1 + 862F2F + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Key_buf_bytes_unflushed + + + + 1 + 1 + 99B898 + 1 + 2 + 0 + + Template App MySQL + mysql.setting.key_buffer_size + + + + 2 + 1 + 2A363B + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.relay_log_space + + + + 1 + 0 + 35962B + 1 + 2 + 0 + + Template App MySQL + mysql.Binlog_cache_use + + + + 2 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQL + mysql.Binlog_cache_disk_use + + + + 3 + 0 + 8D00BA + 1 + 2 + 0 + + Template App MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.Bytes_sent + + + + 1 + 1 + E4C576 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.State_end + + + + 1 + 5 + 54382A + 1 + 2 + 0 + + Template App MySQL + mysql.State_sending_data + + + + 2 + 5 + DE0056 + 1 + 2 + 0 + + Template App MySQL + mysql.State_locked + + + + 3 + 5 + 907890 + 1 + 2 + 0 + + Template App MySQL + mysql.State_init + + + + 4 + 5 + B56414 + 1 + 2 + 0 + + Template App MySQL + mysql.State_updating + + + + 5 + 5 + FF7F00 + 1 + 2 + 0 + + Template App MySQL + mysql.State_reading_from_net + + + + 6 + 5 + 487860 + 1 + 2 + 0 + + Template App MySQL + mysql.State_freeing_items + + + + 7 + 5 + B83A04 + 1 + 2 + 0 + + Template App MySQL + mysql.State_sorting_result + + + + 8 + 5 + 521808 + 1 + 2 + 0 + + Template App MySQL + mysql.State_none + + + + 9 + 5 + 6E3803 + 1 + 2 + 0 + + Template App MySQL + mysql.State_statistics + + + + 10 + 5 + 783030 + 1 + 2 + 0 + + Template App MySQL + mysql.State_preparing + + + + 11 + 5 + 1693A7 + 1 + 2 + 0 + + Template App MySQL + mysql.State_login + + + + 12 + 5 + 194240 + 1 + 2 + 0 + + Template App MySQL + mysql.State_other + + + + 13 + 5 + 784890 + 1 + 2 + 0 + + Template App MySQL + mysql.State_copying_to_tmp_table + + + + 14 + 1 + DE0056 + 1 + 2 + 0 + + Template App MySQL + mysql.State_closing_tables + + + + 15 + 5 + 6E645A + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + 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 MySQL + mysql.Qcache_queries_in_cache + + + + 1 + 0 + 00A0C1 + 1 + 2 + 0 + + Template App MySQL + mysql.Qcache_not_cached + + + + 2 + 0 + FF0000 + 1 + 2 + 0 + + Template App MySQL + mysql.Qcache_lowmem_prunes + + + + 3 + 0 + 157419 + 1 + 2 + 0 + + Template App MySQL + mysql.Qcache_inserts + + + + 4 + 2 + EAAF00 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Qcache_total_blocks + + + + 1 + 0 + 837C04 + 1 + 2 + 0 + + Template App MySQL + mysql.Qcache_free_blocks + + + + 2 + 1 + FFC3C0 + 1 + 2 + 0 + + Template App MySQL + mysql.Qcache_free_memory + + + + 3 + 1 + 74C366 + 1 + 2 + 0 + + Template App MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.Select_range_check + + + + 1 + 5 + AA3B27 + 1 + 2 + 0 + + Template App MySQL + mysql.Select_full_range_join + + + + 2 + 5 + EDAA41 + 1 + 2 + 0 + + Template App MySQL + mysql.Select_range + + + + 3 + 1 + 3D1500 + 1 + 2 + 0 + + Template App MySQL + mysql.Select_full_join + + + + 4 + 5 + 686240 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Sort_range + + + + 1 + 1 + FFAB00 + 1 + 2 + 0 + + Template App MySQL + mysql.Sort_rows + + + + 2 + 0 + 4444FF + 1 + 2 + 0 + + Template App MySQL + mysql.Sort_scan + + + + 3 + 0 + DA4725 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Table_locks_immediate + + + + 1 + 1 + D2D8F9 + 1 + 2 + 0 + + Template App MySQL + mysql.Table_locks_immediate + + + + 2 + 1 + FF3932 + 1 + 2 + 0 + + Template App MySQL + mysql.Table_locks_waited + + + + 3 + 0 + 35962B + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Created_tmp_files + + + + 1 + 0 + F51D30 + 1 + 2 + 0 + + Template App MySQL + mysql.Created_tmp_disk_tables + + + + 2 + 0 + 837C04 + 1 + 2 + 0 + + Template App MySQL + mysql.Created_tmp_tables + + + + 3 + 1 + FFAB00 + 1 + 2 + 0 + + Template App MySQL + 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 + 1 + 2 + 0 + + Template App MySQL + mysql.Threads_created + + + + 1 + 1 + D8ACE0 + 1 + 2 + 0 + + Template App MySQL + 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 MySQL + mysql.Handler_rollback + + + + 1 + 0 + D1642E + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_savepoint + + + + 2 + 0 + DE0056 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_commit + + + + 3 + 0 + 487860 + 1 + 2 + 0 + + Template App MySQL + mysql.Handler_savepoint_rollback + + + + + + diff --git a/templates/Template_App_lm_sensors.xml b/templates/Template_App_lm_sensors.xml new file mode 100644 index 0000000..275667b --- /dev/null +++ b/templates/Template_App_lm_sensors.xml @@ -0,0 +1,914 @@ + + + 2.0 + 2015-08-12T07:03:06Z + + + Templates + + + + + + + + {Template App lm_sensors:lm_sensors["CPU Temperature"].last(#3)}>60 + High CPU temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 0"].last(#3)}>80 + High ISA Adapter Core 0 temperature on {HOSTNAME} + + 0 + 2 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 1"].last(#3)}>80 + High ISA Adapter Core 1 temperature on {HOSTNAME} + + 0 + 2 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 2"].last(#3)}>80 + High ISA Adapter Core 2 temperature on {HOSTNAME} + + 0 + 2 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 3"].last(#3)}>80 + High ISA Adapter Core 3 temperature on {HOSTNAME} + + 0 + 2 + + 0 + + + + {Template App lm_sensors:lm_sensors["MB Temperature"].last(#3)}>45 + High Motherboard temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["NB Temperature"].last(0)}>80 + High North Bridge temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["temp1"].last(#3)}>100 + High PCI Adapter temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["SB Temperature"].last(#3)}>65 + High South Bridge temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["CPU Temperature"].last(#3)}>65 + Very high CPU temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 0"].last(#3)}>100 + Very high ISA Adapter Core 0 temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 1"].last(#3)}>100 + Very high ISA Adapter Core 1 temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 2"].last(#3)}>100 + Very high ISA Adapter Core 2 temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["Core 3"].last(#3)}>100 + Very high ISA Adapter Core 3 temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["MB Temperature"].last(#3)}>55 + Very high Motherboard temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["NB Temperature"].last(#3)}>80 + Very high North Bridge temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["temp1"].last(#3)}>120 + Very high PCI adapter temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + {Template App lm_sensors:lm_sensors["SB Temperature"].last(#3)}>80 + Very high South Bridge temperature on {HOSTNAME} + + 0 + 3 + + 0 + + + + + + Sensor - core temperatures + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 2 + C80000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["Core 0"] + + + + 1 + 2 + 00C800 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["Core 1"] + + + + 2 + 2 + 0000C8 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["Core 2"] + + + + 3 + 2 + C800C8 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["Core 3"] + + + + + + Sensor - CPU temperature + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + C80000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["CPU Temperature"] + + + + + + Sensor - Fan speed + 900 + 200 + 0.0000 + 130.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 2 + 00C800 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["CPU FAN Speed"] + + + + 1 + 2 + 0000C8 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["PWR_FAN FAN Speed"] + + + + + + Sensor - Motherboard temperature + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + DD0000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["MB Temperature"] + + + + + + Sensor - North Bridge temperature + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + DD0000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["NB Temperature"] + + + + + + Sensor - PCI Adapter temperature + 900 + 200 + 0.0000 + 130.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + DD0000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["temp1"] + + + + + + Sensor - South Bridge temperature + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 1 + 0 + 0 + + + 0 + 1 + DD0000 + 0 + 2 + 0 + + Template App lm_sensors + lm_sensors["SB Temperature"] + + + + + + diff --git a/zabbix_agentd.conf.d/bind.conf b/zabbix_agentd.conf.d/bind.conf new file mode 100644 index 0000000..b6237cb --- /dev/null +++ b/zabbix_agentd.conf.d/bind.conf @@ -0,0 +1 @@ +UserParameter=bind.version, named -v \ No newline at end of file diff --git a/zabbix_agentd.conf.d/dovecot.conf b/zabbix_agentd.conf.d/dovecot.conf new file mode 100644 index 0000000..1d30d55 --- /dev/null +++ b/zabbix_agentd.conf.d/dovecot.conf @@ -0,0 +1 @@ +UserParameter=dovecot.version, dovecot --version \ No newline at end of file diff --git a/zabbix_agentd.conf.d/exim.conf b/zabbix_agentd.conf.d/exim.conf new file mode 100644 index 0000000..d308b83 --- /dev/null +++ b/zabbix_agentd.conf.d/exim.conf @@ -0,0 +1,2 @@ +UserParameter=exim.version, exim -bV | head -1 | cut -d " " -f 3 +UserParameter=mailqueue-exim,sudo exim -bp | awk '{print $3}' | grep -c '^[0-9A-Z]' \ No newline at end of file diff --git a/zabbix_agentd.conf.d/linux.conf b/zabbix_agentd.conf.d/linux.conf index ecbc060..518f96e 100644 --- a/zabbix_agentd.conf.d/linux.conf +++ b/zabbix_agentd.conf.d/linux.conf @@ -1,8 +1,8 @@ UserParameter=nfs[*], df | grep -cw $1 +UserParameter=mount[*], df | grep -c $1 +UserParameter=mdstat,egrep -ce "F|_" /proc/mdstat UserParameter=netstat[*], ss -nat | grep -c $1 -UserParameter=mysqlnetstat[*], ss -nat | grep 3306 | grep -c $1 -UserParameter=mailqueue,mailq | grep -v 'Mail queue is empty' | grep -c '^[0-9A-Z]' -UserParameter=chkconfig[*], chkconfig --list | grep "$1" | cut -d ":" -f 4 | grep -c on +UserParameter=chkconfig[*], chkconfig --list | grep "$1" | cut -d ":" -f 5 | grep -c on UserParameter=sockstat.sockets,cat /proc/net/sockstat|grep sockets|cut -d' ' -f 3 UserParameter=sockstat.tcp.inuse,cat /proc/net/sockstat|grep TCP|cut -d' ' -f 3 UserParameter=sockstat.tcp.orphan,cat /proc/net/sockstat|grep TCP|cut -d' ' -f 5 @@ -12,4 +12,4 @@ UserParameter=sockstat.tcp.mem,cat /proc/net/sockstat|grep TCP|cut -d' ' -f 11 UserParameter=sockstat.udp.inuse,cat /proc/net/sockstat|grep UDP:|cut -d' ' -f 3 UserParameter=sockstat.udp.mem,cat /proc/net/sockstat|grep UDP:|cut -d' ' -f 5 UserParameter=check_chmod[*], stat --format '%a' $1 -UserParameter=os-full, cat /etc/issue | head -1 +UserParameter=os-full, cat /etc/issue | head -1 diff --git a/zabbix_agentd.conf.d/sensors.conf b/zabbix_agentd.conf.d/sensors.conf new file mode 100644 index 0000000..35e2565 --- /dev/null +++ b/zabbix_agentd.conf.d/sensors.conf @@ -0,0 +1 @@ +UserParameter=lm_sensors[*], sh /etc/zabbix/bin/lm_sensors.sh "$1" \ No newline at end of file