According to the Nagios documentation (nagios.sourceforge.net/docs/2_0/cgiauth.html) authenticated contacts have access to Service Status Information, Service Configuration Information, Service History, Service Notifications, Service Commands, etc. In addition, users that have been added to the authorized_for_all_services and authorized_for_all_service_commands directives in cgi.cfg should have access to all service related CGI’s.
The problem that I am currently facing is that even though I am logging in with the nagiosadmin account, which has been granted all permissions in cgi.cfg including authorized_for_all_service_commands and authorized_for_all_services and is also an authenticated contact for all services, I am unable to view most service related information in the CGI’s.
I am unable to view:
Any service configuration options/information in the status CGI
All service statistics in the trends CGI
Any statistics for individual services the availability CGI
Any service statistics in the histogram CGI
I am able to view:
Any service group related statistics in the availability CGI
Any aggregated (e.g. all services) statistics in the availability CGI
Service related information in the summary CGI
Does anybody have any ideas about what is going on? Where should I look to try and troubleshoot this?
If i remeber right users only have access for the hosts/services for which they are a contact…
Could this be the issue?
I remember reading about that in the manual. So I guess that maybe I am not 100% clear on what it means to be a contact in this case. Presently, I have notifications set up to send host/service related mail alerts to the email address registered with the nagiosadmin account (contact_groups is set to “admins” in both the generic host and service template definitions, and nagiosadmin is a member of “admins”), and I have been receiving all host and service mail alerts in the in-box without any problems. This all means that nagiosadmin should be a valid registered contact, right?
I installed from source (v3.1.0), and I applied the Japanese language patch Nagios-JP (sourceforge.jp/projects/nagios-jp/). Some of the CGI’s were not set up to handle UTF-8 and were munging the Japanese characters so I had to alter/recompile a few of the CGIs.
No, I’m still experiencing the same problems described earlier (i.e. I can’t view most service related information in the CGI’s).
the latest is 3.2.1… do you need the older version for the JP Patch?
Yes, exactly. I need to run 3.1.0 because, unfortunately, that is the latest version of Nagios that the JP Patch supports.
Was this an issue in 3.1.0? I can’t upgrade to a newer version because I really, really need this patch.
If you have any ideas please let me know. I think what I’m going to do at this point is do a clean recompile/installation from source without the patch and see if I can reproduce the problem.
Okay, I just completed a fresh Nagios 3.1.0 install and was able to successfully access all previously unaccessible service related information in the CGI’s. Next, I tried reinstalling with the JP Nagios patch and, again, I was able to access all service related information in the CGI’s.
So we can conclude that the problem is not related to the particular version of Nagios being used, nor the JP Nagios patch, but probably something I did configuration-wise…