Re: [Nagios-users] Logging issues
Hi, Am Donnerstag 10 November 2011, 05:50:32 schrieb Alex: I can tcpdump traffic from 64.XX.YY.2, so Im confident it is reaching the server and no firewall rules are involved. Other services, such as checking port 25, work successfully. [...] server_address=127.0.0.1 ... You bound nrpe on your loopback interface. You have to enter the IP of your network interface connected to the rest of the world and restart nrpe. Yes, I was experimenting and realized this afterwards. The real problem turned out to be an incorrect firewall rule blocking access. The problem I'm still having now, however, is with logging on the client. I have debug=1, but there is nothing written to syslog. It writes the startup messages, but never any messages indicating the server had queried it: Nov 10 20:02:58 fc14 nrpe[606]: Caught SIGTERM - shutting down... Nov 10 20:02:58 fc14 nrpe[606]: Daemon shutdown Nov 10 20:02:58 fc14 nrpe[9330]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Nov 10 20:02:58 fc14 nrpe[9331]: Starting up daemon Nov 10 20:02:58 fc14 nrpe[9331]: Listening for connections on port 5666 Nov 10 20:02:58 fc14 nrpe[9331]: Allowing connections from: 127.0.0.1,64.XX.XX.2 Is there something further that needs to be done for it to log other status messages? Thanks, Alex -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Logging issues
Hi, I have a fedora15 server as a client and another fedora15 server as a server and having some trouble with connection refused messages, but don't see anything in the logs to indicate what the problem might be. It seems all the nrpe services are being rejected, despite nrpe running successfully: Nov 9 23:40:18 fc14 nrpe[2157]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Nov 9 23:40:18 fc14 nrpe[2158]: Starting up daemon Nov 9 23:40:18 fc14 nrpe[2158]: Listening for connections on port 5666 Nov 9 23:40:18 fc14 nrpe[2158]: Allowing connections from: 127.0.0.1,192.168.1.100,64.XX.YY.2 I can tcpdump traffic from 64.XX.YY.2, so Im confident it is reaching the server and no firewall rules are involved. Other services, such as checking port 25, work successfully. How can I configure nrpe to log attempts to communicate with it to the logs? I've set debug=1 and log_facility=daemon, but it still doesn't record any activity. I've included my /etc/nagios/nrpe.cfg file from the client below in hopes it will help troubleshoot this: log_facility=daemon pid_file=/var/run/nrpe/nrpe.pid server_port=5666 server_address=127.0.0.1 nrpe_user=nrpe nrpe_group=nrpe allowed_hosts=127.0.0.1,64.XX.YY.2 dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 include_dir=/etc/nrpe.d/ command[check_disk_boot]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /boot command[check_disk_home]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /home command[check_disk_root]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p / command[check_mdstat_boot]=/usr/lib64/nagios/plugins/check_mdstat md0 command[check_mdstat_root]=/usr/lib64/nagios/plugins/check_mdstat md1 command[check_mdstat_home]=/usr/lib64/nagios/plugins/check_mdstat md2 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 35,30,25 -c 30,25,20 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c 220 command[check_mailq_pre]=/usr/lib64/nagios/plugins/check_mailq -w 4 -c 6 command[check_dns]=/usr/lib64/nagios/plugins/check_dns -H example.com -s 192.168.1.1 -a 8.8.8.8 command[check_procs_named]=/usr/lib64/nagios/plugins/check_procs -w 1:7 -c 1:10 -C named -u named command[check_procs_master]=/usr/lib64/nagios/plugins/check_procs -w 1:1 -c 1:1 -C master -u root command[check_procs_sshd]=/usr/lib64/nagios/plugins/check_procs -w 1: -c 1: -C sshd command[check_procs_Z]=/usr/lib64/nagios/plugins/check_procs -w 4 -c 6 -s Z command[check_procs_D]=/usr/lib64/nagios/plugins/check_procs -w 15 -c 20 -s D command[check_procs_total]=/usr/lib64/nagios/plugins/check_procs -w 1:210 -c 1:230 command[check_ntp]=/usr/lib64/nagios/plugins/check_ntp -H localhost command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 Thanks for any ideas. Alex -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Logging issues
Hi Alex, Am Donnerstag 10 November 2011, 05:50:32 schrieb Alex: I can tcpdump traffic from 64.XX.YY.2, so Im confident it is reaching the server and no firewall rules are involved. Other services, such as checking port 25, work successfully. [...] server_address=127.0.0.1 # SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd You bound nrpe on your loopback interface. You have to enter the IP of your network interface connected to the rest of the world and restart nrpe. Regards, Axel nrpe_user=nrpe nrpe_group=nrpe allowed_hosts=127.0.0.1,64.XX.YY.2 dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 include_dir=/etc/nrpe.d/ command[check_disk_boot]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /boot command[check_disk_home]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /home command[check_disk_root]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p / command[check_mdstat_boot]=/usr/lib64/nagios/plugins/check_mdstat md0 command[check_mdstat_root]=/usr/lib64/nagios/plugins/check_mdstat md1 command[check_mdstat_home]=/usr/lib64/nagios/plugins/check_mdstat md2 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 35,30,25 -c 30,25,20 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c 220 command[check_mailq_pre]=/usr/lib64/nagios/plugins/check_mailq -w 4 -c 6 command[check_dns]=/usr/lib64/nagios/plugins/check_dns -H example.com -s 192.168.1.1 -a 8.8.8.8 command[check_procs_named]=/usr/lib64/nagios/plugins/check_procs -w 1:7 -c 1:10 -C named -u named command[check_procs_master]=/usr/lib64/nagios/plugins/check_procs -w 1:1 -c 1:1 -C master -u root command[check_procs_sshd]=/usr/lib64/nagios/plugins/check_procs -w 1: -c 1: -C sshd command[check_procs_Z]=/usr/lib64/nagios/plugins/check_procs -w 4 -c 6 -s Z command[check_procs_D]=/usr/lib64/nagios/plugins/check_procs -w 15 -c 20 -s D command[check_procs_total]=/usr/lib64/nagios/plugins/check_procs -w 1:210 -c 1:230 command[check_ntp]=/usr/lib64/nagios/plugins/check_ntp -H localhost command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 Thanks for any ideas. Alex --- --- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when ::: reporting any issue. Messages without supporting info will risk being ::: sent to /dev/null -- Axel Rosenski - Administration - __ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Geschäftsführer: Carsten Kellmann Registergericht Gießen HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosen...@wave-computer.de http://www.wave-computer.de -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null