Quotation Marks in Nagios CCM

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
egrudzien
Posts: 5
Joined: Thu Jul 03, 2014 3:24 pm

Quotation Marks in Nagios CCM

Post by egrudzien »

Hello all!

I'm looking to get some help. Maybe I'm missing something. I purchased Nagios Core Student Edition. I am using the built in CCM editor to add a service. This is the command I must run. It checks the status of a process running on a Windows file server.

Code: Select all

check_nt -H $HOSTADDRESS$ -p 12489 -v PROCSTATE-d SHOWALL -l "Folder Watcher.exe"
I have set up a template like the following...
Image

When I save, then go back to edit it, this is what it looks like...
Image


It doesn't seem to like quotation marks.

I know I could manually edit the config file, and add the services in like such

Code: Select all

check_nt!PROCSTATE!-d SHOWALL -l "Folder Watcher.exe"
but I wanted to avoid that if possible. Any suggestions?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Quotation Marks in Nagios CCM

Post by eloyd »

Try putting a basckslash (\) in front of the quotes.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
egrudzien
Posts: 5
Joined: Thu Jul 03, 2014 3:24 pm

Re: Quotation Marks in Nagios CCM

Post by egrudzien »

Thank you for the help! Adding a backslash before the quotes did not fix it. However, I changed the "Doduble Quote" to "Single Quote" marks and it works.
Ex.

Code: Select all

"Folder Watch.exe"
did not work and did what I described above.

Code: Select all

'Folder Watch.exe'
did work fine and dandy.

Thanks!
Locked