Services and Hosts

Mattia Martinello liste at mattiamartinello.com
Fri Dec 15 15:34:28 CET 2006


Hi.
In the definition of services, I have to specify which hosts belogs to 
which services, for example:

define service{
        use                             local-service
        host_name                       localhost
        service_description             Root Partition
        check_command                   check_local_disk!20%!10%!/
        }

Can I specify the relation between services and hosts in the hosts 
definition, instead of in the services definition?
For example:

define host{
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        check_period            24x7
        max_check_attempts      1
        contact_groups          admins
        notification_interval   30
        notification_period     24x7
        notification_options    d,u,r
        services            check_local_disk, check_local_procs, ..........
        }

Thank you very much and goodbye.

Mattia.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list