Page 1 of 1

User Not Authorized for one Host

Posted: Tue Feb 12, 2013 4:41 pm
by CGraham
I have a user that when he tries to go to the Host or Service details for a particular host he gets an error:

"You are not authorized to view the requested object, or the object does not exist."

I couldn't hunt down where the issue was coming from, so finally I just deleted the host and cloned a host he has access to. Renamed and re-ip'd the host and now he's getting the same error again. I did a spot check of other hosts and he can access them just fine. Additionally I logged in as nagiosadmin and could bring up the Host and Service detail pages of the problem Host with no issues (so I know the object exists).

Any ideas?

System Profile
System:
Nagios XI Version : 2012R1.2
2.6.32-220.13.1.el6.i686 i686
CentOS release 6.2 (Final)
Gnome Installed

Apache Information
PHP Version: 5.3.3
Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET CLR 1.1.4322; .NET4.0E; MS-RTC LM 8)
Server Name: nagios-savvis
Server Address: 10.X.X.X
Server Port: 80

Date/Time
PHP Timezone: America/New_York
PHP Time: Tue, 12 Feb 2013 16:38:51 -0500
System Time: Tue, 12 Feb 2013 16:38:51 -0500

Nagios XI Data
nagios (pid 11899) is running...
NPCD running (pid 1952).
ndo2db (pid 2044) is running...
CPU Load 15: 3.34
Total Hosts: 755
Total Services: 9215
Function 'get_base_uri' returns: http://nagios-savvis/nagiosxi/
Function 'get_base_url' returns: http://nagios-savvis/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://nagios-savvis/nagiosxi/includes/ ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/

Re: User Not Authorized for one Host

Posted: Tue Feb 12, 2013 4:54 pm
by lmiltchev
Is this user set up as a monitoring contact for this particular host?

Re: User Not Authorized for one Host

Posted: Wed Feb 13, 2013 9:19 am
by CGraham
Yes. This was the subject of his complaints. He was getting the alarms but couldn't put the server in downtime.

I confirmed in the Notification History for the host.

Re: User Not Authorized for one Host

Posted: Wed Feb 13, 2013 11:24 am
by abrist
Could you post the specific host and service config, and the contact config in a code wrap? (obfuscate any sensitive data)

Re: User Not Authorized for one Host

Posted: Wed Feb 13, 2013 11:25 am
by lmiltchev
Please, send us your latest configuration snapshot at [email protected]. It would be easier to further troubleshoot this issue via email. Also, let us know, what is the username of this contact, and what host he/she is trying to view. Thanks!