Problems with $ sign in service name
Posted: Fri Apr 15, 2011 4:22 am
I have several services configured in nagios, which looks like below
define service{
use generic-service;
host_name srv
service_description service
check_period 24x7
contact_groups one,two,three
notification_period 24x7
notification_options c,r
notification_interval 30
normal_check_interval 5
check_command check_snmp_service!^Service name.Servicedetails.$
}
at the end of "check_command" there is a dollar sign. Nagios works fine, but when this particular service is down, in nagios.log file there is
[1302818400] CURRENT SERVICE STATE: srv;Service name OK;HARD;1;1 services active (matching "^Service name.Servicedetails.$") : OK
$
first line is OK, but always after this check in nagios.log file there is a new line with dollar sign only in further line.
Of course in nagios (using web interface) there is a mess (nagios recognize this as 1st january 1970 and misinterprete it)
Could you please correct this bug? I need this dolar sign in command sometimes...
I'm using 3.2.3 version of nagios
regards,
Mariusz Preiss
define service{
use generic-service;
host_name srv
service_description service
check_period 24x7
contact_groups one,two,three
notification_period 24x7
notification_options c,r
notification_interval 30
normal_check_interval 5
check_command check_snmp_service!^Service name.Servicedetails.$
}
at the end of "check_command" there is a dollar sign. Nagios works fine, but when this particular service is down, in nagios.log file there is
[1302818400] CURRENT SERVICE STATE: srv;Service name OK;HARD;1;1 services active (matching "^Service name.Servicedetails.$") : OK
$
first line is OK, but always after this check in nagios.log file there is a new line with dollar sign only in further line.
Of course in nagios (using web interface) there is a mess (nagios recognize this as 1st january 1970 and misinterprete it)
Could you please correct this bug? I need this dolar sign in command sometimes...
I'm using 3.2.3 version of nagios
regards,
Mariusz Preiss