Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Commit

Permalink
More doc updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Frantz committed Jun 6, 2014
1 parent 8562c4c commit 29f8554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/formatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ end

### Naming Convention

* Formatters live in ``lib/nagios-herald/formatters/``.
* Built-in formatters live in ``lib/nagios-herald/formatters/``.
* Custom formatters (those **you'll** write) can live in any location.
* Specify the location of your custom formatters via the ``--formatter-dir`` option
on the command line or the ``formatter_dir`` variable in the configuration file.
* The file names **MUST** lower-cased and underscored.
* The class names **MUST** be CamelCased.

Expand Down
5 changes: 3 additions & 2 deletions docs/nagios-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ define command {
command_line /usr/local/nagios-herald/bin/nagios-herald --message-type email --formatter=$_HOSTMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com
}
# specify the location of custom formatters
define command {
command_name notify-service-by-email
command_line /usr/local/nagios-herald/bin/nagios-herald --message-type email --formatter=$_SERVICEMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com
command_line /usr/local/nagios-herald/bin/nagios-herald --message-type email --formatter=$_SERVICEMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com --formatter-dir=/usr/local/nagios-herald-formatters
}
# pager
Expand Down Expand Up @@ -51,7 +52,7 @@ If ``nagios-herald`` is failing to notify, you can turn up the logging via the `
more information, like so:

```
command_line /usr/local/nagios-herald/bin/nagios-herald --message-type email --formatter=$_SERVICEMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com --trace
command_line /usr/local/nagios-herald/bin/nagios-herald --message-type email --formatter=$_SERVICEMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com --trace
```

## Service Configuration
Expand Down

0 comments on commit 29f8554

Please sign in to comment.