Page 2 of 3
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 2:52 pm
by rkennedy
Can you please post a screenshot for us to take a look at of you running the command?
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 3:45 pm
by ep7network
rkennedy wrote:Can you please post a screenshot for us to take a look at of you running the command?
When I typed the command below. I receive a message, saying "Check the remote server logs for error messages. How can I view the server log for this particular message?
/usr/local/nagios/libexec/check_nrpe -H 172.x.x.x -c check_users -a '-w 2 -c 3'
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 3:51 pm
by hsmith
How did you install NRPE?
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:00 pm
by ep7network
hsmith wrote:How did you install NRPE?
1) On client server I typed this:
yum install nrpe nagios-plugins-all openssl
2) On client server I typed this: vi /etc/nagios/nrpe.cfg
And then entered nagios server IP Address.
3) Then re-started client and nagios server
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:03 pm
by hsmith
What is dont_blame_nrpe set to inside of that nrpe.cfg file?
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:04 pm
by rkennedy
Can you please post your nrpe.cfg file for us to take a look at?
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:06 pm
by ep7network
hsmith wrote:What is dont_blame_nrpe set to inside of that nrpe.cfg file?
It is set to "0"
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:08 pm
by hsmith
Set that to 1, restart NRPE, and try to run the command once more.
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:14 pm
by ep7network
hsmith wrote:Set that to 1, restart NRPE, and try to run the command once more.
After setting 0 to 1. I ran the command /usr/local/nagios/libexec/check_nrpe -H 172.x.x.x -c check_users -a '-w 2 -c 3'
I'm now receiving "NRPE: Command 'check-users' not defined"
Re: Check CPU Load and Logged in Users on Remote Host
Posted: Mon Dec 28, 2015 4:16 pm
by hsmith
It's check_users with an underscore. Can you post the contents of nrpe.cfg? I'm not sure what the one from the yum install contains..