Skip to content

Adding hosts

Scott edited this page Nov 12, 2020 · 5 revisions

Hosts

You have two options, you can edit the csv or you can use the CLI. See the CLI section below.

  • edit the db/hosts.csv and add in the hosts and for email, pushover, webhooks you can do a single or multiple by "foo@bar.com,foo2@bar.com", make sure the comma is between and wrap the whole thing in quotes. ** Do not put spaces, and you must wrap in quotes. **
Field Description
id A unique id for each host
group Group Name to put the host in
name Name of the host
hosts IP Address of the host, website, or script to run
status up,down, set it to up
type_check ping, web, script
email the email to send the notifications to "foo@bar.com" or "foo@bar.com,foo2@bar.com"
pushover the field needs to have the "token:user" and for multiple, "token:user,token:user", example "23dfe234fds:23423d2f23"
webhook the field needs slack:https... or gchat:https..., it can do multiple "slack:https://...,gchat:https://...,discord:https://"

Web Hooks:

Clone this wiki locally