免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2662 | 回复: 1
打印 上一主题 下一主题

debian5.07环境下nagios3.0.6版本的一个妖怪问题(我真不知道该怎么描述)。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-30 16:22 |只看该作者 |倒序浏览
apt-get install nagios 方式。

在命令行运行正常,在web页面是出错的。
谁能告诉我吧,指点我问题在哪里吗?或者可能是什么?

显示请看图片

我在命令行运行:

host:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nt -H 192.168.2.107 -p 12489 -s 123456 -v SERVICESTATE -d SHOWALL -l W3SVC
W3SVC: Started

host:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nt -H 192.168.2.107 -p 12489 -s 123456 -v PROCSTATE -d SHOWALL -l Explorer.exe
Explorer.EXE: Running

host:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nt -H 192.168.2.107 -p 12489 -s 123456 -v USEDDISKSPACE -l c -w 80 -c 90
c:\ - total: 58.60 Gb - used: 20.32 Gb (35%) - free 38.28 Gb (65%) | 'c:\ Used Space'=20.32Gb;46.88;52.74;0.00;58.60


配置文件:

define host{
        use             windows-server  ; Inherit default values from a template
        host_name       107    ; The name we're giving to this host
        alias           107Server       ; A longer name associated with the host
        address         192.168.2.107   ; IP address of the host
        }


# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name               107
        service_description     NSClient++ Version
        check_command           check_nt!CLIENTVERSION
        }



# Create a service for monitoring the uptime of the server
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name              107
        service_description     Uptime
        check_command           check_nt!UPTIME
        }



# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name               107
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }



# Create a service for monitoring
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name              107
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }



# Create a service for monitoring C:\ disk usage
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name              107
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }



# Create a service for monitoring the W3SVC service
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name              107
        service_description     W3SVC
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
        }



# Create a service for monitoring the Explorer.exe process
# Change the host_name to match the name of the host you defined above

define service{
        use                     generic-service
        host_name               107
        service_description     Explorer
        check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
        }

论坛徽章:
0
2 [报告]
发表于 2010-12-31 14:03 |只看该作者
解决了,我自己编译了一个nagios就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP