Page 1 of 1

Pass "!" in a service argument

Posted: Mon Oct 23, 2017 1:50 am
by kmarinov
Hi,

Happy to join the forum!

I have a problem with Nagios XI while trying to monitor a 3rd party windows service.
The problem (by my opinion) is that in the name of the service there is "!". When I add service arg: "Test"!" service" and when I save it, I get back and the service is name is separated on two lines and it looks like this:
Test
service


The error in Nagios is: (No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'

Is there a way to pass "!" or maybe the problem is other?

Thank you in advance!

Re: Pass "!" in a service argument

Posted: Mon Oct 23, 2017 1:42 pm
by scottwilkerson
Yes ! is a special char in nagios, here is an article about dealing with it

https://support.nagios.com/kb/article.php?id=580