Are you starting nrpe through xinetd or an init script?vinothsethuram wrote:/usr/local/nagios/libexec/check_nrpe -H localhost
connect to address 127.0.0.1 port 5666: Connection refused
If I specify a host other than local host then I am getting socket time out
Monitor remote machine's memory using Nagios Core
Re: Monitor remote machine's memory using Nagios Core
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Monitor remote machine's memory using Nagios Core
I started the daemon. Do we need to install nagios in remote server which we are going to monitor. And also please give syntax/example.
Re: Monitor remote machine's memory using Nagios Core
No, the nrpe daemon runs on the remote host. Your nagios server checks the remote host with check_nrpe.vinothsethuram wrote:Do we need to install nagios in remote server which we are going to monitor.
Of what?vinothsethuram wrote:And also please give syntax/example.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Monitor remote machine's memory using Nagios Core
Syntax/Example about disk usage and processor check
Re: Monitor remote machine's memory using Nagios Core
I would suggest you start with the following doc as examples without an understanding of the syntax will not get you very far:
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Monitor remote machine's memory using Nagios Core
Given link is very useful. I'm able to get output for local host. however i couldn't get output for remote host. getting port 5666: Connection refused
Re: Monitor remote machine's memory using Nagios Core
Did you open port 5666 in the firewall?vinothsethuram wrote:Given link is very useful. I'm able to get output for local host. however i couldn't get output for remote host. getting port 5666: Connection refused
Former Nagios employee
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Monitor remote machine's memory using Nagios Core
Added nrpe 5666/tcp # NRPE in services file and executed this command
iptables -A INPUT -p tcp --dport 5666 -j ACCEPT
iptables -A INPUT -p tcp --dport 5666 -j ACCEPT
Re: Monitor remote machine's memory using Nagios Core
You forgot the -m flag, might make a difference:
Then also make sure to run:
so changes will persist after a reboot.
Code: Select all
iptables -A INPUT -p tcp -m tcp --dport 5666 -j ACCEPTCode: Select all
service iptables saveFormer Nagios employee
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Monitor remote machine's memory using Nagios Core
Still getting port 5666: Connection refused