Special Characters in service_description

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
pad_geosys
Posts: 1
Joined: Thu Feb 27, 2020 7:19 am

Special Characters in service_description

Post by pad_geosys »

Hi everybody,

I would like to know if it's possible to add special characters in the service_description?
I have a Windows Service named like that "[XXXXX] xxxxxx (Instance: 1)" and the parenthesis can't be used and I need them.

Is it possible and how can I do that?

If it's not possible, I have to redo a lot of thing and I don't want it ;)

Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Special Characters in service_description

Post by scottwilkerson »

Unfortunately these are listed in the default illegal_object_name_chars in the nagios.cfg, and for good reason...

If you remove them, be careful as if the $HOSTNAME$ macro is used in commands, it will attempt to run whatever is in the () in a subshell (potential security breech)
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked