I've been using Nagios for a year and a half so far, and now I'm facing a problem with generating reports on Trends and Availability Report, both of them showing "Indeterminate" and "Insufficient Data", respectively, if the selected time period exceeds more than 48 hours.
I read in documentation that this is because Nagios can't find information for that host/service on a given time period. Please, correct me if I'm wrong about this.
Recently I erased log older than 31 days, because I was running out of space, and there's no need to keep more than this time period. So I'm not sure if this is totally related to the problem.
The logs are where they're supposed to be (/usr/local/nagios/var/ and /usr/local/nagios/var/archives), being generated every midnight, rotated by syslog.
The ownership and permissions are correct (user 'nagios', group 'nagios') for the installation directories (especially 'var', 'sbin' and 'share').
My Apache user (wwwrun) is running on the Nagios group and I don't have any difficult using others parts of the interface/CGI.
User exists on the system:
Code: Select all
grep ^nag /etc/passwd
nagios:x:1000:100::/home/nagios:/bin/bash
Code: Select all
grep ^nag /etc/group
nagios:x:1000:nagios,wwwrun
Code: Select all
ls -l /usr/local/nagios/share
total 176
drwxrwxr-x 4 nagios nagios 4096 Mar 20 2018 angularjs
drwxrwxr-x 3 nagios nagios 4096 Mar 19 2018 bootstrap-3.3.0
-rw-rw-r-- 1 nagios nagios 576 Mar 20 2018 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Mar 20 2018 contexthelp
drwxrwxr-x 2 nagios nagios 4096 Mar 20 2018 d3
drwxrwxr-x 3 nagios nagios 4096 Mar 19 2018 docs
-rw-rw-r-- 1 nagios nagios 879 Mar 20 2018 graph-header.html
-rw-rw-r-- 1 nagios nagios 4136 Mar 20 2018 histogram-form.html
-rw-rw-r-- 1 nagios nagios 5579 Mar 20 2018 histogram-graph.html
-rw-rw-r-- 1 nagios nagios 2372 Mar 20 2018 histogram-links.html
-rw-rw-r-- 1 nagios nagios 2855 Mar 20 2018 histogram.html
drwxr-xr-x 3 nagios nagios 4096 Mar 20 2018 images
drwxrwxr-x 2 nagios nagios 4096 Mar 20 2018 includes
-rw-rw-r-- 1 nagios nagios 1930 Mar 20 2018 index.php
-rw-rw-r-- 1 nagios nagios 1660 Mar 20 2018 infobox.html
drwxrwxr-x 2 nagios nagios 4096 Mar 20 2018 js
-rw-rw-r-- 1 nagios nagios 1177 Mar 20 2018 jsonquery.html
drwxr-xr-x 4 root root 4096 Mar 19 2018 locale
-rw-rw-r-- 1 nagios nagios 9162 Mar 20 2018 main.php
-rw-rw-r-- 1 nagios nagios 2015 Mar 20 2018 map-directive.html
-rw-rw-r-- 1 nagios nagios 3824 Mar 20 2018 map-form.html
-rw-rw-r-- 1 nagios nagios 647 Mar 20 2018 map-links.html
-rw-rw-r-- 1 nagios nagios 1723 Mar 20 2018 map-popup.html
-rw-rw-r-- 1 nagios nagios 4275 Mar 20 2018 map.php
drwxrwxr-x 2 nagios nagios 4096 Mar 19 2018 media
-rw-rw-r-- 1 nagios nagios 26 Mar 20 2018 robots.txt
-rw-rw-r-- 1 nagios nagios 6193 Mar 20 2018 side.php
drwxrwxr-x 2 nagios nagios 4096 Mar 20 2018 spin
drwxrwxr-x 2 nagios nagios 4096 May 9 2018 ssi
drwxr-xr-x 2 nagios nagios 4096 Mar 20 2018 stylesheets
-rw-rw-r-- 1 nagios nagios 4245 Mar 20 2018 trends-form.html
-rw-rw-r-- 1 nagios nagios 4256 Mar 20 2018 trends-graph.html
-rw-rw-r-- 1 nagios nagios 852 Mar 20 2018 trends-host-yaxis.html
-rw-rw-r-- 1 nagios nagios 3586 Mar 20 2018 trends-links.html
-rw-rw-r-- 1 nagios nagios 1065 Mar 20 2018 trends-service-yaxis.html
-rw-rw-r-- 1 nagios nagios 2990 Mar 20 2018 trends.html
If anyone ran into to the same problem and can share the experience, I'd really appreciate!
Thanks in advance. Have a nice day : )