> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of dererk > Sent: Thursday, January 19, 2006 11:58 AM > To: [email protected] > Subject: [Nagios-users] Check more than one service > > Hi all! > > New using this great soft, I've read lightly documentation, and It seems > I've had problems adding more than one service check to a host. For > Example, check_smtp and check_pop. > If I declare only one of them on hosts.cfg, It works fine. > > Declarations on services.cfg are correct, just, I can't add more than > one...
Are you seeing a specific error? > How could I do that? I'm not sure what you've defined so far but generally the steps are straightforward. For the documentation links below I'll presume that you're using 1.3. If you're using 2.x change the 1_0 to 2_0 in the links -- - Create a host definition for the host in question. The check_command should be something simple and designed to tell if the host is up or not. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host - Create one service definition _per service_ you want to monitor on that host. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service - Add the host to a hostgroup - http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostgroup For example -- # Host definition for example_host.domain.foo define host { use generic-host host_name example_host alias This is my host address the.ip.add.ress check_command check_host_alive } # Service definition for PING on example_host.domain.foo define service { use generic-service host_name example_host service_description PING contact_groups oncall check_command check_ping } # Service definition for CACHING on example_host.domain.foo define service { use generic-service host_name example_host service_description CACHING contact_groups oncall check_command check_caching } define hostgroup{ hostgroup_name my_example_hostgroup alias Wheeeeeee contact_groups oncall members example_host } I've left out the generic-host and generic-service template definitions for brevity. -- Marc ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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
