Search found 14 matches

by sirampadu
Tue Aug 08, 2017 9:37 am
Forum: Open Source Nagios Projects
Topic: Connect to address 127.0.0.1 port 5666 connection refused
Replies: 4
Views: 11198

Connect to address 127.0.0.1 port 5666 connection refused

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
connect to address 127.0.0.1 port 5666: Connection refused
connect to host 127.0.0.1 port 5666: Connection refused

Even though no firewall rules are set on my ubuntu server. I even went ahead and sudo ufw allow 5666/tcp but still no luck.
Help please
by sirampadu
Wed Jul 26, 2017 11:09 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

From linux-nrpe-agent directory run: ls -l And post the result. ls -l total 56 -rwxrwxrwx 1 root root 2409 Jun 23 2016 0-repos -rwxrwxrwx 1 root root 1086 Jan 5 2015 1-prereqs -rwxrwxrwx 1 root root 1340 Jan 5 2015 2-usersgroups -rwxrwxrwx 1 root root 458 Jan 5 2015 3-services -rwxrwxrwx 1 root roo...
by sirampadu
Wed Jul 26, 2017 11:03 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

There is no performance difference between "standalone" and "xinetd". Either way nrpe runs as a listener service. The benefit of the xinetd method is that you can install by the ./fullinstall script which will take care of installing dependencies and configuration steps. Install...
by sirampadu
Wed Jul 26, 2017 9:07 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

At this point, the best course of action would be for you to go back through the installation being sure to complete all steps and let us know tomorrow if nrpe installs and runs correctly. Thank you. I have about 50 remote linux (rhel7) host to configure. Which configuration is more efficient stand...
by sirampadu
Tue Jul 25, 2017 4:31 pm
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

bolson wrote:

Code: Select all

yum -y install telnet
telnet localhost 5666

telnet localhost 5666
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
by sirampadu
Tue Jul 25, 2017 4:18 pm
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

bolson wrote:On the host to be monitored, run:

Code: Select all

service xinetd restart
telnet localhost 5666
What do you see?
service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service

telnet localhost 5666
-bash: telnet: command not found
by sirampadu
Tue Jul 25, 2017 3:34 pm
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

NRPE is not running. Please copy and paste the contents of /etc/xinetd.d/nrpe Thank you. I just notice the /etc/xinetd.d/nrpe does not exist on the Nagios monitoring server. The one i poster was from the client. sorry about the confusion. Nagios server ip (10.41.12.30): cat /etc/xinetd.d/nrpe cat: ...
by sirampadu
Tue Jul 25, 2017 11:53 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

cat /etc/xinetd.d/nrpe # default: off # description: NRPE (Nagios Remote Plugin Executor) service nrpe { disable = yes socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd only_from = 127.0...
by sirampadu
Tue Jul 25, 2017 11:49 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

/etc/xinetd.d/nrpe does not exsist on the Nagios server
by sirampadu
Tue Jul 25, 2017 11:39 am
Forum: Open Source Nagios Projects
Topic: Cannot write to pidfile
Replies: 24
Views: 19575

Re: Cannot write to pidfile

telnet localhost 5666 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused /usr/local/nagios/libexec/check_nrpe -H host_name -c check_mem '-a -w 20 -c 10' CHECK_NRPE: Error - Could not connect to host_name: Conn...