# Example use of local-monitors
bundle.yaml:
```
series: trusty
services:
myapp:
charm: "~/trusty/myapp"
num_units: 1
myapp-nrpe:
charm: "cs:trusty/nrpe"
nagios:
charm: "cs:trusty/nagios"
num_units: 1
relations:
- - "myapp:local-monitors"
- "myapp-nrpe:local-monitors"
- - "nagios"
- "myapp-nrpe"
```
config.yaml:
```
myapp-nrpe:
monitors: |
monitors:
remote:
nrpe:
check_http:
command: check_http
```
I've found that you need to declare every nagios check that your charm provides over the relation in the config.yaml.