No problems, see the output below.
[root@localhost httpd]# cat /etc/httpd/conf.d/pnp4nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
Alias /pnp4nagios "/usr/local/pnp4nagios/share"
<Directory "/usr/local/pnp4nagios/share">
AllowOverride None
Order allow,deny
Allow from all
#
# Use the same value as defined in nagios.conf
#
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
<IfModule mod_rewrite.c>
# Turn on URL rewriting
RewriteEngine On
Options symLinksIfOwnerMatch
# Installation directory
RewriteBase /pnp4nagios/
# Protect application and system files from being viewed
RewriteRule "^(?:application|modules|system)/" - [F]
# Allow any files or directories that exist to be displayed directly
RewriteCond "%{REQUEST_FILENAME}" !-f
RewriteCond "%{REQUEST_FILENAME}" !-d
# Rewrite all other URLs to index.php/URL
RewriteRule "^.*$" "index.php/$0" [PT]
</IfModule>
</Directory>
[root@localhost httpd]#
PNP4Nagios Install Error
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: PNP4Nagios Install Error
Based on this config, you would access the graphs at
not
Code: Select all
http://192.168.1.26/pnp4nagios
Code: Select all
http://192.168.1.26/nagios/pnp4nagios
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
Thank you - if I change
to
Would that make it http://192.168.1.26/nagios/pnp4nagios ?
Code: Select all
RewriteBase /pnp4nagios/
to
Code: Select all
RewriteBase /nagios/pnp4nagios/
Would that make it http://192.168.1.26/nagios/pnp4nagios ?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: PNP4Nagios Install Error
as well as changing
to
then restarting httpd
Code: Select all
Alias /pnp4nagios "/usr/local/pnp4nagios/share"
Code: Select all
Alias /nagios/pnp4nagios "/usr/local/pnp4nagios/share"
Code: Select all
systemctl restart httpd
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
Great thank you very much for your help. I really appreciate it.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: PNP4Nagios Install Error
May we lock the thread?vivification wrote:Great thank you very much for your help. I really appreciate it.
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
Yes no problems thanks.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: PNP4Nagios Install Error
Great! Lockingvivification wrote:Yes no problems thanks.