We have a nagios plugin NRPE check_disk on a secure directory, which relies on the nrpe account having this sudo entry:
nrpe ALL=(ALL) NOPASSWD: /usr/lib64/nagios/plugins/check_disk
How to we get the same plugin to work, using NCPA ?
the ncpa_listener process runs as the nagios user. is it just a matter of adding nagios to sudoers, like so:
nagios ALL=(ALL) NOPASSWD: /usr/local/ncpa/plugins/check_disk
Or are there any better ways?
regards
Richard
Pugins - NRPE to NCPA
-
gwesterman
- Posts: 269
- Joined: Wed Aug 23, 2023 11:29 am
Re: Pugins - NRPE to NCPA
Hi @RichardG,
I do not know of a "better" way at the moment, but your method seems reasonable. Can you try it and let us know if it works for you or not?
Thank you!
I do not know of a "better" way at the moment, but your method seems reasonable. Can you try it and let us know if it works for you or not?
Thank you!