Page 1 of 1

How to check procs on remote server from nagios?

Posted: Sat Jan 06, 2018 10:26 pm
by t3dus
I've been poking around the forums and online and tried a bunch of things but I can't for the life of me figure out how to check custom processes running on a remote server with Nagios Core 4.3.4.

All the ways I have tried result with this error

Code: Select all

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory
I even tried this command to copy the checks to the folder /usr/local/nagios/libexec on the remote server. no fix.

Code: Select all

cp /usr/lib/nagios/plugins/check_* /usr/local/nagios/libexec
Can somebody please point me to something that actually works?

Re: How to check procs on remote server from nagios?

Posted: Mon Jan 08, 2018 12:51 pm
by cdienger
I'd recommend using hte NCPA agent on the remote server - https://www.nagios.org/ncpa/ - and then you can run something like:

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.3.246 -t 'welcome!' -M 'processes' -l

to get a list of processes and their details.