<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> </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…) 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> </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’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> </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> </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> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = "--vertical-label Anzahl -l 0 --title \"Gedruckte Seiten auf $hostname \" ";<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] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;<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] .= "AREA:var1#c6c6c6:\"Seiten \" " ;<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] .= "LINE:var1#0000FF " ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= "GPRINT:var1:MIN:\"%6.0lf min.\" " ;<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"'>"GPRINT:var1:MAX:\"%6.0lf max.\" " ;<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"'>Changing to this ( wrong “Anzahl”)<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 style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = "--vertical-label Anzahl -l 0 --title \"Gedruckte Seiten auf $hostname \" ";<o:p></o:p></span></p><p class=MsoNormal><span 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] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= "DEF:var1min=$rrdfile:$DS[1]:MIN " ;<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] .= "DEF:var1max=$rrdfile:$DS[1]:MAX " ;<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] .= "CDEF:var1act=var1max,var1min,- " ;<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] .= "VDEF:varact=var1act,MAXIMUM " ;<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] .= "AREA:var1#c6c6c6:\"Seiten \" " ;<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] .= "LINE:var1#0000FF " ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= "GPRINT:var1:MIN:\"%6.0lf min.\" " ;<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"'>"GPRINT:var1:MAX:\"%6.0lf max.\" " ;<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] .= "GPRINT:varact:\"%6.0lf Anzahl\" " ;<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"'>Changing to this (error “</span><span lang=EN-US>RRDTool beendet mit Fehlern -> ERROR: Cannot parse CF in 'GPRINT:var1act:%6.0lf Anzahl'”)</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> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$opt[1] = "--vertical-label Anzahl -l 0 --title \"Gedruckte Seiten auf $hostname \" ";<o:p></o:p></span></p><p class=MsoNormal><span 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] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= "DEF:var1min=$rrdfile:$DS[1]:MIN " ;<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] .= "DEF:var1max=$rrdfile:$DS[1]:MAX " ;<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] .= "CDEF:var1act=var1max,var1min,- " ;<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] .= "VDEF:varact=var1act,MAXIMUM " ;<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] .= "AREA:var1#c6c6c6:\"Seiten \" " ;<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] .= "LINE:var1#0000FF " ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>$def[1] .= "GPRINT:var1:MIN:\"%6.0lf min.\" " ;<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"'>"GPRINT:var1:MAX:\"%6.0lf max.\" " ;<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] .= "GPRINT:var1act:\"%6.0lf Anzahl\" " ;<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üßen / With kind regards<br />
i.A. Edgar Giese<br />
<br />
NORKA <br />
Norddeutsche Kunststoff- und Elektrogesellschaft Stäcker mbH & Co. KG<br /><br />
Lange Straße 1 * 27313 Dörverden-Hü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örverden-Hülsen, Amtsgericht Walsrode HRA 121059<br>
persönlich haftende Gesellschafterin: NORKA Verwaltungs GmbH, Amtsgericht Walsrode HRB 121601<br>
Geschäftsführer: Dr.-Ing. Norbert Höbing, Dipl.-Ing. (FH) Martin C. Stäcker, Dipl.-Ing. Detlef Fritsch</p><br></body></html>