Eu fiz uma configuração no nagios para teste, porém todas as maquinas que colocam dão como down, já tentei vários comandos e os do ips da minha rede interna, uma maquina, que é na qual faço os testes, e em um ipfone, por um tempo funcionou, mas depois que tentei monitoraração com o comando check_udp, sempre aparece assim.
nagios -v /etc/nagios/nagios.conf Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 1 services. Checking hosts... Checked 1 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 24 commands. Checking time periods... Checked 1 time periods. Checking extended host info definitions... Checked 0 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check ================================== hosts.conf define host{ name nagiosHost event_handler_enabled 1 flap_detection_enabled 1 max_check_attempts 5 notification_interval 30 notification_options u,r notification_period 24x7 notifications_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nagios register 0 } define host{ use nagiosHost host_name nagiosTeste alias Monitoracao TCP address 10.0.0.5 check_command check-host-alive hostgroups nagios } ================================= services.conf define service{ name nagiosTemplate event_handler_enabled 1 flap_detection_enabled 1 active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 check_period 24x7 failure_prediction_enabled 1 is_volatile 0 normal_check_interval 5 max_check_attempts 2 retry_check_interval 1 contact_groups nagios notification_interval 30 notification_options c,r notification_period 24x7 notifications_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define service{ use nagiosTemplate name CheckTTL host_name nagiosTeste service_description TTL check_command check-host-alive } essa é uma saída do log /var/log/nagios/nagios.log após a iniciação do serviço. [1193184327] Nagios 2.9 starting... (PID=4286) [1193184327] LOG VERSION: 2.0 [1193184327] Finished daemonizing... (New PID=4287) [1193184687] HOST ALERT: nagiosTeste;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 2.37 ms [1193184687] HOST NOTIFICATION: nagios;nagiosTeste;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 2.37 ms [1193184687] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 2.9 *****\n\nNotification Type: RECOVERY\nHost: nagiosTeste\nState: UP\nAddress: 10.0.0.5\nInfo: PING OK - Packet loss = 0%, RTA = 2.37 ms\n\nDate/Time: Tue Oct 23 22:11:27 BRST 2007\n" | /bin/mail -s "Host UP alert for nagiosTeste!" [EMAIL PROTECTED]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... valeu -- ++||==||==||==||==||==||==||==||++ http://flipe.multiply.com http://www.myspace.com/flipeicl http://flipe.palcomp3.com.br http://www.bandasdegaragem.com.br/flipe http://www.estudiolivre.org/tiki-index.php?page=Eletronico+neural&bl http://fiberonline.uol.com.br/flipe ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -- [email protected] mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
