[Nagios-devel] Bug report - not processed comments for marco value

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] Bug report - not processed comments for marco value

Post by Guest »

Hello dear developers,
I would like to report you possible bug.

BUG:
If comment charater ";" is used somewhere in the macro value
definition line is not parsed like comment but is taken like a part of
macro value.

HOW TO REPRODUCE: (my case):
In resource.cfg I have this:

$USER5$=3D10.0.0.39 ; ISP SMTP server -primary IP

In commands.cfg I have this:
define command {
command_name send-smtp
command_line sendEmail -s $USER5$
}

But what will be actually executed ("Processed notification command"
information from nagios.debug file):

sendEmail -s 10.0.0.39 ; ISP's SMTP IP -primary IP

Script sendEmail will quit on this invalid input but it's nowhere
logged that it crashed (but script do produce error message if
executed separately).

I think that is a bug because nowhere is said that in macro value
comments are not allowed.

--
Hezky den / Have a nice day
Libor JEL=C3=8DNEK

VIRTAGE SOFTWARE // software - design - web
Lucni 542 // 285 04 Uhlirske Janovice // Czech Republic
support: +420 315 555 488 // cell: +420 777 205 142
email/jabber: [email protected] // web: www.virtage.com





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