install Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

install Nagios Core

Post by ponnpr7 »

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,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: install Nagios Core

Post by scottwilkerson »

did you run

Code: Select all

make install-init
and then restart httpd?

Code: Select all

service httpd restart
If so and it still doesn't work we need to know your OS to continue
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: install Nagios Core

Post by ponnpr7 »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: install Nagios Core

Post by scottwilkerson »

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?
It shouldn't break anything but that said I can not guarantee you don't have a misconfiguration in your apache configs.

I will say a restart will be required for the new configuration to be seen.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: install Nagios Core

Post by ponnpr7 »

Kindly find the attachment what was wrong because I can see the web UI but there are some errors. Please advice
Attachments
NagiosCore.PNG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: install Nagios Core

Post by scottwilkerson »

Looks like you do not have php installed

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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: install Nagios Core

Post by ponnpr7 »

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
#
#
#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session"
~
after I commented out then the httpd services works again.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: install Nagios Core

Post by scottwilkerson »

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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: install Nagios Core

Post by ponnpr7 »

Code: Select all

installing pgp
what is that, is it a must for the WEB UI?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: install Nagios Core

Post by scottwilkerson »

ponnpr7 wrote:

Code: Select all

installing pgp
what is that, is it a must for the WEB UI?
huh?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked