Am 10.07.2017 um 15:00 schrieb Christian Moreno Moreno:

Greetings,

> But we got one Syntax Error for the $:
>
> /etc/init.d/icinga2 checkconfig
> [....] checking Icinga2 configuration
> information/cli: Icinga application loader (version: r2.6.3-1)
> information/cli: Loading configuration file(s).
> critical/config: Error: syntax error, unexpected $undefined
> Location: in
> /etc/icinga2/zones.d/global-templates/services/check_logfiles.conf:
> 62:28-62:28
> /etc/icinga2/zones.d/global-templates/services/check_logfiles.conf(61):
> /etc/icinga2/zones.d/global-templates/services/check_logfiles.conf(62):       
>  
> vars.ssh_command = '/usr/lib/nagios/plugins/check_file_age
> /var/log/price-comparison/access.$(date +%Y-%m-%d).log -w 68400 -c 68400'
> /etc/icinga2/zones.d/global-templates/services/check_logfiles.conf(63):       
>  
> assign where "frontend-ipc" in host.groups
>
> [FAIL] checking Icinga2 configuration. Check
> '/var/log/icinga2/startup.log' for details. ... failed!
>
> We tryed with \$ but it doesnt run... has someone one idea?

Did you try it with $$ ?

To quote the documentation:

When using the $ sign as single character you must escape it with an
additional dollar character ($$).

Best regards,
Stephan
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to