_______________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Sent: Thursday, December 06, 2007 2:29 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_x -> automatically make check_a, check_b,check_c? Is there a way to make a check_(whatever) and automatically create other checks?
For example, say I want to specify "check_cisco_pix", which automatically creates a lot of other "check_snmp" commands, and when you go to http://IP/nagios, you see like 10 checks that automatically got created on the fly. You probably want to just create a hostgroup "cisco_pix". Then you can create checks with "hostgroup_name cisco_pix" This way, any host that you put in the group cisco_pix will automatically get all of the checks you want. Something like this: define host { use generic-host host_name pix-firewall-4 hostgroups pix_firewalls } define hostgroup { hostgroup_name pix_firewalls alias pix_firewalls } define service{ use generic-service hostgroups pix_firewalls servicegroups notifications service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 contact_groups admins notification_interval 10 notification_period 24x7 check_command check_ping!100.0,10%!500.0,20% } -Jonah Horowitz ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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