This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # memcached_stats.sh: | |
| # Memcached monitoring script for Zabbix | |
| # | |
| # $1: Memcached host(default: 127.0.0.1) | |
| # $2: Memcached port(default: 11211) | |
| # $3: Timeout(default: 3[sec]) | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SYSTEM_UUID=$( cat /sys/devices/virtual/dmi/id/product_uuid 2> /dev/null | tr 'A-Z' 'a-z' \ | |
| || cat /sys/hypervisor/uuid 2> /dev/null | tr 'A-Z' 'a-z' ) | |
| [ -z "${SYSTEM_UUID}" ] && SYSTEM_UUID='00000000-0000-0000-0000-000000000000' | |
| echo ${SYSTEM_UUID} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| PROCNAME="$1" | |
| PORT_LIST=$(ss -nap|grep LISTEN|grep \"${PROCNAME}\" \ | |
| |awk '{ print $4 }'|sed -e 's/.*://g'|sort|uniq) | |
| [ -z "${PORT_LIST}" ] && echo ZBX_NOTSUPPORTED && exit 1 | |
| { | |
| echo "{" | |
| echo " \"data\":[" | |
| for PORT in ${PORT_LIST}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # tcp_stats.sh: | |
| # TCP state monitoring script for Zabbix | |
| # | |
| POLLING_TIME=$( date '+%s' ) | |
| NETSTAT_TCP_RESULT=$( netstat -na|grep '^tcp' ) | |
| if [ $? -ne 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <zabbix_export> | |
| <version>2.0</version> | |
| <date>2015-02-25T04:14:42Z</date> | |
| <groups> | |
| <group> | |
| <name>Custom Templates</name> | |
| </group> | |
| </groups> | |
| <templates> |
OlderNewer