Re: Service name with whitespace

Ron Kelley <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
…doesn’t answer your question directly, but I use underscores in place of spaces.  Like this “check host “Test_Host”.



> On Jun 26, 2019, at 8:35 AM, Robert Ehrenleitner <[email protected]> wrote:
> 
> Hello,
>  
> I just tried to give a service a somewhat more legible name containing a whitespace and realised that it is not allowed:
>  
> check host "Test Host" host with address 192.168.10.140
>    if failed ping then alert
>  
> When reloading monit, it says:
>  
> /etc/monit.d/test.conf:1: unbalanced quotes '"'
> /etc/monit.d/test.conf:1: syntax error 'Host'
>  
> Same with single quotes.
>  
> How can I insert a whitespace into a service name?
>  
> Kind regards,
> rexkogitans
>  
> -- 
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.