Check CPU Load and Logged in Users on Remote Host
Re: Check CPU Load and Logged in Users on Remote Host
Can you please post a screenshot for us to take a look at of you running the command?
Former Nagios Employee
-
ep7network
- Posts: 51
- Joined: Sun Dec 27, 2015 5:04 pm
Re: Check CPU Load and Logged in Users on Remote Host
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?rkennedy wrote:Can you please post a screenshot for us to take a look at of you running the command?
/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
How did you install NRPE?
Former Nagios Employee.
me.
me.
-
ep7network
- Posts: 51
- Joined: Sun Dec 27, 2015 5:04 pm
Re: Check CPU Load and Logged in Users on Remote Host
1) On client server I typed this:hsmith wrote:How did you install NRPE?
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
What is dont_blame_nrpe set to inside of that nrpe.cfg file?
Former Nagios Employee.
me.
me.
Re: Check CPU Load and Logged in Users on Remote Host
Can you please post your nrpe.cfg file for us to take a look at?
Former Nagios Employee
-
ep7network
- Posts: 51
- Joined: Sun Dec 27, 2015 5:04 pm
Re: Check CPU Load and Logged in Users on Remote Host
It is set to "0"hsmith wrote:What is dont_blame_nrpe set to inside of that nrpe.cfg file?
Re: Check CPU Load and Logged in Users on Remote Host
Set that to 1, restart NRPE, and try to run the command once more.
Former Nagios Employee.
me.
me.
-
ep7network
- Posts: 51
- Joined: Sun Dec 27, 2015 5:04 pm
Re: Check CPU Load and Logged in Users on Remote Host
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'hsmith wrote:Set that to 1, restart NRPE, and try to run the command once more.
I'm now receiving "NRPE: Command 'check-users' not defined"
Re: Check CPU Load and Logged in Users on Remote Host
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..
Former Nagios Employee.
me.
me.