service_description woes -- Help!
Posted: Tue Mar 08, 2022 11:57 am
Blank/duplicate service_description issues with the following config. Can anyone see the issue? Thx.
define host {
name linux-snmp-host-template
use xiwizard_linuxsnmp_host
check_command check-fast-alive!!!!!!!!
parents localhost
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
icon_image snmppenguin.png
statusmap_image snmppenguin.png
_xiwizard linux_snmp
register 0
}
define service {
name linux-basic-service-template
max_check_attempts 3
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
active_checks_enabled 1
contacts nagiosadmin
_xiwizard linux_snmp
register 0
}
define service {
name linux-snmp-slash-size
service_description root_filesystem_usage
use linux-basic-service-template
check_command check_xi_service_snmp_linux_storage! --login=username --passwd=password --protocols=md5 -m "^/$" -w 91 -c 95 -f
register 0
}
define service {
name linux-snmp-app-size
service_description app_filesystem_usage
use linux-basic-service-template
check_command check_xi_service_snmp_linux_storage! --login=username --passwd=password --protocols=md5 -m "^/app$" -w 91 -c 95 -f
register 0
}
define host {
host_name samplehost
use linux-snmp-host-template
address 10.10.10.10
register 1
}
define service {
host_name samplehost
use linux-snmp-slash-size
register 1
}
define service {
host_name samplehost
use linux-snmp-app-size
register 1
}
define host {
name linux-snmp-host-template
use xiwizard_linuxsnmp_host
check_command check-fast-alive!!!!!!!!
parents localhost
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
icon_image snmppenguin.png
statusmap_image snmppenguin.png
_xiwizard linux_snmp
register 0
}
define service {
name linux-basic-service-template
max_check_attempts 3
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
active_checks_enabled 1
contacts nagiosadmin
_xiwizard linux_snmp
register 0
}
define service {
name linux-snmp-slash-size
service_description root_filesystem_usage
use linux-basic-service-template
check_command check_xi_service_snmp_linux_storage! --login=username --passwd=password --protocols=md5 -m "^/$" -w 91 -c 95 -f
register 0
}
define service {
name linux-snmp-app-size
service_description app_filesystem_usage
use linux-basic-service-template
check_command check_xi_service_snmp_linux_storage! --login=username --passwd=password --protocols=md5 -m "^/app$" -w 91 -c 95 -f
register 0
}
define host {
host_name samplehost
use linux-snmp-host-template
address 10.10.10.10
register 1
}
define service {
host_name samplehost
use linux-snmp-slash-size
register 1
}
define service {
host_name samplehost
use linux-snmp-app-size
register 1
}