forked from PagerDuty/pdagent-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnagios-testing.txt
25 lines (16 loc) · 941 Bytes
/
nagios-testing.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Nagios Testing
This document shows you how to test the Nagios integration using the public
Nagios Integration Guide.
1. Configure Nagios using the public Nagios Integration Guide:
http://www.pagerduty.com/docs/guides/nagios-integration-guide-2/
> For development builds of `pdagent-integrations` package, see
> `build-linux/howto.txt` for install instructions.
2. The simplest way to test that your Nagios integration is working as
expected (assuming that you are running the SSH check), is to disable
the system ssh service. This will not disconnect any existing ssh sessions.
`sudo service ssh stop`
You can then force the check in Nagios in
Services > SSH > Re-schedule the next check of this service. By default, a Nagios
service must fail 5 checks before it will send a notification.
Be sure to restart the ssh service when you have verified your test.
`sudo service ssh start`