<div>Well, I hoped that would do the trick, but it doesn't seem to. I see this in my logs:</div>
<div> </div>
<div>2005-10-31 14:47:46 PIPE: Athos Dsk: /prod/dbbackup     /dev/lv_dbbackup: 29% used: 9056MB of 30720MB (85%) : OK<br>2005-10-31 14:47:46 RRD: [Athos][Dsk: /prod/dbbackup]:/usr/local/nagios/ngrapher/rrd/Athos/9df684b6513d292a227b0f7721fb5fec.rrd - successfully created!
<br>2005-10-31 14:47:46 VALUES: [Athos][Dsk: /prod/dbbackup]: Unixpdbbkupused=9056 Unixpdbbkuptotal=30720 Unixprdused=9056 UnixProdDbtotal=30720 UnixProdDbused=9056 Unixprdtotal=30720<br><br>The Dsk: /prod/dbbackup service is matching and saving values for /prod, /prodb, and /prod/dbbackup in the /prod/dbbackup file (9df...rrd). When I view the graph for /prod/dbbackup, it has the GPRINT's for all the matching services printed on it so there's 3 copies of the same number.
</div>
<div> </div>
<div>Here is my ngraph.cfg section for /prod/dbbackup:</div>
<div> </div>
<div>
<p># (AIX) Disk /prod/dbbackup #############################<br>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        graph_log_regex         used: ([0-9]*)<br>        graph_value             Unixpdbbkupused
<br>        graph_units             MB<br>        graph_legend            Disk used<br>        rrd_plottype            AREA<br>        rrd_color               00a000<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        graph_log_regex         of ([0-9]*)<br>        graph_value             Unixpdbbkuptotal<br>        graph_units             MB<br>        graph_legend            Disk total
<br>        rrd_plottype            LINE3<br>        rrd_color               ff0000<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        type                    GPRINT<br>        print_source            Unixpdbbkupused<br>        print_description       Used MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        type   CDEF<br>        graph_value             Unixpdbbkupfree<br>        graph_units             MB<br>        graph_legend            Disk free
<br> graph_calc  Unixpdbbkuptotal,Unixpdbbkupused,-<br>        rrd_plottype            AREA<br>        rrd_color               0000ff<br> hide   yes<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        type                    GPRINT<br>        print_source            Unixpdbbkupfree<br>        print_description       Free MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod/dbbackup$<br>        type                    GPRINT<br>        print_source            Unixpdbbkuptotal<br>        print_description       Total MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p> </p>
<p>Here is my /prod config section of ngraph.cfg:</p>
<p># (AIX) Disk /prod #############################<br>define ngraph{<br>        service_name            Dsk: /prod$<br>        graph_log_regex         used: ([0-9]*)<br>        graph_value             Unixprdused<br>        graph_units             MB
<br>        graph_legend            Disk used<br>        rrd_plottype            AREA<br>        rrd_color               00a000<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod$<br>        graph_log_regex         of ([0-9]*)<br>        graph_value             Unixprdtotal<br>        graph_units             MB<br>        graph_legend            Disk total
<br>        rrd_plottype            LINE3<br>        rrd_color               ff0000<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod$<br>        type                    GPRINT<br>        print_source            Unixprdused<br>        print_description       Used MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod$<br>        type   CDEF<br>        graph_value             Unixprdfree<br>        graph_units             MB<br>        graph_legend            Disk free<br>
 graph_calc  Unixprdtotal,Unixprdused,-<br>        rrd_plottype            AREA<br>        rrd_color               0000ff<br> hide   yes<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod$<br>        type                    GPRINT<br>        print_source            Unixprdfree<br>        print_description       Free MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p>define ngraph{<br>        service_name            Dsk: /prod$<br>        type                    GPRINT<br>        print_source            Unixprdtotal<br>        print_description       Total MB<br>        print_function          LAST
<br>        print_format            %lg<br>        }</p>
<p>The section for /prod/db is the same as the ones above except the service_name is Dsk: /prod/db$.</p>
<p>Please let me know if you see anything wrong above or have any ideas.</p>
<p>Thanks so much. I've been banging my head on my desk about this forever.</p></div>
<div> </div>
<div><br> </div>
<div><span class="gmail_quote">On 10/31/05, <b class="gmail_sendername">Andreas Ericsson</b> <<a href="mailto:ae@op5.se">ae@op5.se</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Christopher House wrote:<br>> Is there a way to have nagiosgrapher (<br>> <a href="http://www.nagiosexchange.org/Charts.42.0.html?&tx_netnagext_pi1%5Bp_view%5D=195)">
http://www.nagiosexchange.org/Charts.42.0.html?&tx_netnagext_pi1%5Bp_view%5D=195)</a><br>> not use regex to match the service_name in its ngraph.cfg?<br><br>Probably not, but if you want it to stop matching somewhere all you need
<br>to do is add a dollar-sign.<br><br>> I have several<br>> services that start with:<br>>  Dsk: /prod<br>>  (such as Dsk: /prod/pl , Dsk: /prod/home , etc)<br><br>So the regex for graphing<br>       Dsk: /prod
<br>but not<br>       Dsk: /prod/pl<br>would be<br>       Dsk: /prod$<br><br><br><br>--<br>Andreas Ericsson                   <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>OP5 AB                             
<a href="http://www.op5.se">www.op5.se</a><br>Tel: +46 8-230225                  Fax: +46 8-230231<br><br><br>-------------------------------------------------------<br>This SF.Net email is sponsored by the JBoss Inc.<br>
Get Certified Today * Register for a JBoss Training Course<br>Free Certification Exam for All Training Attendees Through End of 2005<br>Visit <a href="http://www.jboss.com/services/certification">http://www.jboss.com/services/certification
</a> for more information<br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null
<br></blockquote></div><br><br clear="all"><br>-- <br>Christopher House<br><a href="mailto:chouse@gmail.com">chouse@gmail.com</a>