Nagios services configuration from Web UI.
Nagios services configuration from Web UI.
Hi All,
Is it possible if I can configure my new services from Nagios Core Web UI.? Currently, I am using nagios core 4.3.4 version.
Please let me know If I can do that from Web UI also.
Is it possible if I can configure my new services from Nagios Core Web UI.? Currently, I am using nagios core 4.3.4 version.
Please let me know If I can do that from Web UI also.
Re: Nagios services configuration from Web UI.
No, Core does not have a web interface for configuration. Our commercial product Nagios XI can do that, otherwise there is a third-party addon called NagiosQL that is meant to work with Core, but we do not provide support for that.
Former Nagios employee
Re: Nagios services configuration from Web UI.
Here's a post I made on the topic:
https://support.nagios.com/forum/viewto ... 57#p250757
If you're into configuration management, I've found the nagios cookbook on the Chef supermarket to be a delight to work with. Though that's not really a simple "Web UI".
https://support.nagios.com/forum/viewto ... 57#p250757
If you're into configuration management, I've found the nagios cookbook on the Chef supermarket to be a delight to work with. Though that's not really a simple "Web UI".
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagios services configuration from Web UI.
Thanks team for your assistance, I will try NagiosQL and let you know if I face any difficulty.
Re: Nagios services configuration from Web UI.
I have downloaded NagiosQL on my system(Ubuntu 16.04 LTS) but when I am trying to open the NagiosQL application via this url http://localhost/nagiosql32/install/index.php, It gives me below mentioned error:-
**********************************************************************
The requested URL /nagiosql32/nagios/install/index.php was not found on this server.
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
***********************************************************************
But I have verified this directory/files "nagiosql32/install/index.php" are available on my local system. Can you please assist me on this.?
**********************************************************************
The requested URL /nagiosql32/nagios/install/index.php was not found on this server.
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
***********************************************************************
But I have verified this directory/files "nagiosql32/install/index.php" are available on my local system. Can you please assist me on this.?
Re: Nagios services configuration from Web UI.
It seems your nagiosql directory is not reachable for your webserver.
Have you configured your apache2 server? What is the DocumentRoot of your server? By default Ubuntu 16.04 has /var/www/html as DocumentRoot, so your nagiosql directory should be located below this path, as example in /var/www/html/nagiosql/install/index.php.
Your path is named nagiosql32 - have you downloaded NagioQL 3.2.0 or the new 3.4.0 version? Ubuntu 16.04 comes with PHP7 - therefore you should use NagiosQL 3.4.0 - version 3.2.0 is for PHP5 only.
Have you configured your apache2 server? What is the DocumentRoot of your server? By default Ubuntu 16.04 has /var/www/html as DocumentRoot, so your nagiosql directory should be located below this path, as example in /var/www/html/nagiosql/install/index.php.
Your path is named nagiosql32 - have you downloaded NagioQL 3.2.0 or the new 3.4.0 version? Ubuntu 16.04 comes with PHP7 - therefore you should use NagiosQL 3.4.0 - version 3.2.0 is for PHP5 only.
Re: Nagios services configuration from Web UI.
I have followed below mentioned steps for NagiosQL installation. Please have a look at this and let me know.
What was went wrong.?
1-Download nagiosql_320.tar.gz
2-cp nagiosql_320.tar.gz /var/www
3-sudo chown -R www-data:www-data nagiosql32
4-sudo vim /etc/apache2/sites-available/nagiosql32.conf
5-add the following lines
Alias /nagiosql32 /var/www/nagiosql32/
<Directory /var/www/nagiosql32/>
Options None
Order allow,deny
allow from all
</Directory>
Save and exit the file
6-Enable NagioSQL website using the following command
sudo a2ensite nagiosql32
7-To activate the new configuration, you need to run:
sudo service apache2 reload
8-Now you can access the NgiosQL web interface using the following URL
http://serverip/nagiosql32
I hope it will help us to debug the issue and now I am facing one more problem after performing these steps I am not able to start/restart my apache service also. getting this error.
**************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2018-05-10 14:05:31 IST; 24min ago
Docs: man:systemd-sysv-generator(8)
Process: 1846 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Output of config test was:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/nagiosql32.conf:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Alias takes two arguments, a fakename and a realname
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Action 'configtest' failed.
May 10 14:05:30 ravi-VirtualBox apache2[1846]: The Apache error log may have more information.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Control process exited, code=exited status=1
May 10 14:05:31 ravi-VirtualBox systemd[1]: Failed to start LSB: Apache2 web server.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Unit entered failed state.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Failed with result 'exit-code'.
May 10 14:11:50 ravi-VirtualBox systemd[1]: Stopped LSB: Apache2 web server.
********************************************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
What was went wrong.?
1-Download nagiosql_320.tar.gz
2-cp nagiosql_320.tar.gz /var/www
3-sudo chown -R www-data:www-data nagiosql32
4-sudo vim /etc/apache2/sites-available/nagiosql32.conf
5-add the following lines
Alias /nagiosql32 /var/www/nagiosql32/
<Directory /var/www/nagiosql32/>
Options None
Order allow,deny
allow from all
</Directory>
Save and exit the file
6-Enable NagioSQL website using the following command
sudo a2ensite nagiosql32
7-To activate the new configuration, you need to run:
sudo service apache2 reload
8-Now you can access the NgiosQL web interface using the following URL
http://serverip/nagiosql32
I hope it will help us to debug the issue and now I am facing one more problem after performing these steps I am not able to start/restart my apache service also. getting this error.
**************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2018-05-10 14:05:31 IST; 24min ago
Docs: man:systemd-sysv-generator(8)
Process: 1846 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Output of config test was:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/nagiosql32.conf:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Alias takes two arguments, a fakename and a realname
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Action 'configtest' failed.
May 10 14:05:30 ravi-VirtualBox apache2[1846]: The Apache error log may have more information.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Control process exited, code=exited status=1
May 10 14:05:31 ravi-VirtualBox systemd[1]: Failed to start LSB: Apache2 web server.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Unit entered failed state.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Failed with result 'exit-code'.
May 10 14:11:50 ravi-VirtualBox systemd[1]: Stopped LSB: Apache2 web server.
********************************************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
Re: Nagios services configuration from Web UI.
I don't know much about NagiosQL, but the error is in your apache configuration as systemctl mentions:
Code: Select all
May 10 14:05:30 ravi-VirtualBox apache2[1846]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/nagiosql32.conf:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Alias takes two arguments, a fakename and a realname
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Action 'configtest' failed.
May 10 14:05:30 ravi-VirtualBox apache2[1846]: The Apache error log may have more information.
Former Nagios Employee