2008年12月1日星期一

添加cacti用户的过程

添加cacti用户的过程
User Management\add

user name :testuser
Full Name:testuser
Password: ******
Enabled: 选中
Account Options:User Must Change Password at Next Login 选中
Email Address:testuser@test.coom

Realm Permissions:
View Graphs
View Thresholds
View Monitoring
View Host Info
Create

回到user管理界面编辑改用户:
Graph Permissions:
Graph Permissions (By Device) 将Deny->Allow
选择允许查看的Host,Add
Tree Permissions: 将Deny->Allow
选择Root,Add
SAVE

-------------

手工添加用户可查看的主机监控信息,用于批量处理用户权限
user_id在user_auth里查到
insert into user_auth_perms(user_id,item_id,type)
select "4",id,"3"
from host
where id not in (select item_id from user_auth_perms where user_id ="4")