Page 1 of 1

Quotation Marks in Nagios CCM

Posted: Wed Jul 09, 2014 12:12 pm
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?

Re: Quotation Marks in Nagios CCM

Posted: Wed Jul 09, 2014 12:19 pm
by eloyd
Try putting a basckslash (\) in front of the quotes.

Re: Quotation Marks in Nagios CCM

Posted: Wed Jul 09, 2014 2:30 pm
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!