-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
32 lines (19 loc) · 934 Bytes
/
INSTALL
File metadata and controls
32 lines (19 loc) · 934 Bytes
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
26
27
28
29
30
31
32
1. Installing with nrpe
1.1. sudo configuration
Use 'visudo' (or edit /etc/sudoers in any other suitable way), and add
the following lines:
For 32-bit systems:
nrpe ALL=(postfix) NOPASSWD: /usr/lib/nagios/plugins/check_postfix_queue
Defaults!/usr/lib/nagios/plugins/check_postfix_queue !requiretty
For 64-bit systems:
nrpe ALL=(postfix) NOPASSWD: /usr/lib64/nagios/plugins/check_postfix_queue
Defaults!/usr/lib64/nagios/plugins/check_postfix_queue !requiretty
If your system (main sudo configuration) supports, the lines above may
be added to a standalone file in /etc/sudoers.d, for instance
/etc/sudoers.d/check_postfix_queue.
1.2. nrpe configuration
Add the following line to /etc/nagios/nrpe.cfg.
For 32-bit systems:
command[check_postfix_queue]=sudo -u postfix /usr/lib/nagios/plugins/check_postfix_queue
For 64-bit systems:
command[check_postfix_queue]=sudo -u postfix /usr/lib64/nagios/plugins/check_postfix_queue