Re: [Nagios-users] Errors from check_nagios -v
-Original Message- From: John Tabasz (jtabasz) [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 5:17 PM To: Marc Powell; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Errors from check_nagios -v Here is the output of the check_nagios -v /opt/nagios/etc/nagios.cfg: Checking services... Checked 10 services. Checking hosts... Warning: Host 'atest11idev1' has no services associated with it! Warning: Host 'dev5b' has no services associated with it! Warning: Host 'dev5e' has no services associated with it! Warning: Host 'dev5i' has no services associated with it! Warning: Host 'dev5k' has no services associated with it! Warning: Host 'dev5v' has no services associated with it! I think if you correct the service template name problem mentioned by others that I missed you should be OK. -- Marc - 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/ ___ 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] Errors from check_nagios -v
I was hoping that would be the case as well. If we're talking about the error I made by omitting the template string in use-generic-template line in the services.cfg file. I fixed that and rechecked the config files using nagios -s nagios.cfg and restarted the nagios process. Still get the no services associated with $hostname messages. Still no automatic running of the ping_check command. Do I need to specify a check_command argument in the host declaration in hosts.cfg? Is my services.cfg file looking the way it is supposed to? Do I need to include the hosts in a service group? Thanks, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Thursday, October 04, 2007 7:19 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Errors from check_nagios -v -Original Message- From: John Tabasz (jtabasz) [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 5:17 PM To: Marc Powell; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Errors from check_nagios -v Here is the output of the check_nagios -v /opt/nagios/etc/nagios.cfg: Checking services... Checked 10 services. Checking hosts... Warning: Host 'atest11idev1' has no services associated with it! Warning: Host 'dev5b' has no services associated with it! Warning: Host 'dev5e' has no services associated with it! Warning: Host 'dev5i' has no services associated with it! Warning: Host 'dev5k' has no services associated with it! Warning: Host 'dev5v' has no services associated with it! I think if you correct the service template name problem mentioned by others that I missed you should be OK. -- Marc - 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/ ___ 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 - 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/ ___ 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] Errors from check_nagios -v
Hi, Solaris 2.8; Nagios 2.9; It's a new installation and I'm trying to figure out why the hosts-alive is not running. All clients are status PENDING on the web page. I can 'reschedule the next test for this host' to do a one time check. This is not what I had in mind however. Any input is appreciated. Thanks, John I have some hosts defined in hosts.cfg: define host { namegeneric-host-template notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 contact_groups admins register0 } define host { # Name of host template to use use generic-host-template host_name dev5b alias dev5b address 10.1.1.10 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_optionsd,u,r } define host { # Name of host template to use use generic-host-template host_name dev5b alias dev5b address 10.1.1.11 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_optionsd,u,r } Etc. These hosts are part of the hostgroups.cfg file: define hostgroup{ hostgroup_name testing-nagios-install-group alias Nagios Testing Servers # contact_groups admins # Members in this case means members of the hostgroup, i.e. hosts. membersdev5b,dev5e,dev5i,dev5k,dev5v } From the commands.cfg file: # 'check-host-alive' command definition define command{ command_namecheck-host-alive command_line$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 500 0.0,100% -t 3 -m 1 } # 'check_ping' command definition define command{ command_namecheck_ping command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } From the services.cfg file: define service{ namegeneric-service-template active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } # Name of service template to use usegeneric-service host_name dev5b,dev5e,dev5i,dev5k,dev5v service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } I still get this output from check_nagios -v: Warning: Host 'dev5b' has no services associated with it! Warning: Host 'dev5e' has no services associated with it! Warning: Host 'dev5i' has no services associated with it! Warning: Host 'dev5k' has no services associated with it! Warning: Host 'dev5v' has no services associated with it! - 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/ ___ 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] Errors from check_nagios -v
One thing I see wrong with your config: use generic-service should be use generic-service-template -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Tabasz (jtabasz) Sent: Wednesday, October 03, 2007 1:22 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Errors from check_nagios -v Hi, Solaris 2.8; Nagios 2.9; It's a new installation and I'm trying to figure out why the hosts-alive is not running. All clients are status PENDING on the web page. I can 'reschedule the next test for this host' to do a one time check. This is not what I had in mind however. Any input is appreciated. Thanks, John I have some hosts defined in hosts.cfg: define host { namegeneric-host-template notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 contact_groups admins register0 } define host { # Name of host template to use use generic-host-template host_name dev5b alias dev5b address 10.1.1.10 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_optionsd,u,r } define host { # Name of host template to use use generic-host-template host_name dev5b alias dev5b address 10.1.1.11 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_optionsd,u,r } Etc. These hosts are part of the hostgroups.cfg file: define hostgroup{ hostgroup_name testing-nagios-install-group alias Nagios Testing Servers # contact_groups admins # Members in this case means members of the hostgroup, i.e. hosts. membersdev5b,dev5e,dev5i,dev5k,dev5v } From the commands.cfg file: # 'check-host-alive' command definition define command{ command_namecheck-host-alive command_line$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 500 0.0,100% -t 3 -m 1 } # 'check_ping' command definition define command{ command_namecheck_ping command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } From the services.cfg file: define service{ namegeneric-service-template active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } # Name of service template to use usegeneric-service host_name dev5b,dev5e,dev5i,dev5k,dev5v service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } I still get this output from check_nagios -v: Warning: Host 'dev5b' has no services associated with it! Warning: Host 'dev5e' has no services associated with it! Warning: Host 'dev5i' has no services associated with it! Warning: Host 'dev5k' has no services associated with it! Warning: Host 'dev5v' has no services associated with it! -- --- 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/ ___ 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 - 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/ ___ 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
Re: [Nagios-users] Errors from check_nagios -v
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Tabasz (jtabasz) Sent: Wednesday, October 03, 2007 3:22 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Errors from check_nagios -v Hi, Solaris 2.8; Nagios 2.9; It's a new installation and I'm trying to figure out why the hosts-alive is not running. All clients are status PENDING on the web page. I can 'reschedule the next test for this host' to do a one time check. This is not what I had in mind however. Any input is appreciated. (included definitions look good. Thanks!) I still get this output from check_nagios -v: Warning: Host 'dev5b' has no services associated with it! Warning: Host 'dev5e' has no services associated with it! Warning: Host 'dev5i' has no services associated with it! Warning: Host 'dev5k' has no services associated with it! Warning: Host 'dev5v' has no services associated with it! Did you remember to include services.cfg as a cfg_file in nagios.cfg? What's the full output of /path/to/nagios -v /path/to/nagios.cfg? -- Marc - 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/ ___ 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