diff --git a/README.md b/README.md index f338235..5c3a0d0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ zabbix ====== -Script and templates for Zabbix 2.0.x. +Script and templates for Zabbix 2.2.x. + +- In /bin you will find bash/perl/php scripts used by some User Parameters (need to be installed on agent) +- In Templates there are XML files ready to import using Zabbix GUI +- In zabbix_agentd.conf.d there are custom User Parameters (need to be installed on agent) Please let us know if you have any questions or concerns. -The Camels \ No newline at end of file + +The Camels Team \ No newline at end of file diff --git a/bin/apc-check.php b/bin/apc-check.php new file mode 100644 index 0000000..f3c79bb --- /dev/null +++ b/bin/apc-check.php @@ -0,0 +1,87 @@ + \ No newline at end of file diff --git a/bin/apc-stats.php b/bin/apc-stats.php new file mode 100644 index 0000000..14bda6b --- /dev/null +++ b/bin/apc-stats.php @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/bin/opcache.php b/bin/opcache.php new file mode 100644 index 0000000..5111f89 --- /dev/null +++ b/bin/opcache.php @@ -0,0 +1,146 @@ + \ No newline at end of file diff --git a/bin/rabbit.php b/bin/rabbit.php new file mode 100644 index 0000000..cc97f70 --- /dev/null +++ b/bin/rabbit.php @@ -0,0 +1,157 @@ +/dev/null'); + +$results = array(); +$cleanStats = array(); +$matches = array(); + +$stats = array(); +$stats['queues'] = shell_exec(RABBITMQCTL_BIN . ' list_queues name durable auto_delete messages_ready messages_unacknowledged messages consumers memory'); +$stats['exchanges'] = shell_exec(RABBITMQCTL_BIN . ' list_exchanges type durable auto_delete'); +$stats['bindings'] = shell_exec(RABBITMQCTL_BIN . ' list_bindings source_kind destination_kind'); +$stats['connections'] = shell_exec(RABBITMQCTL_BIN . ' list_connections state channels protocol recv_oct send_oct'); +$stats['channels'] = shell_exec(RABBITMQCTL_BIN . ' list_channels transactional confirm consumer_count messages_unacknowledged messages_uncommitted acks_uncommitted messages_unconfirmed'); + +foreach ($stats as $name => $statusString) { + $statusString = str_replace("\t", " ", $statusString); + $statusString = trim(str_replace("\r", " ", $statusString)); + $stats[$name] = preg_replace('/ +/', ' ', $statusString); + $stats[$name] = explode("\n", $statusString); + + foreach ($stats[$name] as $index => $value) { + if (strpos($value, '...') === false && !empty($value)) { + $cleanStats[$name][$index] = $value; + } + } +} + +// QUEUES +if (isset($cleanStats['queues'])) { + foreach ($cleanStats['queues'] as $line) { + $columns = explode(' ', $line); + if (count($columns) == 8) { + $row = array( + 'queues_count' => 1, + 'queues_durable_count' => $columns[1] == 'true' ? 1 : 0, + 'queues_auto_delete_count' => $columns[2] == 'true' ? 1 : 0, + 'messages_ready_count' => $columns[3], + 'messages_unacknowledged_count' => $columns[4], + 'messages_count' => $columns[5], + 'queue_consumers_count' => $columns[6], + 'queues_memory_allocated' => $columns[7], + ); + $results[] = $row; + } + } +} +$results[] = array( + 'queues_count' => 0, + 'queues_durable_count' => 0, + 'queues_auto_delete_count' => 0, + 'messages_ready_count' => 0, + 'messages_unacknowledged_count' => 0, + 'messages_count' => 0, + 'queue_consumers_count' => 0, + 'queues_memory_allocated' => 0, +); + + +// EXCHANGES +if (isset($cleanStats['exchanges'])) { + foreach ($cleanStats['exchanges'] as $line) { + $columns = explode(' ', $line); + if (count($columns) == 3) { + $row = array( + 'exchanges_count' => 1, + 'exchanges_durable_count' => $columns[1] == 'true' ? 1 : 0, + 'exchanges_auto_delete_count' => $columns[2] == 'true' ? 1 : 0, + 'exchanges_direct_count' => $columns[0] == 'direct' ? 1 : 0, + 'exchanges_topic_count' => $columns[0] == 'topic' ? 1 : 0, + 'exchanges_fanout_count' => $columns[0] == 'fanout' ? 1 : 0, + 'exchanges_headers_count' => $columns[0] == 'headers' ? 1 : 0, + ); + $results[] = $row; + } + } +} +$results[] = array( + 'exchanges_count' => 0, + 'exchanges_durable_count' => 0, + 'exchanges_auto_delete_count' => 0, + 'exchanges_direct_count' => 0, + 'exchanges_topic_count' => 0, + 'exchanges_fanout_count' => 0, + 'exchanges_headers_count' => 0, +); + +// CONNECTIONS +if (isset($cleanStats['connections'])) { + foreach ($cleanStats['connections'] as $line) { + $columns = explode(' ', $line); + if (count($columns) == 5) { + $row = array( + 'connections_count' => 1, + 'connections_starting' => $columns[0] == 'starting' ? 1 : 0, + 'connections_tuning' => $columns[0] == 'tuning' ? 1 : 0, + 'connections_opening' => $columns[0] == 'opening' ? 1 : 0, + 'connections_running' => $columns[0] == 'running' ? 1 : 0, + 'connections_blocking' => $columns[0] == 'blocking' ? 1 : 0, + 'connections_blocked' => $columns[0] == 'blocked' ? 1 : 0, + 'connections_closing' => $columns[0] == 'closing' ? 1 : 0, + 'connections_closed' => $columns[0] == 'closed' ? 1 : 0, + ); + $results[] = $row; + } + } +} +$results[] = array( + 'connections_count' => 0, + 'connections_starting' => 0, + 'connections_tuning' => 0, + 'connections_opening' => 0, + 'connections_running' => 0, + 'connections_blocking' => 0, + 'connections_blocked' => 0, + 'connections_closing' => 0, + 'connections_closed' => 0, +); + +// CHANNELS +if (isset($cleanStats['channels'])) { + foreach ($cleanStats['channels'] as $line) { + $columns = explode(' ', $line); + if (count($columns) == 2) { + $row = array( + 'channels_count' => 1, + 'channels_transactional_count' => $columns[0] == 'true' ? 1 : 0, + 'channels_confirm_count' => $columns[1] == 'true' ? 1 : 0, + ); + $results[] = $row; + } + } +} +$results[] = array( + 'channels_count' => 0, + 'channels_transactional_count' => 0, + 'channels_confirm_count' => 0, +); + +// BINDINGS +$results[] = array('bindings_count' => count($cleanStats['exchanges'])); + +//SUMMARU +$summary = array(); +foreach ($results as $index => $values) { + foreach ($values as $name => $value) { + if (!isset($summary[$name])) { + $summary[$name] = 0; + } + $summary[$name] += $value; + } +} + +// PRINT +foreach ($summary as $name => $value) { + echo $name . ':' . $value . "\n"; +} \ No newline at end of file diff --git a/bin/rabbitmq.sh b/bin/rabbitmq.sh new file mode 100644 index 0000000..35e3cae --- /dev/null +++ b/bin/rabbitmq.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# ======================= +cachefile='/tmp/rabbitmq.log' +command='sudo /usr/bin/php /etc/zabbix/bin/rabbit.php' +# ======================= + +random=$RANDOM + +if [ ! -e $cachefile ]; then + touch -d "2 hours ago" $cachefile +fi + +cachefileage=$(($(date +%s) - $(stat -c %Y $cachefile))) +process_running=$(ps aux | grep rabbit.php | grep -v "grep" | wc -l) + +if [ "$cachefileage" -gt 60 ] && [ "$process_running" -eq 0 ]; then + output=$($command 2>&1) + + if [ $? -eq 0 ]; then + echo "$output" > $cachefile.$random + mv $cachefile.$random $cachefile + chown zabbix.zabbix $cachefile + fi +fi + +cat $cachefile \ No newline at end of file diff --git a/bin/rabbitmqctl.sh b/bin/rabbitmqctl.sh new file mode 100644 index 0000000..d20cf9e --- /dev/null +++ b/bin/rabbitmqctl.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# ======================= +cachefile='/tmp/rabbitmqctl.log' +command='sudo /usr/sbin/rabbitmqctl status' +# ======================= + +random=$RANDOM + +if [ ! -e $cachefile ]; then + touch -d "2 hours ago" $cachefile +fi + +cachefileage=$(($(date +%s) - $(stat -c %Y $cachefile))) +process_running=$(ps aux | grep "rabbitmqctl status" | grep -v "grep" | wc -l) + +if [ "$cachefileage" -gt 60 ] && [ "$process_running" -eq 0 ]; then + output=$($command 2>&1) + + if [ $? -eq 0 ]; then + echo "$output" > $cachefile.$random + mv $cachefile.$random $cachefile + chown zabbix.zabbix $cachefile + fi +fi + +cat $cachefile \ No newline at end of file diff --git a/templates/App_Memcached.xml b/templates/App_Memcached.xml deleted file mode 100644 index 6a40ad1..0000000 --- a/templates/App_Memcached.xml +++ /dev/null @@ -1,1245 +0,0 @@ - - - 2.0 - 2013-04-10T14:28:41Z - - - Templates - - - - - - - - {Template App Memcached:net.tcp.service[tcp,,11211].last(0)}=0 - Memcache service is down on {HOSTNAME} - - 0 - 4 - - 0 - - - - - - Connections per second - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[total_connections] - - - - - - Current items - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[curr_items] - - - - - - Current open connections - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[curr_connections] - - - - - - Evictions - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 2 - 990000 - 0 - 2 - 0 - - Template App Memcached - memcache[evictions] - - - - - - Items per second - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[total_items] - - - - - - Network traffic - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[bytes_read] - - - - 1 - 2 - 990000 - 0 - 2 - 0 - - Template App Memcached - memcache[bytes_written] - - - - - - Requests per second - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[cmd_get] - - - - 1 - 2 - 990000 - 0 - 2 - 0 - - Template App Memcached - memcache[cmd_set] - - - - - - Resource usage - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[rusage_user] - - - - 1 - 2 - 000099 - 0 - 2 - 0 - - Template App Memcached - memcache[rusage_system] - - - - - - Retrieval hit and miss per second - 900 - 200 - 0.0000 - 100.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 2 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[get_hits] - - - - 1 - 2 - 990000 - 0 - 2 - 0 - - Template App Memcached - memcache[get_misses] - - - - - - Storage usage - 900 - 200 - 0.0000 - 0.0000 - 0 - 0 - 0 - 1 - 0 - 0.0000 - 0.0000 - 1 - 0 - 0 - 0 - - - 0 - 1 - 009900 - 0 - 2 - 0 - - Template App Memcached - memcache[limit_maxbytes] - - - - 1 - 1 - 990000 - 0 - 2 - 0 - - Template App Memcached - memcache[bytes] - - - - - - diff --git a/templates/App_MySQL.xml b/templates/App_MySQL.xml deleted file mode 100644 index fcce0b6..0000000 --- a/templates/App_MySQL.xml +++ /dev/null @@ -1,10112 +0,0 @@ - - - 2.0 - 2013-04-10T14:28:37Z - - - Templates - - - - - - - - {Template App MySQL:mysql.innodb_lock_structs.delta(300)}>30 - InnoDB lock structures more than 30 in 5m on {HOSTNAME} - - 0 - 2 - - 0 - - - - {Template App MySQL:mysql.uncheckpointed_bytes.delta(600)}>25M - InnoDB uncheckpointed bytes in the last 10m > 25MB on {HOSTNAME} - - 0 - 2 - - 0 - - - - {Template App MySQL:mysql.Threads_connected.last(0)}>500 - More than 500 threads on {HOSTNAME} - - 0 - 3 - - 0 - - - - {Template App MySQL:proc.num[mysqld].last(0)}=0 - Mysql is not running on {HOSTNAME} - - 0 - 5 - - 0 - - - - {Template App MySQL:mysql.connection.last(0)}>300 - Mysql too many connections {HOSTNAME} - - 0 - 4 - - 0 - - - - {Template App MySQL:mysql.Table_locks_waited.min(300)}>20 - Server {HOSTNAME} is waiting on table locks - - 0 - 3 - - 0 - - - - ({TRIGGER.VALUE}=0&{Template App MySQL:mysql.State_copying_to_tmp_table.count(360,1,"ge")}>2)|({TRIGGER.VALUE}=1&{Template App MySQL:mysql.State_copying_to_tmp_table.count(360,1,"ge")}>0) - Thread in state Copying_to_tmp_table for more than 6min on {HOSTNAME} - - 0 - 3 - - 0 - - - - {Template App MySQL:mysql.version.diff(0)}>0 - Version of MySQL was changed on {HOSTNAME} - - 0 - 1 - - 0 - - - - - - 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 - - - - 0 - 0 - FF0000 - 1 - 2 - 0 - - Template App MySQL - mysql.locked_transactions - - - - - - 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 - - - - 0 - 1 - 0C4E5D - 1 - 2 - 0 - - Template App MySQL - mysql.hash_index_cells_total - - - - - - 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 - - - - 0 - 5 - AA3B27 - 1 - 2 - 0 - - Template App MySQL - mysql.free_pages - - - - 0 - 1 - EDAA41 - 1 - 2 - 0 - - Template App MySQL - mysql.database_pages - - - - 0 - 0 - 13343B - 1 - 2 - 0 - - Template App MySQL - mysql.modified_pages - - - - - - 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 - - - - 0 - 1 - D6883A - 1 - 2 - 0 - - Template App MySQL - mysql.pages_created - - - - 0 - 1 - 55AD84 - 1 - 2 - 0 - - Template App MySQL - mysql.pages_written - - - - - - 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 - - - - - - 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 - - - - - - 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 - - - - 0 - 0 - 402204 - 1 - 2 - 0 - - Template App MySQL - mysql.file_reads - - - - 0 - 0 - B3092B - 1 - 2 - 0 - - Template App MySQL - mysql.file_writes - - - - 0 - 0 - FFBF00 - 1 - 2 - 0 - - Template App MySQL - mysql.log_writes - - - - - - 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 - - - - 0 - 0 - FFF200 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_buf_pool_flushes - - - - 0 - 0 - FF7D00 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_aio_sync_ios - - - - 0 - 0 - 8F9286 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_normal_aio_writes - - - - 0 - 0 - 00A348 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_chkp_writes - - - - 0 - 0 - 6DC8FE - 1 - 2 - 0 - - Template App MySQL - mysql.pending_ibuf_aio_reads - - - - 0 - 0 - B90054 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_normal_aio_reads - - - - 0 - 0 - FF0000 - 1 - 2 - 0 - - Template App MySQL - mysql.pending_aio_log_ios - - - - 0 - 0 - 55009D - 1 - 2 - 0 - - Template App MySQL - mysql.pending_log_writes - - - - - - 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 - - - - 0 - 0 - 157419 - 1 - 2 - 0 - - Template App MySQL - mysql.ibuf_inserts - - - - 0 - 0 - 0000FF - 1 - 2 - 0 - - Template App MySQL - mysql.ibuf_merged - - - - - - 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 - - - - 0 - 1 - 8C873E - 1 - 2 - 0 - - Template App MySQL - mysql.ibuf_used_cells - - - - 0 - 5 - A38A5F - 1 - 2 - 0 - - Template App MySQL - mysql.ibuf_free_cells - - - - - - 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 - - - - 0 - 5 - 8C873E - 1 - 2 - 0 - - Template App MySQL - mysql.page_hash_memory - - - - 0 - 5 - 23B0BA - 1 - 2 - 0 - - Template App MySQL - mysql.thread_hash_memory - - - - 0 - 5 - E97F02 - 1 - 2 - 0 - - Template App MySQL - mysql.recovery_system_memory - - - - 0 - 1 - 793A57 - 1 - 2 - 0 - - Template App MySQL - mysql.adaptive_hash_memory - - - - 0 - 5 - 4D3339 - 1 - 2 - 0 - - Template App MySQL - mysql.file_system_memory - - - - 0 - 5 - D1C5A5 - 1 - 2 - 0 - - Template App MySQL - mysql.dictionary_cache_memory - - - - - - 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 - - - - - - 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 - - - - 0 - 1 - 5B8257 - 1 - 2 - 0 - - Template App MySQL - mysql.log_bytes_written - - - - 0 - 0 - AB4253 - 1 - 2 - 0 - - Template App MySQL - mysql.log_bytes_flushed - - - - 0 - 1 - 6E3803 - 1 - 2 - 0 - - Template App MySQL - mysql.innodb_log_buffer_size - - - - - - 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 - - - - 0 - 0 - C02942 - 1 - 2 - 0 - - Template App MySQL - mysql.additional_pool_alloc - - - - - - 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 - - - - - - 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 - - - - - - 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 - - - - 0 - 5 - EA8F00 - 1 - 2 - 0 - - Template App MySQL - mysql.rows_updated - - - - 0 - 5 - 35962B - 1 - 2 - 0 - - Template App MySQL - mysql.rows_inserted - - - - 0 - 5 - DA4725 - 1 - 2 - 0 - - Template App MySQL - mysql.rows_deleted - - - - - - 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 - - - - 0 - 0 - 157419 - 1 - 2 - 0 - - Template App MySQL - mysql.os_waits - - - - 0 - 0 - 306078 - 1 - 2 - 0 - - Template App MySQL - mysql.spin_rounds - - - - - - 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 - - - - - - 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 - - - - - - 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 - - - - 0 - 1 - D99362 - 1 - 2 - 0 - - Template App MySQL - mysql.innodb_tables_in_use - - - - - - 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 - - - - 0 - 0 - 74C366 - 1 - 2 - 0 - - Template App MySQL - mysql.read_views - - - - 0 - 0 - 4444FF - 1 - 2 - 0 - - Template App MySQL - mysql.current_transactions - - - - 0 - 0 - FF7D00 - 1 - 2 - 0 - - Template App MySQL - mysql.history_list - - - - - - 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 - - - - 0 - 0 - AFECED - 1 - 2 - 0 - - Template App MySQL - mysql.Key_reads - - - - 0 - 0 - F51D30 - 1 - 2 - 0 - - Template App MySQL - mysql.Key_writes - - - - 0 - 1 - 862F2F - 1 - 2 - 0 - - Template App MySQL - mysql.Key_write_requests - - - - - - 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 - - - - 0 - 1 - 99B898 - 1 - 2 - 0 - - Template App MySQL - mysql.setting.key_buffer_size - - - - 0 - 1 - 2A363B - 1 - 2 - 0 - - Template App MySQL - mysql.Key_buf_bytes_used - - - - - - MySQL bandwidth - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 5 - 00AA00 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Bytes_received] - - - - 1 - 5 - 3333FF - 0 - 2 - 0 - - Template App MySQL - mysql.status[Bytes_sent] - - - - - - 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 - - - - 0 - 0 - 35962B - 1 - 2 - 0 - - Template App MySQL - mysql.Binlog_cache_use - - - - 0 - 0 - FF0000 - 1 - 2 - 0 - - Template App MySQL - mysql.Binlog_cache_disk_use - - - - 0 - 0 - 8D00BA - 1 - 2 - 0 - - Template App MySQL - mysql.binary_log_space - - - - - - 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 - - - - 0 - 1 - FFC3C0 - 1 - 2 - 0 - - Template App MySQL - mysql.Questions - - - - 0 - 5 - 00B99B - 1 - 2 - 0 - - Template App MySQL - mysql.Com_replace_select - - - - 0 - 5 - 2175D9 - 1 - 2 - 0 - - Template App MySQL - mysql.Com_replace - - - - 0 - 5 - FFF200 - 1 - 2 - 0 - - Template App MySQL - mysql.Com_insert - - - - 0 - 5 - FF7D00 - 1 - 2 - 0 - - Template App MySQL - mysql.Com_delete - - - - 0 - 1 - FF0000 - 1 - 2 - 0 - - Template App MySQL - mysql.Com_select - - - - 0 - 5 - 00CF00 - 1 - 2 - 0 - - Template App MySQL - mysql.Com_update - - - - 0 - 5 - 942D0C - 1 - 2 - 0 - - Template App MySQL - mysql.Com_delete_multi - - - - 0 - 5 - 55009D - 1 - 2 - 0 - - Template App MySQL - mysql.Com_load - - - - 0 - 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 - - - - 0 - 1 - C0C0C0 - 1 - 2 - 0 - - Template App MySQL - mysql.setting.max_connections - - - - 0 - 0 - FF3932 - 1 - 2 - 0 - - Template App MySQL - mysql.Aborted_clients - - - - 0 - 0 - 4444FF - 1 - 2 - 0 - - Template App MySQL - mysql.Connections - - - - 0 - 0 - 00FF00 - 1 - 2 - 0 - - Template App MySQL - mysql.Aborted_connects - - - - 0 - 1 - FFD660 - 1 - 2 - 0 - - Template App MySQL - mysql.Max_used_connections - - - - - - 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 - - - - 0 - 0 - 4A6959 - 1 - 2 - 0 - - Template App MySQL - mysql.Open_tables - - - - 0 - 0 - 1D1159 - 1 - 2 - 0 - - Template App MySQL - mysql.Open_files - - - - 0 - 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 - - - - 0 - 5 - 8C286E - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_read_first - - - - 0 - 5 - BDB8B3 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_delete - - - - 0 - 5 - BAB27F - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_read_key - - - - 0 - 5 - 5A3D31 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_read_rnd - - - - 0 - 5 - 69D2E7 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_read_rnd_next - - - - 0 - 5 - FA6900 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_read_prev - - - - 0 - 1 - 4D4A47 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_write - - - - 0 - 5 - C79F71 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_update - - - - - - 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 - - - - 0 - 1 - E4C576 - 1 - 2 - 0 - - Template App MySQL - mysql.Bytes_received - - - - - - MySQL operations - 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 MySQL - mysql.status[Com_begin] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_commit] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_delete] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_insert] - - - - 4 - 0 - 00C8C8 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_rollback] - - - - 5 - 0 - C8C800 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_select] - - - - 6 - 0 - C8C8C8 - 0 - 2 - 0 - - Template App MySQL - mysql.status[Com_update] - - - - - - 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 - - - - 0 - 5 - 54382A - 1 - 2 - 0 - - Template App MySQL - mysql.State_sending_data - - - - 0 - 5 - DE0056 - 1 - 2 - 0 - - Template App MySQL - mysql.State_locked - - - - 0 - 5 - 907890 - 1 - 2 - 0 - - Template App MySQL - mysql.State_init - - - - 0 - 5 - B56414 - 1 - 2 - 0 - - Template App MySQL - mysql.State_updating - - - - 0 - 5 - FF7F00 - 1 - 2 - 0 - - Template App MySQL - mysql.State_reading_from_net - - - - 0 - 5 - 487860 - 1 - 2 - 0 - - Template App MySQL - mysql.State_freeing_items - - - - 0 - 5 - B83A04 - 1 - 2 - 0 - - Template App MySQL - mysql.State_sorting_result - - - - 0 - 5 - 521808 - 1 - 2 - 0 - - Template App MySQL - mysql.State_none - - - - 0 - 5 - 6E3803 - 1 - 2 - 0 - - Template App MySQL - mysql.State_statistics - - - - 0 - 5 - 783030 - 1 - 2 - 0 - - Template App MySQL - mysql.State_preparing - - - - 0 - 5 - 1693A7 - 1 - 2 - 0 - - Template App MySQL - mysql.State_login - - - - 0 - 5 - 194240 - 1 - 2 - 0 - - Template App MySQL - mysql.State_other - - - - 0 - 5 - 784890 - 1 - 2 - 0 - - Template App MySQL - mysql.State_copying_to_tmp_table - - - - 0 - 1 - DE0056 - 1 - 2 - 0 - - Template App MySQL - mysql.State_closing_tables - - - - 0 - 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 - - - - 0 - 0 - 00A0C1 - 1 - 2 - 0 - - Template App MySQL - mysql.Qcache_not_cached - - - - 0 - 0 - FF0000 - 1 - 2 - 0 - - Template App MySQL - mysql.Qcache_lowmem_prunes - - - - 0 - 0 - 157419 - 1 - 2 - 0 - - Template App MySQL - mysql.Qcache_inserts - - - - 0 - 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 - - - - 0 - 0 - 837C04 - 1 - 2 - 0 - - Template App MySQL - mysql.Qcache_free_blocks - - - - 0 - 1 - FFC3C0 - 1 - 2 - 0 - - Template App MySQL - mysql.Qcache_free_memory - - - - 0 - 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 - - - - 0 - 5 - AA3B27 - 1 - 2 - 0 - - Template App MySQL - mysql.Select_full_range_join - - - - 0 - 5 - EDAA41 - 1 - 2 - 0 - - Template App MySQL - mysql.Select_range - - - - 0 - 1 - 3D1500 - 1 - 2 - 0 - - Template App MySQL - mysql.Select_full_join - - - - 0 - 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 - - - - 0 - 1 - FFAB00 - 1 - 2 - 0 - - Template App MySQL - mysql.Sort_rows - - - - 0 - 0 - 4444FF - 1 - 2 - 0 - - Template App MySQL - mysql.Sort_scan - - - - 0 - 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 - - - - 0 - 1 - D2D8F9 - 1 - 2 - 0 - - Template App MySQL - mysql.Table_locks_immediate - - - - 0 - 1 - FF3932 - 1 - 2 - 0 - - Template App MySQL - mysql.Table_locks_waited - - - - 0 - 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 - - - - 0 - 0 - F51D30 - 1 - 2 - 0 - - Template App MySQL - mysql.Created_tmp_disk_tables - - - - 0 - 0 - 837C04 - 1 - 2 - 0 - - Template App MySQL - mysql.Created_tmp_tables - - - - 0 - 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 - - - - 0 - 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 - - - - 0 - 0 - D1642E - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_savepoint - - - - 0 - 0 - DE0056 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_commit - - - - 0 - 0 - 487860 - 1 - 2 - 0 - - Template App MySQL - mysql.Handler_savepoint_rollback - - - - - - diff --git a/templates/App_OpenVPN.xml b/templates/App_OpenVPN.xml deleted file mode 100644 index fd0df57..0000000 --- a/templates/App_OpenVPN.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - 2.0 - 2013-04-10T14:27:54Z - - - Templates - - - - - - - - {Template App OpenVPN:net.tcp.service[tcp,,1194].sum(#3)}=0 | {Template App OpenVPN:net.tcp.service[tcp,,443].sum(#3)}=0 - OpenVPN service is down on {HOSTNAME} - - 0 - 3 - - 0 - - - - diff --git a/templates/App_Solr.xml b/templates/App_Solr.xml deleted file mode 100644 index 4473fea..0000000 --- a/templates/App_Solr.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - 2.0 - 2013-04-10T14:27:49Z - - - Templates - - - - - - - - {Template App Solr:net.tcp.service[tcp,,8983].sum(#3)}=0 - Solr service is down on {HOSTNAME} - - 0 - 4 - - 0 - - - - diff --git a/templates/App_APC.xml b/templates/Template App APC.xml similarity index 88% rename from templates/App_APC.xml rename to templates/Template App APC.xml index 73db4fe..a816bc0 100644 --- a/templates/App_APC.xml +++ b/templates/Template App APC.xml @@ -1,8 +1,11 @@ 2.0 - 2013-04-10T14:28:55Z + 2014-08-11T09:42:01Z + + OS Linux + Templates @@ -12,6 +15,9 @@ Template App APC + + OS Linux + Templates @@ -30,16 +36,19 @@ apc[hits] 60 - 7 + 30 365 0 3 0 + 0 + 0 + 0 1 @@ -69,16 +78,19 @@ apc[entries] 60 - 7 + 30 365 0 3 0 + 0 + 0 + 0 1 @@ -108,16 +120,19 @@ apc[hits_ratio] 60 - 7 + 30 365 0 0 % 0 + 0 + 0 + 0 1 @@ -147,16 +162,19 @@ apc[mem.avail] 60 - 7 + 30 365 0 3 B 0 + 0 + 0 + 0 1 @@ -186,16 +204,19 @@ apc[mem.pfree] 60 - 7 + 30 365 0 0 % 0 + 0 + 0 + 0 1 @@ -225,16 +246,19 @@ apc[mem.used] 60 - 7 + 30 365 0 3 B 0 + 0 + 0 + 0 1 @@ -264,16 +288,19 @@ apc[misses] 60 - 7 + 30 365 0 3 0 + 0 + 0 + 0 1 @@ -303,16 +330,19 @@ apc[user.entries] 60 - 7 + 30 365 0 3 0 + 0 + 0 + 0 1 @@ -344,10 +374,10 @@ {Template App APC:apc[mem.pfree].avg(#3)}<10 - Low APC file cache memory on {HOSTNAME} + Low APC file cache memory 0 - 3 + 2 0 diff --git a/templates/App_PostgreSQL.xml b/templates/Template App OPcache.xml similarity index 62% rename from templates/App_PostgreSQL.xml rename to templates/Template App OPcache.xml index 5f89d3a..1ad52ef 100644 --- a/templates/App_PostgreSQL.xml +++ b/templates/Template App OPcache.xml @@ -1,34 +1,40 @@ 2.0 - 2013-04-10T14:27:52Z + 2014-08-11T09:41:35Z + + OS Linux + Templates