<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        font-variant:normal !important;
        color:windowtext;
        text-transform:none;
        text-shadow:none;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;
        vertical-align:baseline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link=blue vlink=purple><span style='font-size:12pt;font-family:Arial, sans-serif;color:black'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Hi list,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>i use nagios to collect data from a printer with smnp. I get the printed pages as gauge (10,15,25,30,80&#8230;) and with the pnp I get a graph for the printed pages. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Now I want to display the min. and max. value of the shown graph in the shown period AND the printed pages for that period. I tried to calculate the value between min an max with CDEF, but I can&#8217;t print in in the legend with GPRINT. Calculation with VDEF is showing the wrong value.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>How can I solve this?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>My Template looks like this (works):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = &quot;--vertical-label Anzahl -l 0 --title \&quot;Gedruckte Seiten auf $hostname \&quot; &quot;;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] =&nbsp; &quot;DEF:var1=$rrdfile:$DS[1]:AVERAGE &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;AREA:var1#c6c6c6:\&quot;Seiten \&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;LINE:var1#0000FF &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;GPRINT:var1:MIN:\&quot;%6.0lf min.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= </span><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&quot;GPRINT:var1:MAX:\&quot;%6.0lf max.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Changing to this ( wrong &#8220;Anzahl&#8221;)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = &quot;--vertical-label Anzahl -l 0 --title \&quot;Gedruckte Seiten auf $hostname \&quot; &quot;;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] =&nbsp; &quot;DEF:var1=$rrdfile:$DS[1]:AVERAGE &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;DEF:var1min=$rrdfile:$DS[1]:MIN &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;DEF:var1max=$rrdfile:$DS[1]:MAX &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;CDEF:var1act=var1max,var1min,- &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;VDEF:varact=var1act,MAXIMUM &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;AREA:var1#c6c6c6:\&quot;Seiten \&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;LINE:var1#0000FF &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;GPRINT:var1:MIN:\&quot;%6.0lf min.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= </span><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&quot;GPRINT:var1:MAX:\&quot;%6.0lf max.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;GPRINT:varact:\&quot;%6.0lf Anzahl\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>Changing to this (error &#8220;</span><span lang=EN-US>RRDTool beendet mit Fehlern -&gt; ERROR: Cannot parse CF in 'GPRINT:var1act:%6.0lf Anzahl'&#8221;)</span><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = &quot;--vertical-label Anzahl -l 0 --title \&quot;Gedruckte Seiten auf $hostname \&quot; &quot;;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] =&nbsp; &quot;DEF:var1=$rrdfile:$DS[1]:AVERAGE &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;DEF:var1min=$rrdfile:$DS[1]:MIN &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;DEF:var1max=$rrdfile:$DS[1]:MAX &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;CDEF:var1act=var1max,var1min,- &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .=&nbsp; &quot;VDEF:varact=var1act,MAXIMUM &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;AREA:var1#c6c6c6:\&quot;Seiten \&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;LINE:var1#0000FF &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;GPRINT:var1:MIN:\&quot;%6.0lf min.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= </span><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&quot;GPRINT:var1:MAX:\&quot;%6.0lf max.\&quot; &quot; ;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= &quot;GPRINT:var1act:\&quot;%6.0lf Anzahl\&quot; &quot; ;<o:p></o:p></span></p></div><br></span>
<p style='text-align:left; font-size:12pt; font-family:Arial,sans-serif; color:black'>
Mit freundlichen Gr&uuml;&szlig;en / With kind regards<br />
i.A.  Edgar Giese<br />
<br />
NORKA <br />
Norddeutsche Kunststoff- und Elektrogesellschaft St&auml;cker mbH & Co. KG<br /><br />
Lange Stra&szlig;e 1 * 27313 D&ouml;rverden-H&uuml;lsen<br />
Tel.: +49 4239 9300-203 * Fax.: +49 4239 9300-99 <br />
E-Mail: <a href="mailto:Edgar.Giese@norka.de">Edgar.Giese@norka.de</a> * Internet: <a href="http://www.norka.de/" alt="Besuchen Sie uns im Internet!" title="Besuchen Sie uns im Internet!">www.norka.de</a>
</p><br />
<p style='text-align:left; font-size:10pt;font-family:Arial, sans-serif;color:black'>Sitz der Gesellschaft: D&ouml;rverden-H&uuml;lsen, Amtsgericht Walsrode HRA 121059<br>
pers&ouml;nlich haftende Gesellschafterin: NORKA Verwaltungs GmbH, Amtsgericht Walsrode HRB 121601<br>
Gesch&auml;ftsf&uuml;hrer: Dr.-Ing. Norbert H&ouml;bing, Dipl.-Ing. (FH) Martin C. St&auml;cker, Dipl.-Ing. Detlef Fritsch</p><br></body></html>