Created
March 1, 2017 00:52
-
-
Save kujiy/843c7f878b80384b72e8868756245c0d to your computer and use it in GitHub Desktop.
Zabbix external script with curl; monitoring external websites
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
# How to use | |
# Add an item on zabbix-web admin | |
# curl[example.com] | |
# | |
# Test command on zabbix-server | |
# [root@zabbix /]# zabbix_get -s 192.168.20.212 -k "curl[example.com]" | |
UserParameter=curl[*],curl -sI $1 | grep -q "HTTP/1.1 200 OK" && [[ $? == 0 ]] && echo 0 || echo 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment