Here are the outputs:
[root@localhost ~]# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192 .168.2.240_6.rrd -w 500.0,500.0 -c 800.0,800 -l M -vv
Using RRD file: /var/lib/mrtg/192.168.2.240_6.rrd
Input warning level(Mb/s): 500.0
Output warning level(Mb/s): 500.0
Input critical level (Mb/s): 800.0
Output critical level (Mb/s): 800
Fetching data with command: rrdtool fetch /var/lib/mrtg/192.168.2.240_6.rrd AVER AGE -s-10minutes | grep -vi "nan"
RRD File Data:
ds0 ds1
Raw Input Traffic Value (b/s): 0.000000
Raw Output Traffic Value (b/s): 0.000000
Decimal Input Traffic Value (b/s): 0
Decimal Output Traffic Value (b/s): 0
Traffic IN scalar: 1000000
Traffic OUT scalar: 1000000
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800
*******************************************************************************************************************************
[root@localhost ~]# rrdtool fetch /var/lib/mrtg/192.168.2.240_6.rrd AVERAGE -s-200minutes
ds0 ds1
1493029200: -nan -nan
1493029500: -nan -nan
1493029800: -nan -nan
1493030100: -nan -nan
1493030400: -nan -nan
1493030700: -nan -nan
1493031000: -nan -nan
1493031300: -nan -nan
1493031600: -nan -nan
1493031900: -nan -nan
1493032200: -nan -nan
1493032500: -nan -nan
1493032800: -nan -nan
1493033100: -nan -nan
1493033400: -nan -nan
1493033700: -nan -nan
1493034000: -nan -nan
1493034300: -nan -nan
1493034600: -nan -nan
1493034900: -nan -nan
1493035200: -nan -nan
1493035500: -nan -nan
1493035800: -nan -nan
1493036100: -nan -nan
1493036400: -nan -nan
1493036700: -nan -nan
1493037000: -nan -nan
1493037300: -nan -nan
1493037600: -nan -nan
1493037900: -nan -nan
1493038200: -nan -nan
1493038500: -nan -nan
1493038800: -nan -nan
1493039100: -nan -nan
1493039400: -nan -nan
1493039700: -nan -nan
1493040000: -nan -nan
1493040300: -nan -nan
1493040600: -nan -nan
1493040900: -nan -nan
1493041200: -nan -nan
*******************************************************************************************************************************
[root@localhost ~]# rrdtool -v
RRDtool 1.4.9 Copyright 1997-2013 by Tobias Oetiker <
[email protected]>
Compiled Feb 16 2015 13:44:33
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (
www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
*******************************************************************************************************************************
[root@localhost ~]# /usr/local/nagios/libexec/check_rrdtraf -V
check_rrdtraf v0.5
Thanks !!