Question- opinions on MRTG support for rrdcached
"Steve Shipway" <[email protected]> Mon, 20 Sep 2010 17:33:27 +1200
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Organization | Cheshire Cat Computing |
| Message-ID | <001e01cb5885$5dacee20$1906ca60$@org> |
This is a multi-part message in MIME format. --===============0387523912== Content-Type: multipart/alternative; boundary="----=_NextPart_000_001F_01CB58E9.F2E1CE20" Content-Language: en-nz This is a multi-part message in MIME format. ------=_NextPart_000_001F_01CB58E9.F2E1CE20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit If MRTG runs via rrdcached (RRDTool 1.4) , then there's a decision to make on the RRD file checks. When it runs locally or via rrdcached with UNIX sockets, then the existence check is quick and simple, and the check for the rrd file having the correct max/type settings is relatively cheap. However when running via rrdcached with TCP sockets, you have the problem that to test for existence and parameters you need to do a remote rrdinfo, which is relatively expensive, particularly since it seems to happen for ever RRD file on every cycle. It could be changed to only attempt creation of the RRD file if the update fails, but this would mean that changes of MaxBytes/type wouldn't be actioned. The test for rrd Maxbytes/type should only be done once - on initial cfg file processing - but I'm not sure at the moment how to manage this. Would people prefer to omit the rrdtune step and do a create attempt only after a failed update (fast), or check the rrd file existence and configuration every cycle (slow but flexible)? Or maybe this should be a global option in the cfg file? As for Threshold checks, these have to be omitted if you're using rrdcached, as rrdcached does not yet support updatev. I've also not yet quite managed to get Routers2 to work via the rrdcached since the remote rrdfetch doesn't support -s, but we're close. Steve _____ Steve Shipway [email protected] Routers2.cgi web frontend for MRTG/RRD; NagEventLog Nagios agent for Windows Event Log monitoring; check_vmware plugin for VMWare monitoring in Nagios and MRTG; and other Open Source projects. Web: http://www.steveshipway.org/software P Please consider the environment before printing this e-mail ------=_NextPart_000_001F_01CB58E9.F2E1CE20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} @font-face {font-family:"Arial Narrow"; panose-1:2 11 6 6 2 2 2 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";} 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.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-NZ link=3Dblue vlink=3Dpurple> <div class=3DWordSection1> <p class=3DMsoNormal>If MRTG runs via rrdcached (RRDTool 1.4) , then = there’s a decision to make on the RRD file checks.<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>When it runs locally or via rrdcached with UNIX = sockets, then the existence check is quick and simple, and the check for the rrd = file having the correct max/type settings is relatively cheap.<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>However when running via rrdcached with TCP = sockets, you have the problem that to test for existence and parameters you need to = do a remote rrdinfo, which is relatively expensive, particularly since it = seems to happen for ever RRD file on every cycle.<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>It could be changed to only attempt creation of the = RRD file if the update fails, but this would mean that changes of MaxBytes/type = wouldn’t be actioned. The test for rrd Maxbytes/type should only be done = once – on initial cfg file processing – but I’m not sure at the = moment how to manage this.<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>Would people prefer to omit the rrdtune step and do = a create attempt only after a failed update (fast), or check the rrd file = existence and configuration every cycle (slow but flexible)? Or maybe this = should be a global option in the cfg file?<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>As for Threshold checks, these have to be omitted = if you’re using rrdcached, as rrdcached does not yet support = updatev.<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>I’ve also not yet quite managed to get = Routers2 to work via the rrdcached since the remote rrdfetch doesn’t support = –s, but we’re close…<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>Steve<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><span = lang=3DEN-US> <hr size=3D2 width=3D"100%" align=3Dcenter> </span></div> <p class=3DMsoNormal><b>Steve Shipway<o:p></o:p></b></p> <p class=3DMsoNormal><span = style=3D'font-size:10.0pt'>[email protected]<o:p></o:p></span></p> <p class=3DMsoNormal><i><span = style=3D'font-size:10.0pt;color:#595959'>Routers2.cgi web frontend for MRTG/RRD; NagEventLog Nagios agent for Windows Event = Log monitoring; check_vmware plugin for VMWare monitoring in Nagios and = MRTG; and other Open Source projects.<o:p></o:p></span></i></p> <p class=3DMsoNormal><span style=3D'font-size:10.0pt'>Web: <a href=3D"http://www.steveshipway.org/software">http://www.steveshipway.org= /software</a><o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-GB = style=3D'font-size:18.0pt;font-family:Webdings; color:green'>P</span><span lang=3DEN-GB style=3D'color:blue'> = </span><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Arial = Narrow","sans-serif"; color:green'>Please consider the environment before printing this = e-mail</span><span lang=3DEN-GB style=3D'color:blue'> </span><span lang=3DEN-GB = style=3D'font-size:7.5pt; font-family:"Verdana","sans-serif";color:navy'><o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:10.0pt'><o:p> </o:p></span></p> <p class=3DMsoNormal><o:p> </o:p></p> </div> </body> </html> ------=_NextPart_000_001F_01CB58E9.F2E1CE20-- --===============0387523912== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ mrtg-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers --===============0387523912==--