hi all, <br>thanks for the help. I have been trying several things that you told me.<br>I'll give more information. I am monitoring bandwith with MRTG and storing datas in rrdtool format.<br>If i run command from command line is <br>
<br>./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c 3000000,3000000 -w 5000000,5000000<br><br>./var/www/html/cfg/62.81.189.118_1.rrd does not exist.<br><br>I am graphing with routers2.cgi and it receives values, and if i do :<br>
<br> rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE<br>.<br>.<br>.<br><br>1203025200: 1.3963531752e+05 8.2446477796e+04<br>1203025500: 1.3719540269e+05 1.0068914358e+05<br>1203025800: 1.3673972419e+05 1.0818787703e+05<br>
1203026100: 1.3729848910e+05 1.1104579469e+05<br>1203026400: 1.3708077389e+05 1.1129381874e+05<br>1203026700: 1.3590177194e+05 1.1081213980e+05<br>1203027000: 3.1652589163e+05 2.5986265329e+05<br>1203027300: 3.8436060720e+05 3.1651678017e+05<br>
1203027600: 1.4309192557e+05 1.1708320591e+05<br>1203027900: nan nan<br>1203028200: nan nan<br><br>i see it is storing values...<br>what is wrong? I had read check_rrdtraf help and i have included -l B option to indicate that data are bits...but it is still not working<br>
I obtain now:<br>OK - Current BW in: bps Out: bps<br><br>any more ideas? <br>Thank you again for your patience!!!<br><br>Pili<br><br><br><div><span class="gmail_quote">2008/2/13, Israel Brewster <<a href="mailto:israel@frontierflying.com">israel@frontierflying.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Feb 13, 2008, at 6:34 AM, Marc Powell wrote:<br> >> -----Original Message-----<br> >> From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-">nagios-</a><br>
>> users-<br> >> <a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Pili Muņoz Gargallo<br> >> Sent: Wednesday, February 13, 2008 7:23 AM<br> >> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
>> Subject: [Nagios-users] check_rrdtraf<br> >><br> >> Hi<br> >> i am trying to measure bandwith using check_rrd<br> ><br> > When asking about plugins that don't come with the distribution it's<br>
> helpful to include where you obtained the plugin so everyone knows<br> > which check_rrd (or check_rrdtraf as the case may be) you're talking<br> > about.<br> <br> <br>That would be (partly) my plugin, obtained from <a href="http://Nagiosexchange.org">Nagiosexchange.org</a>,<br>
most likely :)<br> <br><br> >> i use the command:<br> >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l<br> >> b -vv -<br> >> c $ARG1$ -w $ARG2$<br> ><br> > You meant $HOSTADDRESS$ here, right?<br>
<br> <br>And did you really want that period before the /var ?<br> <br>><br> ><br> >> and in the service i give it the next arguments:<br> >> !3000000,3000000!5000000,5000000<br> >><br> >> i have read about it several times, and it doesn't work how i espect:<br>
>> it returns me an OK value, but it doesn't tell me the present BW...<br> >> Am i missing something?<br> >><br> ><br> > When you run the above command as the nagios user from the command<br> > line, does the first line of output match what you're seeing in the<br>
> GUI? I expect it starts with the word 'Using'. What is the -vv flag<br> > causing to happen when the program is run (hint, run check_rrdtraf --<br> > help to find out)?<br> <br> <br>The -vv is an issue, although there could be a couple of others (see<br>
previous comments about the formating of the file string in the<br> command). As that flag gives a lot of debugging output, and nagios<br> only displays the first line of output, I wouldn't expect it to show<br> the traffic values with this switch in there. What I would expect<br>
nagios to be showing is something along the lines of "Using RRD File: /<br> var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of<br> debugging output I put in there), with $HOSTADDRESS$ replaced with<br>
the applicable value. Try without the -vv and see what happens.<br> <br> -----------------------------------------------<br> <br>Israel Brewster<br> Computer Support Technician<br> Frontier Flying Service Inc.<br> 5245 Airport Industrial Rd<br>
Fairbanks, AK 99709<br> (907) 450-7250 x293<br> -----------------------------------------------<br> <br>><br> ><br> > --<br> > Marc<br> ><br> ><br> ><br> > -------------------------------------------------------------------------<br>
> This SF.net email is sponsored by: Microsoft<br> > Defy all challenges. Microsoft(R) Visual Studio 2008.<br> > <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><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<br> > reporting any issue.<br> > ::: Messages without supporting info will risk being sent to /dev/null<br> <br> <br> -------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><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>