[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    Re: [opennms-discuss] snmp graph labels
From:       "Roskens, Ronald" <Ronald.Roskens () biworldwide ! com>
Date:       2012-01-30 17:41:42
Message-ID: C9265D4839934844B7FD633ADAFB733C441A14F4 () BIEXCHMB02 ! biperf ! com
[Download RAW message or body]

\r doesn't seem to work when used as part of a sequence like this:

STACK:ngzNineCpu#A66900:"{ngz_nine}" \
GPRINT:ngzNineCpu:AVERAGE:"Avg \\: %6.2lf" \
GPRINT:ngzNineCpu:MIN:"Min \\: %6.2lf" \
GPRINT:ngzNineCpu:MAX:"Max \\: %6.2lf\\r"

Ron


From: David Hustace [mailto:david@opennms.com]
Sent: Sunday, January 29, 2012 8:08 AM
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] snmp graph labels


On Jan 11, 2012, at 12:58 PM, Roskens, Ronald wrote:


Any ideas on how to accomplish this?

How about *right* alignment?  You can add the \r to the GPRINT string for this.  You \
can also add \g to trim white space off the end of a string.



David Hustace
The OpenNMS Group, Inc.

      '\                   .  .                        |>
        \              .         ' .                   |
       O>>         .                 'o                |
        \       .                                      |
        /\    .                                        |
       / /  .'                                         |
 ^^^^^^^`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


This e-mail message is being sent solely for use by the intended recipient(s) and may \
contain confidential information.  Any unauthorized review, use, disclosure or \
distribution is prohibited.  If you are not the intended recipient, please contact \
the sender by phone or reply by e-mail, delete the original message and destroy all \
copies. Thank you.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\0027Courier New\0027";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.apple-style-span
	{mso-style-name:apple-style-span;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">\r \
doesn&#8217;t seem to work when used as part of a sequence like \
this:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">STACK:ngzNineCpu#A66900:&quot;{ngz_nine}&quot; \
\<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">GPRINT:ngzNineCpu:AVERAGE:&quot;Avg \
\\: %6.2lf&quot; \<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">GPRINT:ngzNineCpu:MIN:&quot;Min \
\\: %6.2lf&quot; \<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">GPRINT:ngzNineCpu:MAX:&quot;Max \
\\: %6.2lf\\r&quot;<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ron<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> David \
Hustace [mailto:david@opennms.com] <br>
<b>Sent:</b> Sunday, January 29, 2012 8:08 AM<br>
<b>To:</b> General OpenNMS Discussion<br>
<b>Subject:</b> Re: [opennms-discuss] snmp graph labels<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Jan 11, 2012, at 12:58 PM, Roskens, Ronald \
wrote:<o:p></o:p></p> </div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Any \
ideas on how to accomplish this?<o:p></o:p></span></p> </div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">How about *right* alignment? &nbsp;You can add the \r to the \
GPRINT string for this. &nbsp;You can also add \g to trim white space off the end of \
a string.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:black">David \
Hustace<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:black">The \
OpenNMS Group, Inc.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
 </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">&nbsp; \
&nbsp; &nbsp; '\ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . \
&nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;|&gt;</span><o:p></o:p></span></p> <div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;\ &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; ' . &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;&nbsp; &nbsp; &nbsp; O&gt;&gt; &nbsp; \
&nbsp; &nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'o \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;\ &nbsp; \
&nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/\ &nbsp; \
&nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;&nbsp; &nbsp; &nbsp; / / &nbsp;.' &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span class="apple-style-span"><span \
style="font-size:9.0pt;font-family:&quot;" \
CourierNew??,?serif?;color:#1F497D?="">&nbsp;^^^^^^^`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span></span><span \
style="font-size:11.5pt;color:#1F497D"><o:p></o:p></span></p> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br clear="both">
This e-mail message is being sent solely for use by the intended recipient(s) and may \
contain confidential information.  Any unauthorized review, use, disclosure or \
distribution is prohibited.  If you are not the intended recipient, please contact \
the sender by phone or reply by e-mail, delete the original message and destroy all \
copies. Thank you.<BR> </body>
</html>


[Attachment #4 (--===============0247166263983171968==)]
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic