Skip to content

Commit f92ff22

Browse files
committed
Update nagios documentation.
1 parent 0923afa commit f92ff22

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.nagios.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ Needrestart can be used as a nagios plugin:
55

66
```console
77
# needrestart -p
8-
CRIT - Kernel: 3.16.0-4-amd64, Services: none, Containers: 1 (!), Sessions: none|Kernel=0;0;;0;2 Services=0;;0;0 Containers=1;;0;0 Sessions=0;0;;0
8+
CRIT - Kernel: 4.6.0-1-amd64, Services: 1 (!), Containers: none, Sessions: 2 (!)|Kernel=0;0;;0;2 Services=1;;0;0 Containers=0;;0;0 Sessions=2;0;;0
9+
Services:
10+
- NetworkManager.service
11+
Sessions:
12+
- thomas @ session #16
13+
- thomas @ user manager service
914
```
1015

1116
Since needrestart requires root privileges to scan processes of other
1217
users you should use sudo. Needrestart ships some example files to run
1318
needrestart as nagios plugin using sudo:
1419

1520
- `ex/nagios/check_needrestart` - calls sudo to invoke needrestart
16-
- `ex/nagios/needrestart` - sudo(8) config allowing nagios to run needrestart as root
21+
- `ex/nagios/needrestart-nagios` - sudo(8) config allowing nagios to run needrestart as root
1722
- `ex/nagios/plugin.conf` - nagios(8) integration

0 commit comments

Comments
 (0)