On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:nagios- >> users- >> [EMAIL PROTECTED] On Behalf Of Pili Muñoz Gargallo >> Sent: Wednesday, February 13, 2008 7:23 AM >> To: nagios-users@lists.sourceforge.net >> Subject: [Nagios-users] check_rrdtraf >> >> Hi >> i am trying to measure bandwith using check_rrd > > When asking about plugins that don't come with the distribution it's > helpful to include where you obtained the plugin so everyone knows > which check_rrd (or check_rrdtraf as the case may be) you're talking > about.
That would be (partly) my plugin, obtained from Nagiosexchange.org, most likely :) >> i use the command: >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l >> b -vv - >> c $ARG1$ -w $ARG2$ > > You meant $HOSTADDRESS$ here, right? And did you really want that period before the /var ? > > >> and in the service i give it the next arguments: >> !3000000,3000000!5000000,5000000 >> >> i have read about it several times, and it doesn't work how i espect: >> it returns me an OK value, but it doesn't tell me the present BW... >> Am i missing something? >> > > When you run the above command as the nagios user from the command > line, does the first line of output match what you're seeing in the > GUI? I expect it starts with the word 'Using'. What is the -vv flag > causing to happen when the program is run (hint, run check_rrdtraf -- > help to find out)? The -vv is an issue, although there could be a couple of others (see previous comments about the formating of the file string in the command). As that flag gives a lot of debugging output, and nagios only displays the first line of output, I wouldn't expect it to show the traffic values with this switch in there. What I would expect nagios to be showing is something along the lines of "Using RRD File: / var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of debugging output I put in there), with $HOSTADDRESS$ replaced with the applicable value. Try without the -vv and see what happens. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > -- > Marc > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null