Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. apply Service "mysql8" {
  2. import "generic-service"
  3. check_command = "mysql"
  4.  
  5. vars.mysql_mode = "uptime"
  6. vars.mysql_hostname = "remote-host"
  7. vars.mysql_port = "3306"
  8. vars.mysql_username = "username"
  9. vars.myql_password = "password"
  10. command_endpoint = host.vars.client_endpoint
  11. assign where host.vars.mysql == true && host.vars.client_endpoint
  12. }
  13.  
  14. object Host "remote-host" {
  15. import "generic-host"
  16. address = "xxx.xxx.xx.xxx"
  17. vars.os = "linux"
  18. vars.mysql = true
  19. host.vars.client_endpoint="remote-host"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement