I so was looking for a network monitoring platform to run on a Raspberry Pi (Raspbian). A friend of mine recommended Nagios, so I thought I'd try out the core+plugins. The issue is I get "curl: (6) Couldn't resolve host 'http:192.168.1.169,'" 404 unreachable on other machines or browser, when trying to reach the web interface. I've come to a point where I'm trying random solutions. So I thought I'd ask here first instead of digging the hole even deeper; so to speak.
Initially, I read threw and followed the instructions here: https://assets.nagios.com/downloads/nag ... Source.pdf The installation went fine until "make install-webconf." I did not have any web applications installed like apache to save space on 4GB SD card.
I followed these instruction as a remedy:
1-sudo mkdir /etc/httpd
2-sudo mkdir /etc/httpd/conf.d
3-sudo mkdir /etc/httpd/conf.d/nagios.conf
Along with sudo apt-get install build-essential libgd2-xpm-dev apache2-utils
After doing these suggestions, install-webconf passed without error. Everything was smooth sailing from these. I simply completed the install, added the plugins, then manually started the nagios service. Then this is when I the the web interface wall. Experience wise, I'm not that new to linux but I still have a lot to learn. If you would help me figure this out I would greatly appreciate your efforts. <3
Hopefully this information will be of some use?
Code: Select all
pi@raspberrypi /etc $ ls -l -R ./httpd/
./httpd/:
total 4
drwxr-xr-x 3 nagios nagcmd 4096 Feb 11 16:52 conf.d
./httpd/conf.d:
total 4
drwxr-xr-x 2 nagios nagcmd 4096 Feb 11 17:45 nagios.conf
./httpd/conf.d/nagios.conf:
total 4
-rw-r--r-- 1 nagios nagcmd 1679 Feb 11 17:45 httpd.conf
root@raspberrypi:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@raspberrypi:~# curl http:192.168.1.169/nagios
curl: (6) Couldn't resolve host 'http:192.168.1.169'
root@raspberrypi:~#
root@raspberrypi:~# curl http:192.168.1.169/nagios
curl: (6) Couldn't resolve host 'http:192.168.1.169'
root@raspberrypi:~# curl http:192.168.1.169
curl: (6) Couldn't resolve host 'http:192.168.1.169'
root@raspberrypi:~# id -Gn
root indiecity
root@raspberrypi:~# exit
logout
pi@raspberrypi /etc/httpd/conf.d/nagios.conf $ groups
pi adm dialout cdrom sudo audio video plugdev games users netdev gpio i2c spi input
pi@raspberrypi /etc/httpd/conf.d/nagios.conf $ sudo service --status-all
[ ? ] alsa-utils
[ + ] apache2
[ + ] avahi-daemon
[ - ] bootlogs
[ ? ] bootmisc.sh
[ ? ] cgroup-bin
[ ? ] checkfs.sh
[ ? ] checkroot-bootclean.sh
[ - ] checkroot.sh
[ - ] console-setup
[ + ] cron
[ + ] dbus
[ + ] dhcpcd
[ ? ] dphys-swapfile
[ ? ] fake-hwclock
[ - ] hostname.sh
[ ? ] hwclock.sh
[ + ] ifplugd
[ - ] kbd
[ - ] keyboard-setup
[ ? ] killprocs
[ ? ] kmod
[ - ] lightdm
[ - ] motd
[ ? ] mountall-bootclean.sh
[ ? ] mountall.sh
[ ? ] mountdevsubfs.sh
[ ? ] mountkernfs.sh
[ ? ] mountnfs-bootclean.sh
[ ? ] mountnfs.sh
[ ? ] mtab.sh
[ + ] nagios
[ ? ] networking
[ - ] nfs-common
[ + ] ntp
[ + ] openbsd-inetd
[ ? ] plymouth
[ ? ] plymouth-log
[ - ] procps
[ ? ] raspi-config
[ ? ] rc.local
[ - ] rmnologin
[ - ] rpcbind
[ - ] rsync
[ + ] rsyslog
[ + ] samba
[ ? ] sendsigs
[ + ] ssh
[ - ] sudo
[ + ] tor
[ + ] triggerhappy
[ + ] udev
[ ? ] udev-mtab
[ ? ] umountfs
[ ? ] umountnfs.sh
[ ? ] umountroot
[ - ] urandom
[ - ] x11-common