Free variables don't stay in uppercase after save
Posted: Wed Apr 24, 2019 10:21 am
Since the update to Nagios XI 5.6 , I seem to be having issue with the free variables.
I use free variables in hosts config to set the value of some service checks, but since the update to Nagios XI 5.6 It no longer works.
ex:
I save them as _CURLOADCRIT & _CURLOADWARN but when I save and look at the config they appear as _curloadcrit & _curloadwarn.
Since this, the value I set in the host free variables aren't used for the service.
define host {
host_name host1
use hosttemplate1
alias host1
address 127.0.0.1
hostgroups hostgroup1
_curloadcrit 6,5,4
_curloadwarn 5,4,3
register 1
}
define service {
service_description Current Load
use servicetemplate1
hostgroup_name hostgroup1
display_name Current+Load
check_command check_nrpe_args!check_load!$_HOSTCURLOADWARN$!$_HOSTCURLOADCRIT$!!!!!
first_notification_delay 15
notification_period 24x7
register 1
}
I use free variables in hosts config to set the value of some service checks, but since the update to Nagios XI 5.6 It no longer works.
ex:
I save them as _CURLOADCRIT & _CURLOADWARN but when I save and look at the config they appear as _curloadcrit & _curloadwarn.
Since this, the value I set in the host free variables aren't used for the service.
define host {
host_name host1
use hosttemplate1
alias host1
address 127.0.0.1
hostgroups hostgroup1
_curloadcrit 6,5,4
_curloadwarn 5,4,3
register 1
}
define service {
service_description Current Load
use servicetemplate1
hostgroup_name hostgroup1
display_name Current+Load
check_command check_nrpe_args!check_load!$_HOSTCURLOADWARN$!$_HOSTCURLOADCRIT$!!!!!
first_notification_delay 15
notification_period 24x7
register 1
}