I've been running Nagios for several years, and I have found that recently (past 6-12 months) the availability reports and trends reports only show data for the last 7 days for some hosts. For example, if I run an availability report for the current month, for host OCLWDASA01, it will show the previous 7 days up, and everything else as "Time Undetermined". This is not a new host, it has been monitored actively since 2015. Here are entries for the host from the /usr/local/nagios/var/archive/nagios-02-17-2017-00.log file.
Code: Select all
-rw-r--r--. 1 nagios nagios 443M Feb 16 23:59 nagios-02-17-2017-00.log
-rw-r--r--. 1 nagios nagios 1.1M Feb 17 23:59 nagios-02-18-2017-00.log
-rw-r--r--. 1 nagios nagios 1.1M Feb 18 23:59 nagios-02-19-2017-00.log
-rw-r--r--. 1 nagios nagios 1.3M Feb 19 23:59 nagios-02-20-2017-00.log
-rw-r--r--. 1 nagios nagios 985K Feb 20 23:58 nagios-02-21-2017-00.log
-rw-r--r--. 1 nagios nagios 1.1M Feb 21 23:59 nagios-02-22-2017-00.log
-rw-r--r--. 1 nagios nagios 1.4M Feb 22 23:59 nagios-02-23-2017-00.log
-rw-r--r--. 1 nagios nagios 2.6M Feb 23 23:59 nagios-02-24-2017-00.log
Code: Select all
[root@oclvssm01 archives]# grep "HOST ALERT: OCLWDASA01" *
nagios-02-17-2017-00.log:[1455715240] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455715265] HOST ALERT: OCLWDASA01;DOWN;SOFT;2;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455715328] HOST ALERT: OCLWDASA01;UP;SOFT;3;PING OK - Packet loss = 0%, RTA = 0.49 ms
nagios-02-17-2017-00.log:[1455719887] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455719950] HOST ALERT: OCLWDASA01;DOWN;SOFT;2;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455720012] HOST ALERT: OCLWDASA01;DOWN;SOFT;3;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455720076] HOST ALERT: OCLWDASA01;UP;SOFT;4;PING OK - Packet loss = 0%, RTA = 0.59 ms
nagios-02-17-2017-00.log:[1455840145] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455840207] HOST ALERT: OCLWDASA01;DOWN;SOFT;2;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455840269] HOST ALERT: OCLWDASA01;DOWN;SOFT;3;CRITICAL - Host Unreachable (192.168.10.1)
nagios-02-17-2017-00.log:[1455840333] HOST ALERT: OCLWDASA01;UP;SOFT;4;PING OK - Packet loss = 0%, RTA = 0.60 ms
nagios-02-17-2017-00.log:[1456073510] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;(Host check timed out after 30.01 seconds)
nagios-02-17-2017-00.log:[1456073580] HOST ALERT: OCLWDASA01;UP;SOFT;2;PING OK - Packet loss = 79%, RTA = 0.79 ms
nagios-02-17-2017-00.log:[1457590736] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;(Host check timed out after 30.01 seconds)
nagios-02-17-2017-00.log:[1457590790] HOST ALERT: OCLWDASA01;UP;SOFT;2;PING WARNING - Packet loss = 80%, RTA = 0.55 ms
nagios-02-17-2017-00.log:[1457601355] HOST ALERT: OCLWDASA01;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100%
nagios-02-17-2017-00.log:[1457601415] HOST ALERT: OCLWDASA01;DOWN;SOFT;2;PING CRITICAL - Packet loss = 100%
nagios-02-17-2017-00.log:[1457601462] HOST ALERT: OCLWDASA01;UP;SOFT;3;PING OK - Packet loss = 72%, RTA = 0.52 ms
Here is the availability report for "This Month" Here is the trend report for the same host, same time period. Would really like to get these reports to be accurate. Thanks.