Hi,
Using a wizard, I added a windows server and added various services, no problem there. I have a user who can see the host and the details of the services on that host.
Using the Core Config Manager I made a copy of one of the services, changed the description and check command to suit my needs and made it active. nagiosadmin can see the service and get the details. My user can see the service and its status but when he clicks on the description, he gets the page: "Not Authorized
You are not authorized to view the requested object, or the object does not exist."
I've added other services to that host and they all work as expected. This one doesn't. Any clues on what to check?
Cheers,
Lee Benson
Transmax
Not Authorized
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Not Authorized
Can you go to Configure -> CCM -> Services
And click the download icon next to 1 service that isn't working, and one that is. Post them in your reply (remove sensitive data) stating which is working and which is not. Also, state the user they are working for.
Also, it would be helpful if we had the host configuration too.
And click the download icon next to 1 service that isn't working, and one that is. Post them in your reply (remove sensitive data) stating which is working and which is not. Also, state the user they are working for.
Also, it would be helpful if we had the host configuration too.
Re: Not Authorized
OK, here we go:
Below are the service config and the host config.
nagiosadmin can see details of all services
tmr (member of the TMR_group) can see all service details except "service_description Smart Array Health"
I 'solved' the problem by creating another service "service_description Array Health", which tmr can see just fine.
Cheers,
Lee
Transmax
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-12 07:26:40
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name aspley_SAN_1
service_description Array Health
use xiwizard_windowsserver_nsclient_service
check_command check_smartarray!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!CPULOAD!-l 5,80,90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Drive C: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!USEDDISKSPACE!-l C -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Drive E: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!USEDDISKSPACE!-l E -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Logon Errors
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Server\\Errors System","Login Errors since last reboot is %.f" -w 2 -c 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Memory Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!MEMUSE!-w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Page File Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 70 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Ping
use xiwizard_genericnetdevice_ping_service,xiwizard_windowsserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Server Work Queues
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Server Work Queues(0)\\Queue Length","Current work queue (an indication of processing load) is %.f " -w 4 -c 7
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Smart Array Health
use xiwizard_windowsserver_nsclient_service
check_command check_smartarray!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Uptime
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!UPTIME
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-12 07:31:42
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define host {
host_name aspley_SAN_1
use xiwizard_genericnetdevice_host
address 10.225.0.36
hostgroups aspley
max_check_attempts 5
check_interval 5
retry_interval 1
contacts nagiosadmin
contact_groups TMR_group
notification_interval 60
first_notification_delay 0
notification_options d,u,r,f,s
notifications_enabled 1
icon_image hp.png
statusmap_image hp.png
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Below are the service config and the host config.
nagiosadmin can see details of all services
tmr (member of the TMR_group) can see all service details except "service_description Smart Array Health"
I 'solved' the problem by creating another service "service_description Array Health", which tmr can see just fine.
Cheers,
Lee
Transmax
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-12 07:26:40
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name aspley_SAN_1
service_description Array Health
use xiwizard_windowsserver_nsclient_service
check_command check_smartarray!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!CPULOAD!-l 5,80,90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Drive C: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!USEDDISKSPACE!-l C -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Drive E: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!USEDDISKSPACE!-l E -w 80 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Logon Errors
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Server\\Errors System","Login Errors since last reboot is %.f" -w 2 -c 20
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Memory Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!MEMUSE!-w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Page File Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 70 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Ping
use xiwizard_genericnetdevice_ping_service,xiwizard_windowsserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Server Work Queues
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!COUNTER!-l "\\Server Work Queues(0)\\Queue Length","Current work queue (an indication of processing load) is %.f " -w 4 -c 7
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
define service {
host_name aspley_SAN_1
service_description Smart Array Health
use xiwizard_windowsserver_nsclient_service
check_command check_smartarray!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
contacts nagiosadmin
register 1
}
define service {
host_name aspley_SAN_1
service_description Uptime
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!PASSWORD!UPTIME
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-12 07:31:42
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define host {
host_name aspley_SAN_1
use xiwizard_genericnetdevice_host
address 10.225.0.36
hostgroups aspley
max_check_attempts 5
check_interval 5
retry_interval 1
contacts nagiosadmin
contact_groups TMR_group
notification_interval 60
first_notification_delay 0
notification_options d,u,r,f,s
notifications_enabled 1
icon_image hp.png
statusmap_image hp.png
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Re: Not Authorized
I looked through the service definition and didn't find anything wrong with it. I would suggest using the "newly defined" service (Array Health). I've seen a similar issue only once and as far as I remember, renaming was the only solution that worked.
Be sure to check out our Knowledgebase for helpful articles and solutions!