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.
Monitor Amazon EC2 linux
Re: Monitor Amazon EC2 linux
You do not have the required permissions to view the files attached to this post.
Re: Monitor Amazon EC2 linux
Output from remote server
You do not have the required permissions to view the files attached to this post.
Re: Monitor Amazon EC2 linux
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
-- 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:
Then call it from the XI server via:
- 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
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$
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
After changes in nrpe.cfg /use/local to /usr/local
please find out the attachment for the same.
please find out the attachment for the same.
You do not have the required permissions to view the files attached to this post.
Re: Monitor Amazon EC2 linux
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)?
Code: Select all
service nrpe restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitor Amazon EC2 linux
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.
- 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'