We have a large number of Oracle databases that are not in the standard Oracle ports. (dozens of services, and > 120 hosts).
I'm seemingly not getting host variables passed into the service checks.
If my check script has the following host:
Code:
define host{
...
name Corpprod.corp.net
...
address Corpprod.corp.net
check_command check_host_alive
#Now, for the services running on this host
_CHECK_HTTP_DOMAIN_NAME $HOSTADDRESS$
_FORMS_LISTENER_PORT 8000
_CHECK_HTTP_PORT 8000
_CHECK_HTTP_URI /
_CHECK_FORMS_URI /forms
The service definition is:
Code:
service_description State Forms listener
use 5min_short,forms-service
register 0
host_name oracle-forms
check_command check_forms
_DETAILEDESC Check that Forms listener is up and running, just seeing http://$HOSTNAME$:$_HOSTFORMS_LISTENER_PORT$/forms
_IMPACT Critical: Can't launch Forms applications.
_FIXACTIONS Check OFM (Oracle Fusion Middleware - Forms and Reports) service status, may be start it.
and the actual check command:
Code:
define command {
command_name check_forms
command_line $NAGIOSPLUGINSDIR$/check_http -H $HOSTADDRESS$ -u "/forms" -p $_CHECK_HTTP_PORT$
}
But I get a 'man page'. it turns out that although $HOSTADDRESS$ is updated, $_CHECK_HTTP_PORT$ is blank.
Why does HOSTADDRESS update but not _CHECK_HTTP_PORT?
Thanks,
== John ==