Pass "!" in a service argument

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kmarinov
Posts: 5
Joined: Fri Oct 20, 2017 5:19 am

Pass "!" in a service argument

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pass "!" in a service argument

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked