parent_hosts

Jasmine Chua jasmine.chua at securecirt.com
Fri Dec 6 03:44:53 CET 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Nagios users,

I have a problem in implementing parent_hosts in the host definition, when I 
do a -v on Nagios, it reports that it could not add that object property. I 
have upgraded to Nagios 1.0 .. I could not figure out why.. HELP please..!

define host{
        name                            monitoring-host ; The name of this 
host template - referenced in other host definitions, used for temp
late recursion/resolution
        notifications_enabled           1       ; Host notifications are 
enabled
        event_handler_enabled           1       ; Host event handler is 
enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information 
across program restarts
        retain_nonstatus_information    1       ; Retain non-status 
information across program restarts

        register                        0       ; DONT REGISTER THIS 
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }

# 'HostABC' host definition
define host{
        use                     monitoring-host

        host_name               HostABC
        alias                   abc server
        address                 xxx.xxx.xxx.xxx
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   1
        notification_period     24x7
        notification_options    d,u,r
        }


# generic-host definition template
define host{
        name                            generic-host       ; The name of this 
host template - referenced in other host definitions, used for temp
late recursion/resolution
        notifications_enabled           0       ; Host notifications are 
enabled
        event_handler_enabled           1       ; Host event handler is 
enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information 
across program restarts
        retain_nonstatus_information    1       ; Retain non-status 
information across program restarts

parent_hosts				HostABC

        register                        0       ; DONT REGISTER THIS 
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }


- -- 
Jasmine Chua
Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd)
http://www.securecirt.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE98A8tNgvTa7Hj2AURAudoAJ904aaGnYlN3KEvw0mf5qusjEcDRwCfVdtI
2mcUIxun2pEdgZNAgIDsDx8=
=uXzT
-----END PGP SIGNATURE-----



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list