Check CPU Load and Logged in Users on Remote Host

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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check CPU Load and Logged in Users on Remote Host

Post by rkennedy »

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

Post 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'
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check CPU Load and Logged in Users on Remote Host

Post by hsmith »

How did you install NRPE?
Former Nagios Employee.
me.
ep7network
Posts: 51
Joined: Sun Dec 27, 2015 5:04 pm

Re: Check CPU Load and Logged in Users on Remote Host

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check CPU Load and Logged in Users on Remote Host

Post by hsmith »

What is dont_blame_nrpe set to inside of that nrpe.cfg file?
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check CPU Load and Logged in Users on Remote Host

Post by rkennedy »

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

Post by ep7network »

hsmith wrote:What is dont_blame_nrpe set to inside of that nrpe.cfg file?
It is set to "0"
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check CPU Load and Logged in Users on Remote Host

Post by hsmith »

Set that to 1, restart NRPE, and try to run the command once more.
Former Nagios Employee.
me.
ep7network
Posts: 51
Joined: Sun Dec 27, 2015 5:04 pm

Re: Check CPU Load and Logged in Users on Remote Host

Post 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"
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check CPU Load and Logged in Users on Remote Host

Post 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..
Former Nagios Employee.
me.
Locked