From: Steve G. <st...@ls...> - 2005-03-29 16:40:41
|
On Tue, Mar 29, 2005 at 05:43:00PM +0200, Yves Mettier wrote: > Steve, do you have any idea how we can change this behaviour > without breaking the standards (docbook and the xsl stylesheet from > docbook-xsl) ? Thanks for your explanation anyways. Just put line breaks in the docbook code, e.g. define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" | $USER2$/bin/perfparse-log2mysql -c $USER2$/etc/perfparse.cfg } and then note that the line has been broken for presentation, but that it actually needs to be all on one line. Or, if nagios supports the the trailing '\' convention, show it that way, like you do in the ../configure examples earlier: define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" \ "$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$\n" \ | $USER2$/bin/perfparse-log2mysql -c $USER2$/etc/perfparse.cfg } (I took a quick look at the nagios docs, but they don't seem to say, and I don't have time right now to experiment.) Basically, anything inside <programlisting> is presented "as-is", so you need to get the width of the listing down. Steve -- "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net) |