Nagiosxi does not show availability report

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagiosxi does not show availability report

Post by hsmith »

Can I please see a screenshot of the error when you try to run the report?
Former Nagios Employee.
me.
jonathan.cruz
Posts: 42
Joined: Tue Jul 28, 2015 3:06 pm

Re: Nagiosxi does not show availability report

Post by jonathan.cruz »

Following
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagiosxi does not show availability report

Post by hsmith »

What's the output of a 'service nagios status' command on the XI server?
Former Nagios Employee.
me.
jonathan.cruz
Posts: 42
Joined: Tue Jul 28, 2015 3:06 pm

Re: Nagiosxi does not show availability report

Post by jonathan.cruz »

Running

# service nagios status
nagios (pid 15356) is running...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagiosxi does not show availability report

Post by hsmith »

Let's follow these steps:

Code: Select all

Navigate to Configure > CCM > Tools > Write Config Files
Click on 'Delete' (Don't worry, this is fine.)\
Click on 'Write'
Click on 'Verify'
Any errors?
Former Nagios Employee.
me.
jonathan.cruz
Posts: 42
Joined: Tue Jul 28, 2015 3:06 pm

Re: Nagiosxi does not show availability report

Post by jonathan.cruz »

No Errors

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosxi does not show availability report

Post by rkennedy »

Can you run the following commands to check the permissions on a few folders?

Code: Select all

ls -l /usr/local/nagios/var/spool/checkresults
ls -l /usr/local/nagios/var/spool
ls -l /usr/local/nagios/var/share
ls -l /usr/local/nagios/var
Former Nagios Employee
jonathan.cruz
Posts: 42
Joined: Tue Jul 28, 2015 3:06 pm

Re: Nagiosxi does not show availability report

Post by jonathan.cruz »

root@MY SERVER ~]# ls -l /usr/local/nagios/var/spool
total 3160
drwxrwsr-x 2 nagios nagcmd 4096 Jan 20 16:56 checkresults
drwxr-xr-x 2 nagios nagios 2457600 Jan 20 17:01 perfdata
drwxr-xr-x 2 nagios nagios 765952 Jan 20 17:01 xidpe


[root@MY SERVER~]# ls -l /usr/local/nagios/var/spool/checkresults
total 0


[nagios@MY SERVER ~]$ ls -l /usr/local/nagios/var/share
ls: cannot access /usr/local/nagios/var/share: No such file or directory


]$ ls -l /usr/local/nagios/var
total 59660
drwxrwxr-x 2 nagios nagios 4096 Jan 19 23:59 archives
-rw-r--r-- 1 nagios nagios 1138 Jan 20 17:03 host-perfdata
-rw-r--r-- 1 nagios nagios 34 Jan 20 16:45 nagios.configtest
-rw-r--r-- 1 nagios nagios 6 Jan 20 16:44 nagios.lock
-rw-r--r-- 1 nagios nagios 6721783 Jan 20 17:03 nagios.log
-rw-rw-r-- 1 nagios nagios 13894 Sep 18 11:55 nagios.tmp9c7g1b
-rw-r--r-- 1 nagios nagios 5 Jan 13 14:36 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Jan 20 16:56 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Jan 13 14:36 ndo.sock
-rw-r--r-- 1 nagios nagios 4715196 Jan 20 16:57 npcd.log
-rw-r--r-- 1 nagios nagios 10485804 Oct 22 05:46 npcd.log.old
-rw-r--r-- 1 nagios nagios 5597425 Jan 20 16:56 objects.cache
-rw-r--r-- 1 nagios nagios 5598679 Jan 20 16:45 objects.precache
-rw-rw-r-- 1 nagios nagios 9777106 Jan 20 16:38 perfdata.log
-rw------- 1 nagios nagios 9057977 Jan 20 16:56 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Jan 20 16:56 rw
-rw-r--r-- 1 nagios nagios 36945 Jan 20 17:04 service-perfdata
drwxr-xr-x 5 nagios nagios 4096 Apr 23 2015 spool
drwxr-xr-x 2 nagios nagios 4096 Jan 20 17:03 stats
-rw-rw-r-- 1 nagios nagios 9001226 Jan 20 17:03 status.dat
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagiosxi does not show availability report

Post by rkennedy »

These look fine, can you verify two more permissions?

Code: Select all

ls -l /usr/local/nagios/share
ls -l /usr/local/nagios
Former Nagios Employee
jonathan.cruz
Posts: 42
Joined: Tue Jul 28, 2015 3:06 pm

Re: Nagiosxi does not show availability report

Post by jonathan.cruz »

ls -l /usr/local/nagios/share
total 224
drwxr-xr-x 2 root root 4096 Apr 23 2015 ajaxterm
drwxrwxr-x 4 nagios nagios 4096 Oct 9 16:40 angularjs
drwxrwxr-x 3 nagios nagios 4096 Oct 9 16:39 bootstrap-3.3.0
-rw-rw-r-- 1 nagios nagios 576 Oct 9 16:40 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 contexthelp
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 d3
drwxrwxr-x 3 nagios nagios 4096 Apr 23 2015 docs
-rw-rw-r-- 1 nagios nagios 879 Oct 9 16:40 graph-header.html
-rw-rw-r-- 1 nagios nagios 4136 Oct 9 16:40 histogram-form.html
-rw-rw-r-- 1 nagios nagios 5579 Oct 9 16:40 histogram-graph.html
-rw-rw-r-- 1 nagios nagios 2855 Oct 9 16:40 histogram.html
-rw-rw-r-- 1 nagios nagios 2372 Oct 9 16:40 histogram-links.html
drwxrwxr-x 3 nagios nagios 4096 Oct 9 16:40 images
drwxrwxr-x 3 nagios nagios 4096 Oct 9 16:40 includes
-rw-rw-r-- 1 nagios nagios 1653 Oct 9 16:40 index.php
-rw-rw-r-- 1 nagios nagios 1660 Oct 9 16:40 infobox.html
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 js
-rw-rw-r-- 1 nagios nagios 1177 Oct 9 16:40 jsonquery.html
drwxr-xr-x 4 root root 4096 Apr 23 2015 locale
-rw-rw-r-- 1 nagios nagios 8745 Oct 9 16:40 main.php
-rw-rw-r-- 1 nagios nagios 1967 Oct 9 16:40 map-directive.html
-rw-rw-r-- 1 nagios nagios 3824 Oct 9 16:40 map-form.html
-rw-rw-r-- 1 nagios nagios 2627 Oct 9 16:40 map.html
-rw-rw-r-- 1 nagios nagios 623 Oct 9 16:40 map-links.html
-rw-rw-r-- 1 nagios nagios 1723 Oct 9 16:40 map-popup.html
drwxrwxr-x 2 nagios nagios 4096 Apr 23 2015 media
drwxrwxr-x 543 nagios nagios 20480 Jan 18 17:19 perfdata
drwxr-xr-x 8 nagios nagios 4096 Apr 23 2015 pnp
-rw-rw-r-- 1 nagios nagios 26 Oct 9 16:40 robots.txt
-rw-rw-r-- 1 nagios nagios 657 Oct 9 16:40 rss-corebanner.php
-rw-rw-r-- 1 nagios nagios 1071 Oct 9 16:40 rss-corefeed.html
-rw-rw-r-- 1 nagios nagios 898 Oct 9 16:40 rss-corefeed.php
-rw-rw-r-- 1 nagios nagios 544 Oct 9 16:40 rss-newsfeed.html
-rw-rw-r-- 1 nagios nagios 1068 Oct 9 16:40 rss-newsfeed.php
-rw-rw-r-- 1 nagios nagios 6275 Oct 9 16:40 side.php
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 spin
drwxrwxr-x 2 nagios nagios 4096 Apr 23 2015 ssi
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 stylesheets
-rw-rw-r-- 1 nagios nagios 4243 Oct 9 16:40 trends-form.html
-rw-rw-r-- 1 nagios nagios 4256 Oct 9 16:40 trends-graph.html
-rw-rw-r-- 1 nagios nagios 852 Oct 9 16:40 trends-host-yaxis.html
-rw-rw-r-- 1 nagios nagios 2990 Oct 9 16:40 trends.html
-rw-rw-r-- 1 nagios nagios 3586 Oct 9 16:40 trends-links.html
-rw-rw-r-- 1 nagios nagios 1065 Oct 9 16:40 trends-service-yaxis.html


ls -l /usr/local/nagios
total 36
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:47 bin
drwsrwsr-x 7 apache nagios 4096 Dec 22 13:17 etc
drwxr-xr-x 2 root root 4096 Apr 23 2015 include
drwxrwsr-x 5 apache nagios 12288 Jan 19 14:29 libexec
drwxrwxr-x 2 nagios nagios 4096 Oct 9 16:40 sbin
drwxrwxr-x 18 nagios nagios 4096 Oct 9 16:40 share
drwxrwxr-x 6 nagios nagios 4096 Jan 25 09:08 var
Locked