Nagios - Cgi.cfg Question

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
Pradeeps
Posts: 38
Joined: Thu Dec 22, 2016 11:05 am

Nagios - Cgi.cfg Question

Post by Pradeeps »

Hello Folks,

I have installed Nagios Core - 4.2.4 with nagiosql-3.4.0. I have recently changed the apache authentication to ldap and it works fine. However, I was going though "cgi.cfg" file and I see "nagiosadmin" user has been mentioned for few authorization.

Code: Select all

authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
My question is, what exactly the purpose of "cgi.cfg" file and also since I am not using "nagiosadmin" user anymore, will it impact any functionality? Any information would be helpful. Thanks in advance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios - Cgi.cfg Question

Post by scottwilkerson »

It gives you the ability to add special permissions for users to see/access hosts/services that they are not a contact for.

https://assets.nagios.com/downloads/nag ... igcgi.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pradeeps
Posts: 38
Joined: Thu Dec 22, 2016 11:05 am

Re: Nagios - Cgi.cfg Question

Post by Pradeeps »

Thanks for your response. May I know the purpose of the file? I dont see i am using it directly through nagiosql. So can I assume it is used in the background by nagios daemon?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios - Cgi.cfg Question

Post by scottwilkerson »

Pradeeps wrote:Thanks for your response. May I know the purpose of the file? I dont see i am using it directly through nagiosql. So can I assume it is used in the background by nagios daemon?
It is used by the nagios CGI's when you access the web UI
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pradeeps
Posts: 38
Joined: Thu Dec 22, 2016 11:05 am

Re: Nagios - Cgi.cfg Question

Post by Pradeeps »

Got it. Therefore the authorization will impact only if we use the nagios native GUI. I use thruk and I am already allowing necessary users in it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios - Cgi.cfg Question

Post by scottwilkerson »

Pradeeps wrote:Got it. Therefore the authorization will impact only if we use the nagios native GUI. I use thruk and I am already allowing necessary users in it.
That sounds correct, as long as your UI doesn't depend on the Nagios native CGI's they wouldn't have any impact.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pradeeps
Posts: 38
Joined: Thu Dec 22, 2016 11:05 am

Re: Nagios - Cgi.cfg Question

Post by Pradeeps »

Great thank you.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios - Cgi.cfg Question

Post by scottwilkerson »

Pradeeps wrote:Great thank you.
No Problem.

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked