Monitor Amazon EC2 linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post 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.
You do not have the required permissions to view the files attached to this post.
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post by ivp2015 »

Output from remote server
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitor Amazon EC2 linux

Post 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'
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post by ivp2015 »

After changes in nrpe.cfg /use/local to /usr/local
please find out the attachment for the same.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor Amazon EC2 linux

Post by lmiltchev »

Did you restart NPRE service after making changes to the nrpe.cfg file?

Code: Select all

service nrpe restart
Do you see any clues in the system log on the remote machine (client)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitor Amazon EC2 linux

Post 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'
Locked