](https://gagor.pro/generic-cover.webp)
Nagios - run checks as root with NRPE
I’ve few Nagios checks that require root privileges but running nrpe as root user is not acceptable. I prefer to use sudo for only these few commands. Run visudo and coment out this line: #Defaults requiretty This change is crucial to get scripts working. Then add at the end of file: %nrpe ALL=(ALL) NOPASSWD: /usr/lib64/nagios/plugins/ I’ve used nrpe group, but you have to add exactly group that your nrpe process uses. ...
](https://gagor.pro/2014/01/change-default-wsus-port-from-8530-to-80-on-windows-server-2012/images/cover.webp)