Questions about NagiosQL

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.

Questions about NagiosQL

Postby freddy00 » Mon Nov 18, 2019 12:20 pm

Hello. I just started to use NagiosQL to configure Nagios Core.

The tool is great and I have zero problems using it at the moment. But I have a few questions for those of you who are more experienced with it:

1) is it possible to edit the "resource.cfg" file (the one holding $USERx$ variables) with a web-browser, or only with vi?
2) it seems NagiosQL is only able to restart the nagios service, while it cannot start it if nagios isn't running. why that? is it by design? is it possible to start Nagios Core using a web-browser if it's not running?
3) if I associate a service to a hostgroup, is it possible to exclude a single host? I know Nagios syntax is to use a "!" in front of the host, but I cannot find how to do that with NagiosQL (maybe it's not possible?).
4) if I associate a service to a hostgroup, I can see which hostgroup(s) use that service, but vice-versa if I select an hostgroup I cannot see which services are associated to it. Mmmmh pity, I guess I have to contact the NagiosQL devs to add that feature.

ok thanks
regards, Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Postby benjaminsmith » Mon Nov 18, 2019 5:02 pm

Hi Fredrico,

For very specific questions or enhancement requests for NagiosQl, I would recommend reaching out directly to the developer/maintainer. I will try to answer your questions the best I can.

1. You'll want to use vi to edit the resource.cfg file. Remember to re-start Core after making any changes.

2. The re-start is required functionality for Nagoio Core to read new files and starting/stopping is not necessary for configuration management. Nagios is a dameon and is always run on the server ( unless there is an issue or the user has stopped it.)

3. Assigning a service to a hostgroup is a convenient way to add services to those hosts, but it's not that granular. The best approach would be either to create different hostgroups or remove the unwanted service from the host.

4. Can you provide screenshots, so I can better understand this? Also, you might want to contact the developer for such an enhancement.

Hope that helps and let us know if you need anything else.
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
benjaminsmith
 
Posts: 1955
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Questions about NagiosQL

Postby freddy00 » Tue Nov 19, 2019 10:34 am

Hello Benjamin
thanks for the great answers! here some notes:

1. You'll want to use vi to edit the resource.cfg file. Remember to re-start Core after making any changes.

ok. I just wondered because NagiosQL lets you edit files like "nagios.cfg" and "cgi.cfg", but not "resource.cfg" for some reason (maybe for security reasons as it contains passwords?)

2. The re-start is required functionality for Nagoio Core to read new files and starting/stopping is not necessary for configuration management. Nagios is a dameon and is always run on the server ( unless there is an issue or the user has stopped it.)

yes, as you mentioned it can happen a user clicks on "shutdown the Nagios process" from the cgi. Both cmd.cgi and NagiosQL let you restart the Nagios process, but not start it if it's not running. It makes sense for cmd.cgi (if Nagios isn't running, nor is the cgi), but with NagiosQL it could have been useful.

3+4 - I will contact the developers.

greetz,
Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Postby benjaminsmith » Tue Nov 19, 2019 12:05 pm

Hi Frederico,

Well, hopefully, that helps out and thanks for the follow-up. Did you have any other questions or may we close this post?
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
benjaminsmith
 
Posts: 1955
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Questions about NagiosQL

Postby freddy00 » Wed Nov 20, 2019 8:33 am

if you leave the topic open I'll post the answers I'll get from the devs :)
regards, Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Postby scottwilkerson » Wed Nov 20, 2019 8:37 am

freddy00 wrote:if you leave the topic open I'll post the answers I'll get from the devs :)
regards, Federico

Sounds good
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Questions about NagiosQL

Postby freddy00 » Fri Nov 22, 2019 12:18 pm

hello. I got some answers!
1. resource file cannot be edited with NagiosQL. confirmed. more info here: https://sourceforge.net/p/nagiosql/disc ... cd16cc8a8/
2. in NagiosQL you can only restart Nagios process, not start it. confirmed. this is for security reasons. more info here: https://sourceforge.net/p/nagiosql/disc ... 4cd073b42/
3. this is doable in NagiosQL, damn me for no RTFM :) there's a red arrow for that. more info here: https://sourceforge.net/p/nagiosql/disc ... cd13ab040/
4. not doable at the moment with NagiosQL, but I think it could be a nice feature. let's see if they make it doable one day. more info here: https://sourceforge.net/p/nagiosql/disc ... 10670ec7d/
greetz to all
Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Postby scottwilkerson » Fri Nov 22, 2019 12:40 pm

freddy00 wrote:hello. I got some answers!
1. resource file cannot be edited with NagiosQL. confirmed. more info here: https://sourceforge.net/p/nagiosql/disc ... cd16cc8a8/
2. in NagiosQL you can only restart Nagios process, not start it. confirmed. this is for security reasons. more info here: https://sourceforge.net/p/nagiosql/disc ... 4cd073b42/
3. this is doable in NagiosQL, damn me for no RTFM :) there's a red arrow for that. more info here: https://sourceforge.net/p/nagiosql/disc ... cd13ab040/
4. not doable at the moment with NagiosQL, but I think it could be a nice feature. let's see if they make it doable one day. more info here: https://sourceforge.net/p/nagiosql/disc ... 10670ec7d/
greetz to all
Federico


Thanks for sharing back your answers!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: Alan, TDBruno and 20 guests

cron