Hi Israel, <br>Well that is what i get<br><br>./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c 5000,5000 -w 3000,3000 -vv<br>Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd<br>Input warning level(kb/s): 3000<br>
Output warning level(kb/s): 3000<br>Input critical level (kb/s): 5000<br>Output critical level (kb/s): 5000<br>Fetching data with command: rrdtool fetch /var/www/html/cfg/62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan"<br>
RRD File Data:<br> ds0 ds1<br><br>1203155100: 4.4908022742e+04 6.8003888963e+04<br>Raw Input Traffic Value (b/s): 32,000000<br>Raw Output Traffic Value (b/s): 48,000000<br>Decimal Input Traffic Value (b/s): 32,000000<br>
Decimal Output Traffic Value (b/s): 48,000000<br>./check_rrdtraf: line 248: [: 32,000000: integer expression expected<br>./check_rrdtraf: line 251: [: 32,000000: integer expression expected<br>./check_rrdtraf: line 254: [: 32,000000: integer expression expected<br>
./check_rrdtraf: line 263: [: 48,000000: integer expression expected<br>./check_rrdtraf: line 266: [: 48,000000: integer expression expected<br>./check_rrdtraf: line 269: [: 48,000000: integer expression expected<br>Traffic IN scalar: 1000000000<br>
Traffic OUT scalar: 1000000000<br>(standard_in) 1: parse error<br>(standard_in) 1: parse error<br>(standard_in) 1: parse error<br>(standard_in) 1: parse error<br>OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error<br>
(standard_in) 1: parse error<br>|in=Gb/s;3000;5000 (standard_in) 1: parse error<br>(standard_in) 1: parse error<br>out=Gb/s;3000;5000<br><br>As you see, i have changed the threshold values... Before i used the -l option so i have forgotten to rescale them.<br>
it is your baby, so you'll know better what happens but what i understnad is that i gets value from 10 minutes ago and makes an average...<br><br>thank you again. I'll try to discover what i have done ina wrong way before you would tell me..<br>
Best wishes<br><br>Pili<br><br><div><span class="gmail_quote">2008/2/15, 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;">
<div style=""><span class="q"><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
-----------------------------------------------</div><div>Israel Brewster</div><div>Computer Support Technician</div><div>Frontier Flying Service Inc.</div><div>5245 Airport Industrial Rd</div><div>Fairbanks, AK 99709</div>
<div>(907) 450-7250 x293</div><div>-----------------------------------------------</div><br></span></span></div></span> </div><br></span><div><span class="q"><div>On Feb 15, 2008, at 2:11 AM, Pili Muņoz Gargallo wrote:</div>
<br><blockquote type="cite">Of course yes, PEBKAC...<br>i have a new issue:<br>if i execute the same command from command line i obtain:<br> ./check_rrdtraf -f /var/www/html/cfg/62.81.189.118_1.rrd -c 5000000,5000000 -w 3000000,3000000<br>
<br>./check_rrdtraf: line 248: [: 8,000000: integer expression expected<br> ./check_rrdtraf: line 251: [: 8,000000: integer expression expected<br>./check_rrdtraf: line 254: [: 8,000000: integer expression expected<br>./check_rrdtraf: line 263: [: 32,000000: integer expression expected<br>
./check_rrdtraf: line 266: [: 32,000000: integer expression expected<br> ./check_rrdtraf: line 269: [: 32,000000: integer expression expected<br>(standard_in) 1: parse error<br>(standard_in) 1: parse error<br>(standard_in) 1: parse error<br>
(standard_in) 1: parse error<br>OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error<br> (standard_in) 1: parse error<br>|in=Gb/s;3000000;5000000 (standard_in) 1: parse error<br>(standard_in) 1: parse error<br>out=Gb/s;3000000;5000000<br>
<br>so Is there another problem or it is just me?</blockquote><div><br></div></span><div>Ok, here's where that -vv switch can come in handy. Try again from the command line with -vv, and send the output you get. That should help me with the debugging. As it is, the only thing I would note is to wonder if you really want the critical and warning values to be 3 Gbps and 5Gbps. It's not completely unreasonable, of course, depending on what you are monitoring (I think there are devices that can get multi-gigabit speeds), but most devices never get anywhere near that kind of traffic. Regardless, that shouldn't cause the first errors you are seeing, as the lines referenced are just seeing how big the input values are. Course, if you ARE getting gigabit speeds, I suppose it's possible i'm getting an overflow somewhere- i've never tested with that level traffic (as I don't have anything that generates that kind of traffic).</div>
<div><span class="e" id="q_1181e5b8f0b5ed2e_5"><br><blockquote type="cite"><br>Thanks again, and forgive me for these questions: Like i used to say, i am a student and i am newbie in linux, LAMP servers, Nagios, MRTG, RRDTool..... and everything you imagine..<br>
<br>Cheers<br><br>Pili<br><br><div><span class="gmail_quote">2008/2/15, Israel Brewster <<a href="mailto:israel@frontierflying.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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;">
<div><br><div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
</span></span></div></span> </div><br><div><span><div>On Feb 14, 2008, at 1:48 PM, Pili Muņoz Gargallo wrote:</div><br><blockquote type="cite">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</blockquote><div><br></div>
</span><div>As Marc pointed out in his response, having the ./var instead of /var in the path to the .rrd file is wrong. you want /var WITHOUT the period. Also, note that the -l switch only affects the display of the output. It is not needed in normal operation, unless you really want to see the output as bits rather than Kb, Mb, etc. The plugin will auto-choose the best option based on the data if you leave this switch out. But the main problem is the period before that slash. Remove it, and it should work.</div>
<div><span><div><br></div><div>-----------------------------------------------</div><div>Israel Brewster</div><div>Computer Support Technician</div><div>Frontier Flying Service Inc.</div> <div>5245 Airport Industrial Rd</div>
<div>Fairbanks, AK 99709</div><div>(907) 450-7250 x293</div><div>-----------------------------------------------</div><blockquote type="cite"><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-</a><br>
>> users-<br> >> <a href="mailto:bounces@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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></blockquote></span></div></div><br></div></blockquote></div><br></blockquote></span></div></div><br></div></blockquote></div>
<br>