Skip to content

Commit

Permalink
Fixes readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefreitas committed Dec 10, 2015
1 parent 10187da commit 8a0c162
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Assuming you are using Nagios 4, the steps are:

1. Copy _mattermost.py_ to /usr/local/nagios/libexec.
2. Create the notification command:

define command {
command_name notify-service-by-mattermost
command_line /usr/local/nagios/libexec/mattermost.py --url [URL] --hostalias "$HOSTNAME$" --notificationtype "$NOTIFICATIONTYPE$" --servicedesc "$SERVICEDESC$" --servicestate "$SERVICESTATE$" --serviceoutput "$SERVICEOUTPUT$"
Expand All @@ -15,7 +16,10 @@ Assuming you are using Nagios 4, the steps are:
command_name notify-host-by-mattermost
command_line /usr/local/nagios/libexec/mattermost.py --url [URL] --hostalias "$HOSTNAME$" --notificationtype "$NOTIFICATIONTYPE$" --hoststate "$HOSTSTATE$" --hostoutput "$HOSTOUTPUT$"
}
3. Create the contact:


define contact {
contact_name mattermost
alias Mattermost
Expand All @@ -28,6 +32,8 @@ Assuming you are using Nagios 4, the steps are:
}

4. Add the contact to a contact group:


define contactgroup{
contactgroup_name network-admins
alias Network Administrators
Expand Down

0 comments on commit 8a0c162

Please sign in to comment.