Page 3 of 6

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 24, 2013 11:52 am
by David.adder
Hi Scott,

Now I get this:

ls -l /usr/local/nagios/var/spool/perfdata|wc -l
5

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 24, 2013 12:03 pm
by scottwilkerson
This all seems normal, lets manually run mrtg to make sure we don't have errors

Code: Select all

env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 24, 2013 12:09 pm
by David.adder
I get some messages as this one:

SNMP Error:
no response received
SNMPv2c_Session (remote host: "IP_ADDRESS" [IP_ADDRESS].161)
community: "community"
request ID: 1208057573
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 492
SNMPGET Problem for ifHCInOctets.1 ifHCOutOctets.1 on community@IP_ADDRESS:::::2:v4only
at /usr/bin/mrtg line 2202
2013-01-24 18:05:09: WARNING: skipping because at least the query for ifHCInOctets.1 on IP_ADDRESS did not succeed
2013-01-24 18:05:09: WARNING: no data for ifHCInOctets&ifHCOutOctets:publicadder@IP_ADDRESS. Skipping further queries for Host IP_ADDRESS in this round.

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 24, 2013 12:13 pm
by David.adder
Sorry Scott, I've just get so many messages now here...

2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10120.rrd with '1359047109:26244:850202842' /var/lib/mrtg/172.18.11.254_10120.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10122.rrd with '1359047109:56970839400879:138769842170889' /var/lib/mrtg/172.18.11.254_10122.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10124.rrd with '1359047109:44318279:1085862287' /var/lib/mrtg/172.18.11.254_10124.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10128.rrd with '1359047109:29231084:1179765908' /var/lib/mrtg/172.18.11.254_10128.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10130.rrd with '1359047109:7931469390202:6156971637309' /var/lib/mrtg/172.18.11.254_10130.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10132.rrd with '1359047109:18199417050029:19614825472460' /var/lib/mrtg/172.18.11.254_10132.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10134.rrd with '1359047109:0:0' /var/lib/mrtg/172.18.11.254_10134.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10135.rrd with '1359047109:18690670342483:10197138025991' /var/lib/mrtg/172.18.11.254_10135.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10136.rrd with '1359047109:270614774676:3019080000' /var/lib/mrtg/172.18.11.254_10136.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10138.rrd with '1359047109:283941745884:3123378488' /var/lib/mrtg/172.18.11.254_10138.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10140.rrd with '1359047109:668988187593:417096024144' /var/lib/mrtg/172.18.11.254_10140.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10142.rrd with '1359047109:48121559900358:27059480400669' /var/lib/mrtg/172.18.11.254_10142.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10144.rrd with '1359047109:1046651457475:1240828083766' /var/lib/mrtg/172.18.11.254_10144.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)
2013-01-24 18:10:51: ERROR: Cannot update /var/lib/mrtg/172.18.11.254_10146.rrd with '1359047109:1583648495100:3741699166214' /var/lib/mrtg/172.18.11.254_10146.rrd: illegal attempt to update using time 1359047109 when last update time is 1359047109 (minimum one second step)

There are much more

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Mon Jan 28, 2013 10:00 pm
by gm_rajkumar
Hi,
I am also facing the same issue, i have tried all the steps however i have got the same result. Let me know if anything else needs to be checked further.. thanks!!
Regards,
Raj.

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Wed Jan 30, 2013 12:25 pm
by slansing
Are those RRD files related in any way? The hosts or services?

@gm_rajkumar If you are experiencing this exact issue please feel free to follow along with this thread, however if your issue deviates please open a new thread and note this thread as an example.

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Wed Jan 30, 2013 11:55 pm
by gm_rajkumar
Hi slansing,

Thanks for the response back, Yes I'm also facing the same issue on my Cisco switch/router and devices other than i can able to see the graphs.

Thursdays, 31 January 2013 at 8:39: ERROR: Cannot update /var/lib/mrtg/10.10.10.1_119.rrd with '1359607154:U:U' /var/lib/mrtg/10.10.10.1_119.rrd: illegal attempt to update using time 1359607154 when last update time is 1396614058 (minimum one second step)

Let me know if you need further over this.. ..thanks!!

Regards,
Raj.

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 31, 2013 10:42 am
by slansing
David.adder,

Can you link a copy of your mrtg.cfg file? You may have duplicate entries for these objects:

Code: Select all

/etc/mrtg/mrtg.cfg



Edit: I'm linking a dev to this thread, if we find a solution you will be notified on yours as well Raj, thanks!

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Thu Jan 31, 2013 4:10 pm
by mguthrie
Can you post the text output from the Admin->System Profile page?

It seems like rrdtool is complaining about the timestamps, I'm wondering if there's maybe a time zone or time syncing issue between the server and the network device.

Re: Problems with Host Performance Graphs and Bandwidth

Posted: Fri Feb 01, 2013 4:36 am
by David.adder
Hi mgutrhie:

Nagios XI Installation Profile

Download Profile
System:

Nagios XI Version : 2012R1.4
SRVBOXASDC1009 2.6.32-220.el6.x86_64 x86_64
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17
Server Name: monitor.adderbox.com
Server Address: 172.18.1.8
Server Port: 80
Date/Time

PHP Timezone: Not set
PHP Time: Fri, 01 Feb 2013 10:34:20 +0100
System Time: Fri, 01 Feb 2013 10:34:20 +0100
Nagios XI Data

nagios (pid 26137) is running...
NPCD running (pid 24067).
ndo2db (pid 20023) is running...
CPU Load 15: 6.30
Total Hosts: 722
Total Services: 2921
Function 'get_base_uri' returns: http://nagios./nagiosxi/
Function 'get_base_url' returns: http://nagios./nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://nagios./nagiosxi/includes/compon ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost

Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.679 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.125 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.025/0.276/0.679/0.287 ms
Test wget To locahost

WGET From URL: http://localhost/nagiosql/index.php
Running:
/usr/bin/wget http://localhost/nagiosql/index.php
--2013-02-01 10:34:22-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5128 (5.0K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

0K ..... 100% 320M=0s

2013-02-01 10:34:22 (320 MB/s) - `/tmp/nagiosql_index.tmp' saved [5128/5128]