Skip to content

Instantly share code, notes, and snippets.

@HackRanger
Created May 28, 2014 20:16
Show Gist options
  • Save HackRanger/580a3171acbd69cd1ba8 to your computer and use it in GitHub Desktop.
Save HackRanger/580a3171acbd69cd1ba8 to your computer and use it in GitHub Desktop.
Modified Main.mk from your code
all_hosts = [ 'localhost' ]
all_hosts = [ 'SIO-Office-BackupServer', ]
ipaddresses = { “SIO-Office-BackupServer” : “127.0.0.1″ , }
extra_host_conf["check_command"] = [ ( "check_host_alive_by_ssh", ["check_ssh -p 12345"], ALL_HOSTS ), ( “check_mk_http”, [ "noping" ], ALL_HOSTS ), ]
datasource_programs += [ ( "cat /opt/omd/sites/sio/tmp/SIO-Office-BackupServer.txt", [ 'SIO-Office-BackupServer' ] , ALL_HOSTS), ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment