Hi all, I'm new to Nagios and I'm attempting to configure passive checks on a Windows 2003 box using NC_Net. I've read multiple documents and I'm still having trouble. I'm hoping someone can help me.
My setup is a Nagios server on Fedora Core 6 server and NC_net on the Windows box. These computers are both on the same LAN with no firewall between them. This configuration works and I'm receiving data when using active checks. I can't get it to work using passive checks. I next attempted to configure passive checks on the Windows box. This flat-out doesn't work. I've followed the instructions from http://www.shatterit.com/nc_net/files/readme.html#Installation but I'm having trouble understanding what is occurring. It seems to me that nc_net is 3 years old and this could be a problem as my Windows computer has .net 2.0 and won't install .net 1.1 unless I remove .net 2.0. I can't confirm/deny this as the problem though because the nc_net service starts up. I'm enclosing my startup.cfg & passive.cfg from the windows box and the nagios.cfg and windows.cfg from the fedora host. When I use active checks nc_net binds to port 12489 which is verified by netstat -a. When I reconfigure to passive checks I don't see it binding to port 5667. I'm not clear if I should be seeing anything bound on port 5667 when using passive checks, perhaps someone can clear that up for me or at least point me in the right direction. Thank you,, Eric -------------- NAGIOS.CFG on fedora ------------------------------------ log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/objects/commands.cfg cfg_file=/usr/local/nagios/etc/objects/contacts.cfg cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg cfg_file=/usr/local/nagios/etc/objects/templates.cfg cfg_file=/usr/local/nagios/etc/objects/localhost.cfg cfg_file=/usr/local/nagios/etc/objects/windows.cfg object_cache_file=/usr/local/nagios/var/objects.cache precached_object_file=/usr/local/nagios/var/objects.precache resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.dat status_update_interval=10 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd external_command_buffer_slots=4096 lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp check results, etc. temp_path=/tmp event_broker_options=-1 log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=10 max_check_result_reaper_time=30 check_result_path=/usr/local/nagios/var/spool/checkresults max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=0 auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=0 state_retention_file=/usr/local/nagios/var/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 obsess_over_services=0 translate_passive_host_checks=0 passive_host_checks_are_soft=1 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us p1_file=/usr/local/nagios/bin/p1.pl enable_embedded_perl=1 use_embedded_perl_implicitly=1 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 [EMAIL PROTECTED] [EMAIL PROTECTED] daemon_dumps_core=0 use_large_installation_tweaks=0 enable_environment_macros=1 #free_child_process_memory=1 #child_processes_fork_twice=1 debug_level=0 debug_verbosity=1 debug_file=/usr/local/nagios/var/nagios.debug max_debug_file_size=1000000 -------------- WINDOWS.CFG on fedora ------------------------------------ define host{ use windows-server ; Inherit default values from a template host_name server ; The name we're giving to this host alias Etronics Windows Server ; A longer name associated with the host address 192.168.50.224 ; IP address of the host } define hostgroup{ hostgroup_name windows-servers ; The name of the hostgroup alias Windows Servers ; Long name of the group } define service{ use generic-service host_name server service_description NSClient++ Version check_command check_nt!CLIENTVERSION } define service{ use generic-service host_name server service_description Uptime check_command check_nt!UPTIME } define service{ use generic-service host_name server service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service host_name server service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service host_name server service_description C:\ Drive Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service host_name server service_description W3SVC check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC } define service{ use generic-service host_name server service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe } -------------- STARTUP.CFG on windows server ------------------------------------ # ACTIVE CHECK SECTION active_check false # lock_active_config false # port 12489 # active_ip_accept_list false # verbose_logging false # client_timeout 20000 # socket_timeout 2000 # # PASSIVE CHECK SECTION # --------------------- passive_check true passive_alwayson true lock_passive_config false interval_passive 5 interval_div_passive 1 perfdata_format 2 embedded_send_nsca true port_passive 5667 host_passive server pass_passive ip_passive 192.168.50.225 encrip_passive 1 Passive_timeout 10 external_send_nsca false # external_send_nsca_app C:\send nsca\ # external_send_nsca_ip 127.0.0.1 # external_send_nsca_port 5667 # external_send_nsca_timeout 10 # COMMAND SPECIFIC CONFIGURATION # ------------------------------ cpu_single false cpu_max_interval 60 cpu_times_per_min 12 # PERFORMANCE COUNTERS # -------------------- # sampledelay 15 # EVENTLOG # -------- #evntlog_desc_trim 100 #regex_options Multiline,IgnorePatternWhitespace,IgnoreCase # EXTERNAL SCRIPTS # ---------------- # allow_run_scripts true #script_timeout 30 # do_not_blaim_nc_net false # NC_NET ENGINE # ------------- #evntlog_input_trim 1000 #trysleep false #error_value_on true #error_value_show_1 false # PASSIVE HOST CHECKS # ------------------- #hostcheck_alwayson true #hostcheck_interval 5 #hostcheck_interval_div 1 hostcheck true #hostcheckX false hostcheck_port 5667 #hostcheck_portX 5667 hostcheck_hostid server #hostcheck_hostidX NC_Net_host_ID hostcheck_pass #hostcheck_passX hostcheck_ip 192.168.50.225 #hostcheck_ipX 127.0.0.1 #hostcheck_enc 1 #hostcheck_appX 1 hostcheck_timeout 10 #hostcheck_timeoutX 10 -------------- PASSIVE.CFG on windows server------------------------------------ 1 clientversion 2 cputotal -l 10,80,90,5,20,90 3 uptime 4 usedspace -l C -w 90 -c 97 4 usedspace -l C -w 50 -c 90 4 usedspace -l C -w 20 -c 50 5 servicestate -d showall -l NC_Net 7 Memory Use 7 Memory Use -c 90 -w 80 7 Memory Use -c 90 -w 20 7 Memory Use -c 10 -w 5 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %%.4f %" -w 50 -c 60 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %.3f %" -w 20 -c 60 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %.2f %" -w 20 -c 30 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %.0f %" -w 10 -c 5 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %.1F %" -w 50 -c 5 8 Perf Counter -l "\Paging file(_total)\% usage","Paging File usage is %%.5F %" -w 50 -c 40 10 Instances -l System,Process,Memory,Processor 11 EventLog -l Application,any,10,1,NC_Net,-2,start,stop,0 11 EventLog -l Application,any,10,1,NC_Net,-2,start,stop,0 -w 5 -c 20 13 freespace -l C -w 10 -c 5 13 freespace -l C -w 50 -c 10 13 freespace -l C -w 70 -c 60 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] 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
