Page 1 of 2
Nagios Web interface not working after upgrade
Posted: Fri Aug 19, 2016 8:55 am
by legalfee
I was running Nagios 4.1.1 on Ubuntu 14.04. After upgrading to 16.04 I can no longer access the Web interface. All I get is PHP code. From the CLI after running php -v I get The program 'php' is currently not installed. You can install it by typing: apt install php7.0-cli
Should I install PHP7? is it compatible with Nagios 4.1.1?
Thanks for any suggestions.
Re: Nagios Web interface not working after upgrade
Posted: Fri Aug 19, 2016 10:46 am
by bwallace
Yeah install php7. If the issue persists, please run the following from the command line. While it is running, reload the UI, copy the output and post it here.
tail -f /var/log/apache2/error.log
Also, provide the output of the following commands and a screenshot of the code you now see instead of the normal UI.
Code: Select all
apache2 -v
php -v
mysql -V
systemctl is-enabled nagios
cat /etc/init.d/nagios
ps -ef | grep 'nagios\|apache2'
Re: Nagios Web interface not working after upgrade
Posted: Fri Aug 19, 2016 2:15 pm
by legalfee
Here are my results: Looks like mysql is not installed.
Code: Select all
[Fri Aug 19 07:35:02.614643 2016] [mpm_prefork:notice] [pid 10445] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 19 07:35:02.614675 2016] [core:notice] [pid 10445] AH00094: Command line: '/usr/sbin/apache2'
[Fri Aug 19 15:07:15.019310 2016] [mpm_prefork:notice] [pid 10445] AH00169: caught SIGTERM, shutting down
[Fri Aug 19 15:07:50.722347 2016] [mpm_prefork:notice] [pid 4103] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Aug 19 15:07:50.724767 2016] [core:notice] [pid 4103] AH00094: Command line: '/usr/sbin/apache2'
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2016-07-14T12:32:26
PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-0ubuntu0.16.04.2, Copyright (c) 1999-2016, by Zend Technologies
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.7
* mariadb-client-core-10.0
Try: apt install <selected package>
nagios.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install is-enabled nagios
enabled
#!/bin/sh
#
# chkconfig: 345 99 01
# description: Nagios network monitor
#
# File : nagios
#
# Author : Jorge Sanchez Aymar ([email protected])
#
# Changelog :
#
# 1999-07-09 Karl DeBisschop <[email protected]>
# - setup for autoconf
# - add reload function
# 1999-08-06 Ethan Galstad <[email protected]>
# - Added configuration info for use with RedHat's chkconfig tool
# per Fran Boon's suggestion
# 1999-08-13 Jim Popovitch <[email protected]>
# - added variable for nagios/var directory
# - cd into nagios/var directory before creating tmp files on startup
# 1999-08-16 Ethan Galstad <[email protected]>
# - Added test for rc.d directory as suggested by Karl DeBisschop
# 2000-07-23 Karl DeBisschop <[email protected]>
# - Clean out redhat macros and other dependencies
# 2003-01-11 Ethan Galstad <[email protected]>
# - Updated su syntax (Gary Miller)
#
# Description: Starts and stops the Nagios monitor
# used to provide network services status.
#
status_nagios ()
{
if test -x $NagiosCGI/daemonchk.cgi; then
if $NagiosCGI/daemonchk.cgi -l $NagiosRunFile; then
return 0
else
nagios 3158 1 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 3160 3158 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 3161 3158 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 3162 3158 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 3163 3158 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 3166 3158 0 15:07 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios1 3357 1 0 15:07 ? 00:00:00 /lib/systemd/systemd --user
nagios1 3359 3357 0 15:07 ? 00:00:00 (sd-pam)
nagios1 3362 3351 0 15:07 ? 00:00:00 /sbin/upstart --user
nagios1 3608 3362 0 15:07 ? 00:00:00 upstart-udev-bridge --daemon --user
nagios1 3617 3362 0 15:07 ? 00:00:00 dbus-daemon --fork --session --address=unix:abstract=/tmp/dbus-9GpxtgvCuu
nagios1 3629 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/hud/window-stack-bridge
nagios1 3660 3362 0 15:07 ? 00:00:00 gnome-keyring-daemon --start --components pkcs11,secrets
nagios1 3674 3362 0 15:07 ? 00:00:00 gpg-agent --homedir /home/nagio 1/.gnupg --use-standard-socket --daemon
nagios1 3678 3362 0 15:07 ? 00:00:00 upstart-dbus-bridge --daemon --session --user --bus-name session
nagios1 3683 3362 0 15:07 ? 00:00:00 upstart-dbus-bridge --daemon --system --user --bus-name system
nagios1 3684 3362 0 15:07 ? 00:00:00 upstart-file-bridge --daemon --user
nagios1 3686 3362 0 15:07 ? 00:00:00 /usr/bin/ibus-daemon --daemonize --xim
nagios1 3695 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd
nagios1 3705 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/bamf/bamfdaemon
nagios1 3707 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
nagios1 3709 3686 0 15:07 ? 00:00:00 /usr/lib/ibus/ibus-dconf
nagios1 3710 3686 0 15:07 ? 00:00:00 /usr/lib/ibus/ibus-ui-gtk3
nagios1 3712 3362 0 15:07 ? 00:00:00 /usr/lib/ibus/ibus-x11 --kill-daemon
nagios1 3741 3362 0 15:07 ? 00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
nagios1 3746 3741 0 15:07 ? 00:00:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
nagios1 3754 3362 0 15:07 ? 00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
nagios1 3764 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/hud/hud-service
nagios1 3766 3362 0 15:07 ? 00:00:00 /usr/lib/unity-settings-daemon/unity-settings-daemon
nagios1 3772 3362 0 15:07 ? 00:00:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
nagios1 3779 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/unity/unity-panel-service
nagios1 3802 3362 0 15:07 ? 00:00:00 /usr/lib/dconf/dconf-service
nagios1 3829 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-messages/indicator-messages-service
nagios1 3830 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-bluetooth/indicator-bluetooth-service
nagios1 3831 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-power/indicator-power-service
nagios1 3832 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-datetime/indicator-datetime-service
nagios1 3833 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-keyboard/indicator-keyboard-service --use-gtk
nagios1 3834 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-sound/indicator-sound-service
nagios1 3835 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-printers/indicator-printers-service
nagios1 3836 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-session/indicator-session-service
nagios1 3837 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/indicator-application/indicator-application-service
nagios1 3840 3362 4 15:07 ? 00:00:13 compiz
nagios1 3957 3362 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-source-registry
nagios1 3982 3362 0 15:07 ? 00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
nagios1 4015 3686 0 15:07 ? 00:00:00 /usr/lib/ibus/ibus-engine-simple
nagios1 4090 3982 0 15:07 ? 00:00:00 /usr/lib/pulseaudio/pulse/gconf-helper
nagios1 4092 3362 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2
root 4103 1 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4106 4103 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4107 4103 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4108 4103 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4109 4103 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4110 4103 0 15:07 ? 00:00:00 /usr/sbin/apache2 -k start
nagios1 4113 3362 0 15:07 ? 00:00:00 /usr/lib/gnome-online-accounts/goa-daemon
nagios1 4136 3772 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-apps
nagios1 4138 3772 0 15:07 ? 00:00:00 nautilus -n
nagios1 4142 3772 0 15:07 ? 00:00:00 /usr/lib/unity-settings-daemon/unity-fallback-mount-helper
nagios1 4143 3772 0 15:07 ? 00:00:00 /usr/lib/vino/vino-server --sm-disable
nagios1 4144 3772 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-fs
nagios1 4149 3362 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-calendar-factory
nagios1 4151 3772 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-extract
nagios1 4161 3772 0 15:07 ? 00:00:00 nm-applet
nagios1 4163 3772 0 15:07 ? 00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
nagios1 4171 3772 1 15:07 ? 00:00:04 /usr/bin/gnome-software --gapplication-service
nagios1 4180 3772 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-user-guides
nagios1 4188 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
nagios1 4195 3362 0 15:07 ? 00:00:00 /usr/lib/gnome-online-accounts/goa-identity-service
nagios1 4217 3362 0 15:07 ? 00:00:00 /usr/lib/telepathy/mission-control-5
nagios1 4224 3362 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-store
nagios1 4253 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
nagios1 4258 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
nagios1 4269 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
nagios1 4280 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
nagios1 4364 4149 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4149x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/4149/2
nagios1 4386 4149 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4149x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/4149/3
nagios1 4396 3362 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-addressbook-factory
nagios 4401 1 0 15:07 ? 00:00:00 /lib/systemd/systemd --user
nagios 4402 4401 0 15:07 ? 00:00:00 (sd-pam)
nagios 4420 1 0 15:07 ? 00:00:00 Xtightvnc :1 -desktop X -auth /home/nagios/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 120000 -rfbauth /home/nagios/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
nagios1 4424 4396 0 15:07 ? 00:00:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4396x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/4396/2
nagios 4483 1 0 15:07 ? 00:00:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
nagios 4527 4483 0 15:07 ? 00:00:00 xfce4-session
nagios 4539 1 0 15:07 ? 00:00:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session xfce4-session
nagios 4540 1 0 15:07 ? 00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
nagios 4545 1 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/xfce4/xfconf/xfconfd
nagios 4552 1 0 15:07 ? 00:00:00 /usr/bin/ssh-agent -s
nagios 4554 1 0 15:07 ? 00:00:00 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/nagios/.cache/gpg-agent-info
nagios 4557 4527 0 15:07 ? 00:00:00 xfwm4 --display :1.0 --sm-client-id 2794025d1-a34c-4efc-a4c3-add871e9e0c5
nagios1 4590 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
nagios 4599 4527 0 15:07 ? 00:00:00 Thunar --sm-client-id 2cfe457e2-fd46-4dbf-848b-9d231deaac42 --daemon
nagios 4601 4527 0 15:07 ? 00:00:00 xfce4-panel --display :1.0 --sm-client-id 28e06950d-8249-4909-b802-a964da4a7035
nagios1 4604 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
nagios 4605 1 0 15:07 ? 00:00:00 xfsettingsd --display :1.0 --sm-client-id 2806df89f-8e04-4f6d-a042-c2ddf8244fcc
nagios 4616 4527 0 15:07 ? 00:00:00 xfdesktop --display :1.0 --sm-client-id 2834685ba-2c08-475f-9e9b-198479984227
nagios 4620 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd
nagios 4625 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1003/gvfs -f -o big_writes
nagios 4639 1 0 15:07 ? 00:00:00 xfce4-power-manager --restart --sm-client-id 26bfe82ae-a0ea-4a19-9f1e-ab37423eee5d
nagios 4642 4527 0 15:07 ? 00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
nagios 4645 4527 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-user-guides
nagios 4648 4527 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-fs
nagios 4649 4527 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-extract
nagios 4651 4527 0 15:07 ? 00:00:00 /usr/bin/python3 /usr/share/system-config-printer/applet.py
nagios 4652 1 0 15:07 ? 00:00:00 xfce4-volumed
nagios 4673 1 0 15:07 ? 00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
nagios 4676 1 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-store
nagios 4684 4673 0 15:07 ? 00:00:00 /usr/lib/pulseaudio/pulse/gconf-helper
nagios 4685 4527 0 15:07 ? 00:00:00 /usr/lib/tracker/tracker-miner-apps
nagios 4687 4527 0 15:07 ? 00:00:00 update-notifier
nagios 4689 4527 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/deja-dup/deja-dup-monitor
nagios 4691 1 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2
nagios 4692 4527 0 15:07 ? 00:00:00 nm-applet
nagios 4708 1 0 15:07 ? 00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
nagios 4713 1 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/xfce4/notifyd/xfce4-notifyd
nagios 4716 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
nagios 4722 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
nagios 4727 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
nagios 4731 1 0 15:07 ? 00:00:00 /usr/lib/gnome-online-accounts/goa-daemon
nagios1 4748 3362 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-metadata
nagios 4754 4708 0 15:07 ? 00:00:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
nagios 4758 1 0 15:07 ? 00:00:00 /usr/lib/gnome-online-accounts/goa-identity-service
nagios 4762 1 0 15:07 ? 00:00:00 /usr/lib/telepathy/mission-control-5
nagios 4776 1 0 15:07 ? 00:00:00 /bin/sh -c /usr/lib/i386-linux-gnu/zeitgeist/zeitgeist-maybe-vacuum; /usr/bin/zeitgeist-daemon
nagios 4779 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
nagios 4786 4776 0 15:07 ? 00:00:00 /usr/bin/zeitgeist-daemon
nagios 4788 1 0 15:07 ? 00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
nagios 4810 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
nagios 4821 1 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/zeitgeist-fts
nagios 4822 1 0 15:07 ? 00:00:00 zeitgeist-datahub
nagios 4835 4601 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/i386-linux-gnu/xfce4/panel/plugins/libsystray.so 6 25165873 systray Notification Area Area where notification icons appear
nagios 4840 4601 0 15:07 ? 00:00:00 /usr/lib/i386-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/i386-linux-gnu/xfce4/panel/plugins/libactions.so 2 25165874 actions Action Buttons Log out, lock or other system actions
nagios 4843 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.8 /org/gtk/gvfs/exec_spaw/0
nagios 4852 1 0 15:07 ? 00:00:00 /usr/lib/gvfs/gvfsd-metadata
nagios1 5012 3772 0 15:08 ? 00:00:00 zeitgeist-datahub
nagios1 5019 3362 0 15:08 ? 00:00:00 /bin/sh -c /usr/lib/i386-linux-gnu/zeitgeist/zeitgeist-maybe-vacuum; /usr/bin/zeitgeist-daemon
nagios1 5023 5019 0 15:08 ? 00:00:00 /usr/bin/zeitgeist-daemon
nagios1 5031 3362 0 15:08 ? 00:00:00 /usr/lib/i386-linux-gnu/zeitgeist-fts
nagios1 5097 3772 0 15:08 ? 00:00:00 update-notifier
www-data 5205 4103 0 15:09 ? 00:00:00 /usr/sbin/apache2 -k start
nagios1 5221 3772 0 15:09 ? 00:00:00 /usr/lib/i386-linux-gnu/deja-dup/deja-dup-monitor
nagios1 5371 3362 1 15:13 ? 00:00:00 /usr/lib/i386-linux-gnu/unity/unity-panel-service --lockscreen-mode
root 5386 4999 0 15:13 pts/2 00:00:00 grep --color=auto nagios\|apache2
Re: Nagios Web interface not working after upgrade
Posted: Fri Aug 19, 2016 2:37 pm
by legalfee
And here is the Web code that comes up:
Code: Select all
<?php
// Allow specifying main window URL for permalinks, etc.
$url = 'main.php';
if (isset($_GET['corewindow'])) {
// The default window url may have been overridden with a permalink...
// Parse the URL and remove permalink option from base.
$a = parse_url($_GET['corewindow']);
// Build the base url.
$url = htmlentities($a['path']).'?';
$url = (isset($a['host'])) ? $a['scheme'].'://'.$a['host'].$url : '/'.$url;
$query = isset($a['query']) ? $a['query'] : '';
$pairs = explode('&', $query);
foreach ($pairs as $pair) {
$v = explode('=', $pair);
if (is_array($v)) {
$key = urlencode($v[0]);
$val = urlencode(isset($v[1]) ? $v[1] : '');
$url .= "&$key=$val";
}
}
}
$this_year = '2015';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<title>Nagios Core</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico">
</head>
<frameset cols="180,*" style="border: 0px; framespacing: 0px">
<frame src="side.php" name="side" frameborder="0" style="">
<frame src="<?php echo $url; ?>" name="main" frameborder="0" style="">
<noframes>
<!-- This page requires a web browser which supports frames. -->
<h2>Nagios Core</h2>
<p align="center">
<a href="https://www.nagios.org/">www.nagios.org</a><br>
Copyright © 2010-<?php echo $this_year; ?> Nagios Core Development Team and Community Contributors.
Copyright © 1999-2010 Ethan Galstad<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>
</frameset>
</html>
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 22, 2016 1:43 am
by Box293
I've been doing some testing and plan on releasing a KB article soon.
I suspect it's related to PHP v7.
Make sure these modules are installed:
Code: Select all
sudo apt-get install -y libapache2-mod-php7.0
Configure needs to be run like:
Code: Select all
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
And these steps:
Code: Select all
sudo a2enmod rewrite
sudo a2enmod cgi
sudo systemctl restart apache2.service
Does this help?
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 22, 2016 7:20 am
by legalfee
Running configure I get this:
root@Monitor2:~# ./configure --with-httpd-conf=/etc/apache2/sites-enabled
-bash: ./configure: No such file or directory
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 22, 2016 9:59 am
by tmcdonald
You will need to run that from the same directory you did when upgrading.
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 22, 2016 11:06 am
by legalfee
I'm not sure what path the upgrade was run in. I ran the upgrade from the GUI. Can I edit sites-enabled and put in nagios.conf?
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 22, 2016 12:27 pm
by rkennedy
Usually the Nagios Core install generates the config during the compile process.
You'll want to download the original .tar.gz for the version you have currently, then extract it, and cd to the folder it extracts. Now, run the ./configure --with-httpd-conf=/etc/apache2/sites-enabled once again.
Re: Nagios Web interface not working after upgrade
Posted: Mon Aug 29, 2016 1:19 pm
by legalfee
OK the answer is to access using this URL
http://xxx.xxx.xxx.xxx/nagios rather than the old URL netbios_name/nagios. I suppose it's a DNS issue. The IP address works but the net bios name does not.