Issues with NRPE Monitoring for a Linux Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Issues with NRPE Monitoring for a Linux Server

Post 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.
Former Nagios employee
https://www.mcapra.com/
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: Issues with NRPE Monitoring for a Linux Server

Post 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’
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Issues with NRPE Monitoring for a Linux Server

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked