install Nagios Core
install Nagios Core
MODERATOR Note: this was split from the topic below as it is unrelated:
https://support.nagios.com/forum/viewto ... 478#249104
Good Day,
I install Nagios Core and running into some issue:
https://assets.nagios.com/downloads/nag ... Source.pdf
When I run this http://<your.nagios.server.ip>/nagios
getting
Not Found
The requested URL /nagios was not found on this server.
Any help, thanks,
https://support.nagios.com/forum/viewto ... 478#249104
Good Day,
I install Nagios Core and running into some issue:
https://assets.nagios.com/downloads/nag ... Source.pdf
When I run this http://<your.nagios.server.ip>/nagios
getting
Not Found
The requested URL /nagios was not found on this server.
Any help, thanks,
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: install Nagios Core
did you run
and then restart httpd?
If so and it still doesn't work we need to know your OS to continue
Code: Select all
make install-init
Code: Select all
service httpd restart
Re: install Nagios Core
It is RHEL 7.3, by I have some else running on httpd as well by restarting the httpd is it gone break anything?
Thanks,
Ravi
Thanks,
Ravi
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: install Nagios Core
It shouldn't break anything but that said I can not guarantee you don't have a misconfiguration in your apache configs.ponnpr7 wrote:It is RHEL 7.3, by I have some else running on httpd as well by restarting the httpd is it gone break anything?
I will say a restart will be required for the new configuration to be seen.
Re: install Nagios Core
Kindly find the attachment what was wrong because I can see the web UI but there are some errors. Please advice
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: install Nagios Core
Looks like you do not have php installed
Did you run this from the doc?
Did you run this from the doc?
Code: Select all
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip
Re: install Nagios Core
The php I believe causing the problem to restart the httpd:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─openstack-dashboard.conf
Active: failed (Result: exit-code) since Wed 2018-04-11 10:49:50 EDT; 5min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 11771 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 11767 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Process: 11737 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 11722 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput (code=exited, status=0/SUCCESS)
Main PID: 11767 (code=exited, status=1/FAILURE)
Apr 11 10:49:49 nj51ntvsospd python[11737]: Compressing... done
Apr 11 10:49:49 nj51ntvsospd python[11737]: Compressed 8 block(s) from 17 template(s).
Apr 11 10:49:50 nj51ntvsospd httpd[11767]: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
Apr 11 10:49:50 nj51ntvsospd httpd[11767]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 11 10:49:50 nj51ntvsospd kill[11771]: kill: cannot find process ""
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 11 10:49:50 nj51ntvsospd systemd[1]: Failed to start The Apache HTTP Server.
Apr 11 10:49:50 nj51ntvsospd systemd[1]: Unit httpd.service entered failed state.
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service failed.
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
#
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─openstack-dashboard.conf
Active: failed (Result: exit-code) since Wed 2018-04-11 10:49:50 EDT; 5min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 11771 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 11767 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Process: 11737 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 11722 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput (code=exited, status=0/SUCCESS)
Main PID: 11767 (code=exited, status=1/FAILURE)
Apr 11 10:49:49 nj51ntvsospd python[11737]: Compressing... done
Apr 11 10:49:49 nj51ntvsospd python[11737]: Compressed 8 block(s) from 17 template(s).
Apr 11 10:49:50 nj51ntvsospd httpd[11767]: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
Apr 11 10:49:50 nj51ntvsospd httpd[11767]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 11 10:49:50 nj51ntvsospd kill[11771]: kill: cannot find process ""
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 11 10:49:50 nj51ntvsospd systemd[1]: Failed to start The Apache HTTP Server.
Apr 11 10:49:50 nj51ntvsospd systemd[1]: Unit httpd.service entered failed state.
Apr 11 10:49:50 nj51ntvsospd systemd[1]: httpd.service failed.
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
#
after I commented out then the httpd services works again.#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session"
~
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: install Nagios Core
This is really outside the scope of your customer support so I am going to more this to the Nagios Core General forum.
Additionally, installing pgp is byond the scope of nagios support in general but my guess us you have not added the module to the apache config
https://serverfault.com/questions/51541 ... -php-value
Additionally, installing pgp is byond the scope of nagios support in general but my guess us you have not added the module to the apache config
https://serverfault.com/questions/51541 ... -php-value
Re: install Nagios Core
Code: Select all
installing pgp
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: install Nagios Core
huh?ponnpr7 wrote:what is that, is it a must for the WEB UI?Code: Select all
installing pgp