[Nagios-devel] escaping semicolon

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
Guest

[Nagios-devel] escaping semicolon

Post by Guest »

Hi list,

this is the first time I have to use a semicolon as parameter for a
plugin. As everybody knows a semicolon delimits comments from values:


XODTEMPLATE.C
/* grab data before comment delimiter - faster than a strtok() and
strncpy()... */
for(x=0;input[x]!='\x0';x++)
if(input[x]==';')
break;

input[x]='\x0';

My workaround will be a simple bash script which replaces another
character with a semicolon but I really do not like this workaround! I
would prefer if it is possible to escape the semicolon.

BTW: check_http's paramter -k has the same problem.

Cheers,

Gerd

--
Gerd Mueller NETWAYS GmbH
Senior Systems Engineer Deutschherrnstr. 47a
Fon.0911/92885-0 D-90429 Nuernberg
Fax.0911/92885-33
[email protected] http://www.netways.de





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked