This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 8:23 am
re-ran:
Code: Select all
[root@id-nag01 lib]# /usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/6.3.200.53_439902208.rrd -w 1000,2000 -c 2000,3000
Using RRD file: /var/lib/mrtg/6.3.200.53_439902208.rrd
Input warning level(kb/s): 1000
Output warning level(kb/s): 2000
Input critical level (kb/s): 2000
Output critical level (kb/s): 3000
/var/lib/mrtg/6.3.200.53_439902208.rrd does not exist.
[root@id-nag01 lib]# su nagios -c 'ls -l /var/lib/mrtg/6.3.200.53_439902208.rrd'
ls: /var/lib/mrtg/6.3.200.53_439902208.rrd: No such file or directory
[root@id-nag01 lib]# ls -l /var/lib/mrtg/6.3.200.53_439902208.rrd
ls: /var/lib/mrtg/6.3.200.53_439902208.rrd: No such file or directory
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 9:52 am
no, I took no action other than the commands as stated... this is why I cannot figure out why this continues to flap- one poll it is there, the next it is not.
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 9:54 am
looks like the noted device has been removed- perhaps overnight by our NOPS group... I re-ran using an rrd file that was there:
Code: Select all
[root@id-nag01 mrtg]# /usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/6.0.2.251_222.rrd -w 1000,2000 -c 2000,3000
Using RRD file: /var/lib/mrtg/6.0.2.251_222.rrd
Input warning level(kb/s): 1000
Output warning level(kb/s): 2000
Input critical level (kb/s): 2000
Output critical level (kb/s): 3000
Fetching data with command: rrdtool fetch /var/lib/mrtg/6.0.2.251_222.rrd AVERAGE -s-10minutes | grep -vi "nan"
RRD File Data:
ds0 ds1
1348152300: 1.3033476655e+05 1.0098151867e+05
1348152600: 1.2795698328e+05 9.8459650578e+04
Raw Input Traffic Value (b/s): 1023655.866240
Raw Output Traffic Value (b/s): 787677.204624
Decimal Input Traffic Value (b/s): 1023655
Decimal Output Traffic Value (b/s): 787677
Traffic IN scalar: 1000000
Traffic OUT scalar: 1000
OK - Current BW in: 1.02Mbps Out: 787.67Kbps|in=1.023655Mb/s;1000;2000 out=787.677204Kb/s;2000;3000
[root@id-nag01 mrtg]# su nagios -c 'ls -l /var/lib/mrtg/6.0.2.251_222.rrd'
-rw-r--r-- 1 root root 105312 Sep 20 10:50 /var/lib/mrtg/6.0.2.251_222.rrd
[root@id-nag01 mrtg]# ls -l /var/lib/mrtg/6.0.2.251_222.rrd
-rw-r--r-- 1 root root 105312 Sep 20 10:50 /var/lib/mrtg/6.0.2.251_222.rrd
one that is not functioning (same device):
Code: Select all
[root@id-nag01 mrtg]# /usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/var/lib/mrtg/6.0.2.251_59.rrd -w 1000,2000 -c 2000,3000
Using RRD file: /var/lib/mrtg/var/lib/mrtg/6.0.2.251_59.rrd
Input warning level(kb/s): 1000
Output warning level(kb/s): 2000
Input critical level (kb/s): 2000
Output critical level (kb/s): 3000
/var/lib/mrtg/var/lib/mrtg/6.0.2.251_59.rrd does not exist.
[root@id-nag01 mrtg]# su nagios -c 'ls -l /var/lib/mrtg/6.0.2.251_59.rrd'
-rw-r--r-- 1 root root 105312 Sep 20 10:55 /var/lib/mrtg/6.0.2.251_59.rrd
[root@id-nag01 mrtg]# ls -l /var/lib/mrtg/6.0.2.251_222.rrd
-rw-r--r-- 1 root root 105312 Sep 20 10:55 /var/lib/mrtg/6.0.2.251_222.rrd
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Sep 20, 2012 10:12 am
Your command it wrong you have some extra info in the path
Run
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/6.0.2.251_59.rrd -w 1000,2000 -c 2000,3000
instead of
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/var/lib/mrtg/6.0.2.251_59.rrd -w 1000,2000 -c 2000,3000
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 10:21 am
D'oh...
Code: Select all
[root@id-nag01 mrtg]# /usr/local/nagios/libexec/check_rrdtraf -vv -f /var/lib/mrtg/6.0.2.251_59.rrd -w 1000,2000 -c 2000,3000
Using RRD file: /var/lib/mrtg/6.0.2.251_59.rrd
Input warning level(kb/s): 1000
Output warning level(kb/s): 2000
Input critical level (kb/s): 2000
Output critical level (kb/s): 3000
Fetching data with command: rrdtool fetch /var/lib/mrtg/6.0.2.251_59.rrd AVERAGE -s-10minutes | grep -vi "nan"
RRD File Data:
ds0 ds1
1348154100: 2.1884830409e+02 2.8951518014e+06
1348154400: 2.1894311111e+02 3.3320985693e+06
Raw Input Traffic Value (b/s): 1751.544889
Raw Output Traffic Value (b/s): 26656788.554400
Decimal Input Traffic Value (b/s): 1751
Decimal Output Traffic Value (b/s): 26656788
Traffic IN scalar: 1000
Traffic OUT scalar: 1000000
CRITICAL - Current BW in: 1.75Kbps Out: 26.65Mbps|in=1.751544Kb/s;1000;2000 out=26.656788Mb/s;2000;3000
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Sep 20, 2012 11:19 am
So that looks like it should be working ok
Are you seeing errors in the Web UI?
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 11:26 am
yes- it's random...
I may have to just blow it all away and do a re-install I suppose, but I cannot possibly understand why this would be taking place:
Code: Select all
Bandwidth
This service has commentsThis service is flapping
Unknown 4m 17s 1/1 2012-09-20 12:20:40 /var/lib/mrtg/6.0.-.---_222.rrd does not exist.
Bandwidth
This service has commentsThis service is flapping
Unknown 2m 53s 1/1 2012-09-20 12:22:04 /var/lib/mrtg/6.0.-.---_4.rrd does not exist.
Bandwidth
This service has commentsThis service is flapping
Unknown 6m 41s 1/1 2012-09-20 12:23:46 /var/lib/mrtg/6.0.-.---1_207.rrd does not exist.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Sep 20, 2012 11:48 am
I guess the biggest thing to look at when you see this, is does this file exist
/var/lib/mrtg/6.0.-.---_222.rrd
kotterbein
Posts: 87 Joined: Fri Aug 10, 2012 8:15 am
Post
by kotterbein » Thu Sep 20, 2012 12:16 pm
they do... is there some sort of timing issue perhaps between the check and the creation of the file?