Questions about NagiosQL

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
freddy00
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Questions about NagiosQL

Post by freddy00 »

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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Questions about NagiosQL

Post by benjaminsmith »

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!
freddy00
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Post by freddy00 »

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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Questions about NagiosQL

Post by benjaminsmith »

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!
freddy00
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Post by freddy00 »

if you leave the topic open I'll post the answers I'll get from the devs :)
regards, Federico
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Questions about NagiosQL

Post by scottwilkerson »

freddy00 wrote:if you leave the topic open I'll post the answers I'll get from the devs :)
regards, Federico
Sounds good
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
freddy00
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: Questions about NagiosQL

Post by freddy00 »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Questions about NagiosQL

Post by scottwilkerson »

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!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked