Last active
September 17, 2015 16:40
-
-
Save marcioviegas/d9371d83a306f37ec9e6 to your computer and use it in GitHub Desktop.
This file contains 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
define hostgroup { | |
hostgroup_name db-servers | |
alias Database Servers | |
} | |
define hostgroup { | |
hostgroup_name web-servers | |
alias Web Servers | |
} | |
define host { | |
use generic-host | |
host_name 192.168.33.10 | |
hostgroups ssh-servers, debian-servers, db-servers | |
} | |
define host { | |
use generic-host | |
host_name 192.168.33.12 | |
hostgroups ssh-servers, debian-servers, web-servers | |
} | |
define service { | |
service_description MySQL | |
use generic-service | |
hostgroup_name db-servers | |
check_command check_tcp!3306 | |
} | |
define service { | |
service_description MySQL-lojavirtual | |
use generic-service | |
hostgroup_name db-servers | |
check_command check_mysql_database!loja!lojasecret!loja_schema | |
} | |
define command { | |
command_name check_tomcat_http | |
command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -p '$ARG1$' -u '$ARG2$' -e 'HTTP/1.1 200 OK' | |
} | |
define service { | |
service_description Tomcat | |
use generic-service | |
hostgroup_name web-servers | |
check_command check_tomcat_http!8080!'/devopsnapratica/' | |
} | |
define command { | |
command_name check_tomcat_https | |
command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' --ssl=3 -p '$ARG1$' -u '$ARG2$' -e 'HTTP/1.1 200 OK' | |
} | |
define service { | |
service_description Tomcat SSL | |
use generic-service | |
hostgroup_name web-servers | |
check_command check_tomcat_https!8443!'/devopsnapratica/admin/' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment