Page 2 of 2
Re: Monitor Amazon EC2 linux
Posted: Tue Mar 19, 2019 5:26 am
by ivp2015
I try all the steps, but still not working. Please find out the attachment for the same.
Attachment Details-
Image No-1 these are the command which we are using.
Command image- Configure in nagios XI.
Nrpe.cfg- Check_disk_share_data
Remote Server- We are able to get output from Remote Server.
Re: Monitor Amazon EC2 linux
Posted: Tue Mar 19, 2019 5:28 am
by ivp2015
Output from remote server
Re: Monitor Amazon EC2 linux
Posted: Tue Mar 19, 2019 4:23 pm
by ssax
Given your current config, these commands should work from the XI server, do they?
- Change X.X.X.X to the remote NRPE agent's IP
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_disk_share_data
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_disk_share_mnt
-- Actually, after looking at your commands in your nrpe.cfg, I think you mispelled the paths: /use/local/ should be /usr/local
If you want to be able to pass arguments, I'd probably do it differently though:
Edit your nrpe.cfg and set:
Code: Select all
command[check_disk_share]=/usr/local/nagios/libexec/check_disk $ARG1$
Then call it from the XI server via:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_disk_share -a '-c 85 -p /usr/local/share/mnt'
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -c check_disk_share -a '-w 80 -c 85 -p /usr/local/share/data'
Re: Monitor Amazon EC2 linux
Posted: Wed Mar 20, 2019 5:15 am
by ivp2015
After changes in nrpe.cfg /use/local to /usr/local
please find out the attachment for the same.
Re: Monitor Amazon EC2 linux
Posted: Wed Mar 20, 2019 4:57 pm
by lmiltchev
Did you restart NPRE service after making changes to the nrpe.cfg file?
Do you see any clues in the system log on the remote machine (client)?
Re: Monitor Amazon EC2 linux
Posted: Wed Mar 20, 2019 4:57 pm
by ssax
Please follow the steps from here in order to enable debug logging on the remote NRPE agent:
- NOTE: set debug=2 though instead of debug=0
http://www.charlesjudith.com/2014/03/11 ... -for-nrpe/
What does /var/log/messages show on the remote NRPE agent when you run this command from the XI server? (send us the full output before and after the check has run.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_disk_share -a '-c 85 -p /usr/local/share/mnt'