We are running Nagios XI .....
When trying to access from my internal web 192.168.1.xxx/nagiosmobile I am getting the following error message.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
*********************************************************************************************************************
[root@nag ~]# ps -ef |grep nagiosmobile
root 23586 23522 0 10:39 pts/0 00:00:00 grep --color=auto nagiosmobile
[root@nag bin]# ll /usr/local/nagiosmobile
total 48
-rwxr-xr-x 1 root root 493 Aug 24 10:21 CHANGES
drwxr-xr-x 2 root root 65 Jun 27 11:47 class
-rwxr-xr-x 1 root root 68 Aug 24 10:21 footer.inc.php
-rwxr-xr-x 1 root root 4978 Aug 24 10:21 header.inc.php
-rwxr-xr-x 1 root root 4442 Nov 20 10:08 include.inc.php
drwxr-xr-x 2 root root 4096 Jun 27 11:47 includes
-rwxr-xr-x 1 root root 5385 Aug 24 10:21 index.php
drwxr-xr-x 3 root root 152 Jun 27 11:47 jquery.mobile-1.0
drwxr-xr-x 2 root root 71 Jun 27 11:47 js
-rwxr-xr-x 1 root root 1423 Aug 24 10:21 nagiosmobile.css
-rwxr-xr-x 1 root root 3631 Aug 24 10:21 nagios.png
-rwxr-xr-x 1 root root 2984 Aug 24 10:21 TODO.txt
You have new mail in /var/spool/mail/root
[root@nag bin]# ll -d /usr/local/nagiosmobile
drwxr-xr-x 6 root root 4096 Nov 20 10:08 /usr/local/nagiosmobile
Any help would be great. I am trying to get this to work from the outside on my mobile device.
Nagios Mobile
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios Mobile
was looking at the following document
https://assets.nagios.com/downloads/exc ... 1511198636
Somthing I notice is this. When I run the ./INSTALL.php I am getting the following error.
[root@nag nagiosmobile]# ./INSTALL.php
Copying apache configuration file...
/bin/mv: cannot stat ‘nagiosmobile_apache.conf’: No such file or directory
Creating web directory...
Copying files...
Cleaning up...
Checking for file locations...
Script Complete!
I did a grep for httpd as well
[root@nag nagiosmobile]# ps -ef |grep http
root 24552 1 0 Nov20 ? 00:06:03 /usr/sbin/httpd -DFOREGROUND
apache 26993 24552 2 10:47 ? 00:00:18 /usr/sbin/httpd -DFOREGROUND
apache 28828 24552 2 10:52 ? 00:00:12 /usr/sbin/httpd -DFOREGROUND
apache 30765 24552 1 10:57 ? 00:00:04 /usr/sbin/httpd -DFOREGROUND
apache 30867 24552 2 10:57 ? 00:00:07 /usr/sbin/httpd -DFOREGROUND
apache 30904 24552 2 10:57 ? 00:00:06 /usr/sbin/httpd -DFOREGROUND
apache 31265 24552 1 10:58 ? 00:00:03 /usr/sbin/httpd -DFOREGROUND
apache 31551 24552 1 10:59 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 31831 24552 1 11:00 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 32085 24552 2 11:00 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 32575 24552 1 11:01 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32648 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32671 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32672 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 32801 23522 0 11:02 pts/0 00:00:00 grep --color=auto http
[root@nag nagiosmobile]#
Any advice would be great. Just want to get this working.
https://assets.nagios.com/downloads/exc ... 1511198636
Somthing I notice is this. When I run the ./INSTALL.php I am getting the following error.
[root@nag nagiosmobile]# ./INSTALL.php
Copying apache configuration file...
/bin/mv: cannot stat ‘nagiosmobile_apache.conf’: No such file or directory
Creating web directory...
Copying files...
Cleaning up...
Checking for file locations...
Script Complete!
I did a grep for httpd as well
[root@nag nagiosmobile]# ps -ef |grep http
root 24552 1 0 Nov20 ? 00:06:03 /usr/sbin/httpd -DFOREGROUND
apache 26993 24552 2 10:47 ? 00:00:18 /usr/sbin/httpd -DFOREGROUND
apache 28828 24552 2 10:52 ? 00:00:12 /usr/sbin/httpd -DFOREGROUND
apache 30765 24552 1 10:57 ? 00:00:04 /usr/sbin/httpd -DFOREGROUND
apache 30867 24552 2 10:57 ? 00:00:07 /usr/sbin/httpd -DFOREGROUND
apache 30904 24552 2 10:57 ? 00:00:06 /usr/sbin/httpd -DFOREGROUND
apache 31265 24552 1 10:58 ? 00:00:03 /usr/sbin/httpd -DFOREGROUND
apache 31551 24552 1 10:59 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 31831 24552 1 11:00 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 32085 24552 2 11:00 ? 00:00:02 /usr/sbin/httpd -DFOREGROUND
apache 32575 24552 1 11:01 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32648 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32671 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 32672 24552 0 11:02 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 32801 23522 0 11:02 pts/0 00:00:00 grep --color=auto http
[root@nag nagiosmobile]#
Any advice would be great. Just want to get this working.
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios Mobile
After doing some more troubleshooting I am seeing the following error
tail -f /var/log/httpd/error_log
[Thu Dec 14 11:15:43.874809 2017] [authn_file:error] [pid 37335] (2)No such file or directory: [client 192.168.1.xxx:63532] AH01620: Could not open password file: /usr/local/nagios/etc/htpasswd.users
Not sure how to fix this. Please assist me with this.
This file does not exist here:
/usr/local/nagios/etc/htpasswd.users
how ever it exists here:
/usr/local/nagiosxi/etc/htpasswd.users
tail -f /var/log/httpd/error_log
[Thu Dec 14 11:15:43.874809 2017] [authn_file:error] [pid 37335] (2)No such file or directory: [client 192.168.1.xxx:63532] AH01620: Could not open password file: /usr/local/nagios/etc/htpasswd.users
Not sure how to fix this. Please assist me with this.
This file does not exist here:
/usr/local/nagios/etc/htpasswd.users
how ever it exists here:
/usr/local/nagiosxi/etc/htpasswd.users
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios Mobile
ok did the following:
cp /usr/local/nagiosxi/etc/htpasswd.users /usr/local/nagios/etc/
now I am able to bring up the site from internal network
cp /usr/local/nagiosxi/etc/htpasswd.users /usr/local/nagios/etc/
now I am able to bring up the site from internal network
You do not have the required permissions to view the files attached to this post.
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios Mobile
The final question I have is this. Do you have an iOS or Andriod app for this or documentation on what I need to do in order to get to this from my mobile device outside MY network???????
Please advise.
Thanks
Please advise.
Thanks
-
bolson
Re: Nagios Mobile
To access your Nagios server from outside your network you would need to configure your internet router to forward port 80 of your WAN (Outside) IP address to port 80 of your LAN (inside) IP address.