Chinaunix首页 | 论坛 | 博客
  • 博客访问: 49597
  • 博文数量: 22
  • 博客积分: 941
  • 博客等级: 准尉
  • 技术积分: 242
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-27 13:20
文章分类
文章存档

2012年(3)

2011年(7)

2010年(12)

我的朋友

分类: Mysql/postgreSQL

2011-03-12 14:19:29

表以及视图
select
nc.alias AS alias,
nc.contact_id AS contact_id,
no.name1 AS host_name,
hg.alias AS hostgroup_name,
no.name2 AS monitor_service,
nn.start_time AS start_time,
nn.end_time AS end_time,
nn.output AS output
from
nagios_contactnotifications ncn,
nagios_contacts nc,
nagios_notifications nn,
nagios_objects no,
nagios_hostgroup_members hm,
nagios_hostgroups hg,
nagios_services ns
where
ncn.notification_id=nn.notification_id
and ncn.contact_object_id=nc.contact_object_id
and no.object_id=ns.service_object_id
and nn.object_id=no.object_id
and hm.host_object_id=ns.host_object_id
and hg.hostgroup_id=hm.hostgroup_id order by nn.start_time desc
阅读(487) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-27 18:57:13

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com