Special Characters in service_description

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Special Characters in service_description

Postby pad_geosys » Mon Jun 22, 2020 9:43 am

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

Re: Special Characters in service_description

Postby scottwilkerson » Mon Jul 06, 2020 3:32 pm

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)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18672
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Community Support

Who is online

Users browsing this forum: AlvinAdano, Majestic-12 [Bot] and 73 guests