Virtual Services???

Jason Lancaster jlancaster at affinity.com
Fri May 9 17:47:14 CEST 2003


Virtual Services???I'm not really understanding what you mean by a virtual service. What I was able to get out of this email was that you want to define a service such as check_http to check the same "host" multiple times, for example:

define service{
    host_name www.domain.com
    service_description HTTP check
}

...but have this issue it's results to more than one host. If you try and define that service to check host www.domain.com twice, you will get an error. Therefore, you need 2 hosts defined in your hosts.cfg like:

define host{
  host_name www.domain.com.internal
  address 127.0.0.1
}

define host{
  host_name www.domain.com.virtual
  address 127.0.0.1
}

Then define a service to check_http for each of these hosts, and you'll be ok. Just make sure check_http uses the ip address and not the hostname.

define service{
    host_name www.domain.com.internal
    service_description HTTP check
}

define service{
    host_name www.domain.com.virtual
    service_description HTTP check
}

Hope this helps!

-Jason
  ----- Original Message ----- 
  From: Miguel A. Torres 
  To: nagios-users at lists.sourceforge.net 
  Sent: Friday, May 09, 2003 10:40
  Subject: [Nagios-users] Virtual Services???


  Hello, 

  I'm configuring nagios to monitoring a lot of services. I need to group many services in a "Virtual service" who it is not associated to a host. For example:

  I have 3 machines with webs servers, so I have configured 3 independent services associated with it`s respective host. Now I want to configure a "virtual service" who include those 3 services. I have been reading all the documentation for nagios and I don`t find how can I make it. 

  My question is:    Is it possible with nagios? 

  Thanks and excuse my poor english. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030509/66a75477/attachment.html>


More information about the Users mailing list