我们使用nagios来监视我们的网络。是否有人找到包含与nsclient++中的服务相对应的条目的示例映射文件?
发布于 2010-03-29 19:10:32
我通常获得所有窗口框的4个主要指标: cpu使用率、正常运行时间(用于绘图)、内存利用率、驱动器c上的空闲空间--通过etc/services文件夹中的cfg文件,如下所示,然后通过就像我在另一个答案中所描述的捕获特定的windows性能计数器。
define service{
use default_service
hostgroup windows-boxes
service_description C_Drive_Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use default_service
hostgroup windows-boxes
service_description Memory_Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use default_service
hostgroup windows-boxes
service_description CPU_Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use default_service
hostgroup windows-boxes service_description Uptime
check_command check_nt!UPTIME
}
define service{
use default_service
hostgroup windows-boxes
service_description NSClient_Version
check_command check_nt!CLIENTVERSION
}check_nt和check_nrpe的酷之处在于,您可以轻松地将自己的检查部署到windows框,甚至批处理文件脚本!请确保通过修改nsc.ini文件加密和保护该连接。另外,确保您的windows主机只接受来自nagios服务器(S)的入站连接(也在nsc.ini文件上)。
https://serverfault.com/questions/124224
复制相似问题