Page 4 of 4

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Mon Jul 18, 2016 9:18 am
by mcapra
Just need to tell the machine what we're chowning:

Code: Select all

chown apache.nagios check_cpu_stats.sh
From the /usr/local/nagios/libexec directory.

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Tue Jul 19, 2016 3:39 am
by venturegardengroup
Okay, thanks, see output below;

root@ERP-PROD-APP:/usr/local/nagios/libexec# chown apache.nagios check_cpu_stats.sh
chown: invalid user: ‘apache.nagios’

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Tue Jul 19, 2016 11:36 am
by mcapra
Naturally the remote server shouldn't automatically have an apache user :) My mistake!

Code: Select all

chown nagios.nagios check_cpu_stats.sh
Try making sure the user nagoios.nagios has ownership of the scripts you are attempting to run.