sorry for the late response i don`t get notification for new posts (need to fix that with configuration)...
the hosts belong to the host groups from within host group definition using the "members" directive
Code: Select all
###############################################################################
#
# Host template configuration file
#
# Created by: Nagios QL Version 3.2.0
# Date: 2014-08-19 16:46:52
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define host {
name Clusters
alias Linux Cluster Behind Cisco BB 3rd floor
parents Cisco_3rd_floor
check_command check-host-alive
initial_state o
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options d,u,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
icon_image rack_linux.png
statusmap_image rack_linux.png
register 0
}
define host {
name Clusters-Dell
alias Linux Cluster Behind Dell-Force10 3rd floor
parents Dell_Switch-force10
check_command check-host-alive
use generic-switch
initial_state o
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options d,u,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
icon_image rack_linux.png
statusmap_image rack_linux.png
register 0
}
define host {
name generic-host
check_command check_ping!100.0,20%!500.0,80%
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 120
notification_period workhours
notification_options d,u,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
register 0
}
define host {
name generic-printer
check_command check-host-alive
use generic-host
max_check_attempts 10
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 30
notification_period workhours
notification_options d,r
statusmap_image printer.png
register 0
}
define host {
name generic-router
use generic-switch
initial_state o
max_check_attempts 10
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options d,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
icon_image router.gif
statusmap_image router.gd2
register 0
}
define host {
name generic-switch
check_command check-host-alive
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 10
notification_period 24x7
notification_options d,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
icon_image switch.gif
statusmap_image switch.gd2
register 0
}
define host {
name linux-server
check_command check-host-alive
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 24x7
check_freshness 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options d,u,r
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
register 0
}
define host {
name windows-server
hostgroups windows-servers
check_command check-host-alive
use generic-host
max_check_attempts 10
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,r
register 0
}
###############################################################################
#
# Host template configuration file
#
# END OF FILE
#
###############################################################################
Code: Select all
###############################################################################
#
# Host group configuration file
#
# Created by: Nagios QL Version 3.2.0
# Date: 2014-08-19 16:49:30
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define hostgroup {
hostgroup_name Altix-Filer
alias Altix Cluster
members cl-tlv-n1001,cl-tlv-n1002,cl-tlv-n1003,cl-tlv-n1004,cl-tlv-n1005,cl-tlv-n1006,cl-tlv-n1007,cl-tlv-n1008,cl-tlv-n1009,cl-tlv-n1010,cl-tlv-n1011,cl-tlv-n1012,cl-tlv-n1013,cl-tlv-n1014,cl-tlv-n1015,cl-tlv-n1016,cl-tlv-n1017,cl-tlv-n1018,cl-tlv-n1019,cl-tlv-n1020,cl-tlv-n1021,cl-tlv-n1022,cl-tlv-n1023,cl-tlv-n1024,cl-tlv-n1025,cl-tlv-n1026,cl-tlv-n1027,cl-tlv-n1028,cl-tlv-n1029,cl-tlv-n1030,cl-tlv-n1031,cl-tlv-n1032
register 1
}
define hostgroup {
hostgroup_name Altix-TLV
alias Altix Cluster
register 1
}
define hostgroup {
hostgroup_name Dell-Tlv
alias Dell Cluster
members cl-tlv-n3001,cl-tlv-n3002,cl-tlv-n3003,cl-tlv-n3004,cl-tlv-n3005,cl-tlv-n3006,cl-tlv-n3007,cl-tlv-n3008,cl-tlv-n3009,cl-tlv-n3010,cl-tlv-n3011,cl-tlv-n3012,cl-tlv-n3013,cl-tlv-n3014,cl-tlv-n3015,cl-tlv-n3016,cl-tlv-n3017,cl-tlv-n3018,cl-tlv-n3019,cl-tlv-n3020,cl-tlv-n3021,cl-tlv-n3022,cl-tlv-n3023,cl-tlv-n3024,cl-tlv-n3025,cl-tlv-n3026,cl-tlv-n3027,cl-tlv-n3028,cl-tlv-n3029,cl-tlv-n3030,cl-tlv-n3031,cl-tlv-n3032
register 1
}
define hostgroup {
hostgroup_name Icluster
alias ICluster
members cl-tlv-n2001,cl-tlv-n2002,cl-tlv-n2003,cl-tlv-n2004,cl-tlv-n2005,cl-tlv-n2006,cl-tlv-n2007,cl-tlv-n2008,cl-tlv-n2009,cl-tlv-n2010,cl-tlv-n2011,cl-tlv-n2012,cl-tlv-n2013,cl-tlv-n2014,cl-tlv-n2015,cl-tlv-n2016,cl-tlv-n2017,cl-tlv-n2018,cl-tlv-n2019,cl-tlv-n2020,cl-tlv-n2021,cl-tlv-n2022,cl-tlv-n2023,cl-tlv-n2024,cl-tlv-n2025,cl-tlv-n2026,cl-tlv-n2027,cl-tlv-n2028,cl-tlv-n2029,cl-tlv-n2030,cl-tlv-n2031,cl-tlv-n2032
register 1
}
define hostgroup {
hostgroup_name linux-servers
alias Linux Servers
members localhost
register 1
}
define hostgroup {
hostgroup_name network-printers
alias Network Printers
register 1
}
define hostgroup {
hostgroup_name Octane 3
alias Octane 3 Cluster
members cl-tlv-n001,cl-tlv-n002,cl-tlv-n003,cl-tlv-n004,cl-tlv-n005,cl-tlv-n006,cl-tlv-n007,cl-tlv-n008
register 1
}
define hostgroup {
hostgroup_name Routers
alias Network Routers
members ISP_CISCO_Router_IL,Router_US
register 1
}
define hostgroup {
hostgroup_name switches
alias Network Switches
members cisco_2nd_flr,Cisco_3rd_floor
register 1
}
define hostgroup {
hostgroup_name windows-servers
alias Windows Servers
register 1
}
###############################################################################
#
# Host group configuration file
#
# END OF FILE
#
###############################################################################
i can`t find any hosts.cfg file hence the nagios.cfg files contains only cfg_dir=/etc/nagiosql/hosts which is a directory. let me know if you need any more information and thanks for replying and trying to help,