Page 1 of 1

[Report] * is not available when monitoring engine is

Posted: Wed Feb 02, 2022 2:49 am
by lvaillant
Hello,

Since I updated Nagios XI to the lastest 5.8.7 version (RHEL 7.4), reports are no more available.
Manually generating any reports, I get the same message:
Capture.PNG
But all Nagios subparts seem to be ok:
Capture1.PNG
Scheduled reports are partially ok :
somes are ok, others ones are incomplete :
Capture2.PNG
Thoughts ?
Thank you.

Re: [Report] * is not available when monitoring engine is

Posted: Wed Feb 02, 2022 5:25 pm
by ssax
If the files under /usr/local/nagios/var/archives are compressed or permissions are off on them or the /usr/local/nagios/var/nagios.log you can see that issue.

What is the output of these commands?

Code: Select all

ls -lh /usr/local/nagios/var/nagios.log
ls -lh /usr/local/nagios/var/archives/
sestatus
Try going editing any user in Admin > Manage Users, don't change anything just click the Update User button, that will rewrite the /usr/local/nagios/etc/cgi.cfg, and can also fix this issue. Then go try the report again.

Re: [Report] * is not available when monitoring engine is

Posted: Tue Feb 08, 2022 5:26 am
by lvaillant
Hello

Code: Select all

# ls -lh /usr/local/nagios/var/nagios.log
-rw-r--r-- 1 nagios nagios 8.8M Feb  8 11:24 /usr/local/nagios/var/nagios.log

Code: Select all

# ls -lhd /usr/local/nagios/var/archives/
drwxrwxr-x 2 nagios nagios 84K Feb  7 23:59 /usr/local/nagios/var/archives/
# ls -lhrt /usr/local/nagios/var/archives/
...
-rw-r--r-- 1 nagios nagios   15M Feb  1 23:59 nagios-02-02-2022-00.log
-rw-r--r-- 1 nagios nagios   13M Feb  2 23:59 nagios-02-03-2022-00.log
-rw-r--r-- 1 nagios nagios   10M Feb  3 23:59 nagios-02-04-2022-00.log
-rw-r--r-- 1 nagios nagios  9.8M Feb  5 00:00 nagios-02-05-2022-00.log
-rw-r--r-- 1 nagios nagios  9.5M Feb  5 23:59 nagios-02-06-2022-00.log
-rw-r--r-- 1 nagios nagios   13M Feb  6 23:59 nagios-02-07-2022-00.log
-rw-r--r-- 1 nagios nagios   11M Feb  7 23:59 nagios-02-08-2022-00.log

Code: Select all

# sestatus
SELinux status:                 disabled
Tried to "update user" without modification.
Same behavior.

Regards.

Re: [Report] * is not available when monitoring engine is

Posted: Tue Feb 08, 2022 6:09 pm
by pbroste
Hello @lvaillant

Thanks for following up, want to take a look at your Nagios XI System Profile so we can see what is going on.

To send us your system profile.
  • Login to the Nagios XI GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file send via Private Message
Thanks,
Perry

Re: [Report] * is not available when monitoring engine is

Posted: Thu Feb 10, 2022 10:09 am
by lvaillant
Hello @pbroste

Profile sent via PM
Regards.

Loïc V.

Re: [Report] * is not available when monitoring engine is

Posted: Thu Feb 10, 2022 11:57 am
by pbroste
Hello @lvaillant

Thanks for following up and sending over the System Profile. The snapshot on the System Profile did not pick up much logging for reporting so I am not able to see much. Want to have you go ahead and run the 'reconfigure script' and follow up with the additional request.

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
And:

Code: Select all

grep -Eir 'availability.php|availability.cgi' -A 10 -B 10 /usr/local/* > /tmp/results.txt && tar -czvf /tmp/results.tar.gz /tmp/results.txt /var/log/httpd/*
Please send over the '/tmp/results.tar.gz' when you get a chance.

Thanks,
Perry