Page 1 of 1

Nagios 4 on Raspberry PI 3

Posted: Thu May 12, 2016 10:57 pm
by t3dus
So I installed Nagios 4 on my raspberry Pi but after loading into the interface it shows a big red X and says "Not running"

I manually tried to restart nagios and even though it claims it's running the interface states differently.

Code: Select all

root@raspberrypi:~# systemctl status nagios
● nagios.service - Nagios
   Loaded: loaded (/etc/systemd/system/nagios.service; enabled)
   Active: active (running) since Fri 2016-05-13 03:56:25 UTC; 22s ago
 Main PID: 804 (nagios)
   CGroup: /system.slice/nagios.service
           ├─804 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cf...
           ├─805 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           ├─806 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           ├─807 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           ├─808 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           ├─809 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           ├─810 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/...
           └─811 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cf...

May 13 03:56:25 raspberrypi nagios[804]: nerd: Fully initialized and ready t...!
May 13 03:56:25 raspberrypi nagios[804]: wproc: Successfully registered mana...r
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...5
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...8
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...6
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...9
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...7
May 13 03:56:25 raspberrypi nagios[804]: wproc: Registry request: name=Core ...0
May 13 03:56:25 raspberrypi nagios[804]: Successfully launched command file ...1
May 13 03:56:25 raspberrypi nagios[804]: Successfully launched command file ...1
Hint: Some lines were ellipsized, use -l to show in full.
What could be the problem?

Re: Nagios 4 on Raspberry PI 3

Posted: Thu May 12, 2016 11:16 pm
by t3dus
Nm. I ran these 2 commands and it fixed the problem.

Code: Select all

# mv /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/
# service apache2 restart

Re: Nagios 4 on Raspberry PI 3

Posted: Fri May 13, 2016 5:13 am
by rhassing
Normally you should have created a symbolic link instead of moving the file.
But I assume this works as well.

Re: Nagios 4 on Raspberry PI 3

Posted: Fri May 13, 2016 9:20 am
by mcapra
@t3dus,

I'm glad you were able to find a solution! As rhassing pointed out, typically a symlink would be used in favor of moving the file. Is it all right if we lock this topic and mark it as resolved?

Re: Nagios 4 on Raspberry PI 3

Posted: Tue Apr 18, 2017 8:01 pm
by t3dus
Yes mark it as resolved. Yes you are likely right about the symbolic link but oh well it still works fine.