How to check procs on remote server from nagios?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

How to check procs on remote server from nagios?

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked