Bug report - not processed comments for marco value

Libor Jelinek ljelinek at virtage.com
Wed Feb 2 16:52:40 CET 2011


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$=10.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ÍNEK

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: ljelinek at virtage.com // web: www.virtage.com

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list