Page 2 of 2
Re: Custom host Variables for services use
Posted: Tue Feb 01, 2011 4:53 pm
by mguthrie
Can you take a look at your /usr/local/nagios/etc/status.dat file and take a look at the actual command that's being sent with the variables in it? I'm looking for something like the following for one of your services that you're testing the ORACLESID. I just want to make sure the variable is being translated correctly.
Code: Select all
check_command=check_xi_host_ping!3000.0!80%!5000.0!100%
Re: Custom host Variables for services use
Posted: Tue Feb 01, 2011 5:46 pm
by Hendrik
Yup Seems it is not passing the --connect:
check_command=check_oracle_health_vartest!test!test!!connection-time!--warning 3!--critical 5!
Command Used:
$USER1$/check_oracle_health --username $ARG1$ --password $ARG2$ --connect $_ORACLE_SID$ --mode $ARG4$ $ARG5$ $ARG6$
Re: Custom host Variables for services use
Posted: Thu Feb 03, 2011 9:27 pm
by Hendrik
Hi guys, any ideas?
Re: Custom host Variables for services use
Posted: Fri Feb 04, 2011 12:42 pm
by mguthrie
Can you also check the objects.cache file for the check command for that service? If it's not in that file, there there might be a bug in NagiosQL that's causing that variable to get dropped before writing it to the config file.
You could test the theory by putting the service config in the static folder with the correct check command defined and restart nagios. If the results come back correctly then the above theory is probably correct.
Re: Custom host Variables for services use
Posted: Sun Feb 06, 2011 2:24 pm
by Hendrik
mguthrie wrote:Can you also check the objects.cache file for the check command for that service? If it's not in that file, there there might be a bug in NagiosQL that's causing that variable to get dropped before writing it to the config file.
You could test the theory by putting the service config in the static folder with the correct check command defined and restart nagios. If the results come back correctly then the above theory is probably correct.
Isnt it dropped from the Host config and just called from the service config, not 100% with you on what to do, sorry still new to Nagios
Re: Custom host Variables for services use
Posted: Wed Feb 09, 2011 10:54 am
by rdedon
The path for this would be /usr/local/nagios/var for the objects.cache