If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Unable to grant SYSMON Authority

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-11-11, 06:49
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Red face Unable to grant SYSMON Authority

Hi, I wanted to grant a user to SYSMON Authority,

So i have added the group which user belongs to the SYSMON group

[db2inst1@WESSSTDW01 ~]$ db2 get dbm cfg |grep SYS
SYSADM group name (SYSADM_GROUP) = DB2IADM1
SYSCTRL group name (SYSCTRL_GROUP) =
SYSMAINT group name (SYSMAINT_GROUP) =
SYSMON group name (SYSMON_GROUP) = NAGIOS
Priority of agents (AGENTPRI) = SYSTEM
[db2inst1@WESSSTDW01 ~]$

Then refreshed the instance (stop/start)

when i try to execute a command to assign permission to that user, i ended in this error

[db2inst1@WESSSTDW01 ~]$ db2 grant select,update on table SYSTOOLS.POLICY to NAGIOS
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0569N Authorization ID "NAGIOS" does not uniquely identify a user, a group
or a role in the system. SQLSTATE=56092
[db2inst1@WESSSTDW01 ~]$


when i can check for authorizations i see

[db2inst1@WESSSTDW01 ~]$ db2 get authorizations

Administrative Authorizations for Current User

Direct SYSADM authority = NO
Direct SYSCTRL authority = NO
Direct SYSMAINT authority = NO
Direct DBADM authority = YES
Direct CREATETAB authority = NO
Direct BINDADD authority = NO
Direct CONNECT authority = NO
Direct CREATE_NOT_FENC authority = NO
Direct IMPLICIT_SCHEMA authority = NO
Direct LOAD authority = NO
Direct QUIESCE_CONNECT authority = NO
Direct CREATE_EXTERNAL_ROUTINE authority = NO
Direct SYSMON authority = NO

Indirect SYSADM authority = YES
Indirect SYSCTRL authority = NO
Indirect SYSMAINT authority = NO
Indirect DBADM authority = NO
Indirect CREATETAB authority = YES
Indirect BINDADD authority = YES
Indirect CONNECT authority = YES
Indirect CREATE_NOT_FENC authority = NO
Indirect IMPLICIT_SCHEMA authority = YES
Indirect LOAD authority = NO
Indirect QUIESCE_CONNECT authority = NO
Indirect CREATE_EXTERNAL_ROUTINE authority = NO
Indirect SYSMON authority = NO

[db2inst1@WESSSTDW01 ~]$


I see direct/indirect SYSMON authority is NO, Is that the reason i am unable to assign that group to SYSMON,

Pl. suggest
Reply With Quote
  #2 (permalink)  
Old 10-11-11, 08:57
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The entry for SYSMON_GROUP, etc in dbm cfg must be groups, not user accounts. The group and user account in that group must be defined to the operating system.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 10-11-11, 10:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
If you have both user and group named nagios , you can use

Code:
db2 grant select,update on table SYSTOOLS.POLICY to user NAGIOS
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 10-12-11, 00:04
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Marcus,

both my user and group are same NAGIOS

Sathya,
Thanks it worked,

This will confirm that the user/group is assigned SYSMON Authority.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On