Nagios services configuration from Web UI.

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios services configuration from Web UI.

Postby Ravikimt » Sun May 06, 2018 7:45 am

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.
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Postby tmcdonald » Mon May 07, 2018 9:43 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Operations Engineer
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios services configuration from Web UI.

Postby mcapra » Mon May 07, 2018 10:46 am

Here's a post I made on the topic:
viewtopic.php?f=7&t=48411&p=250757#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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3313
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios services configuration from Web UI.

Postby tmcdonald » Mon May 07, 2018 4:39 pm

Thanks for the assist, @mcapra!

@Ravikimt, please let us know if you need further assistance.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Operations Engineer
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios services configuration from Web UI.

Postby Ravikimt » Tue May 08, 2018 3:42 am

Thanks team for your assistance, I will try NagiosQL and let you know if I face any difficulty.
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Postby tmcdonald » Tue May 08, 2018 9:15 am

We'll keep this open for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Operations Engineer
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios services configuration from Web UI.

Postby Ravikimt » Wed May 09, 2018 7:27 am

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.?
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Postby martinQL » Wed May 09, 2018 2:12 pm

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.
martinQL
 
Posts: 9
Joined: Wed Apr 25, 2018 4:22 am

Re: Nagios services configuration from Web UI.

Postby Ravikimt » Thu May 10, 2018 4:03 am

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!
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Postby rkennedy » Thu May 10, 2018 8:36 am

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
rkennedy
 
Posts: 6578
Joined: Mon Oct 05, 2015 11:45 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 24 guests

cron