简体   繁体   English

Nagios使用check_mssql_health检查所有实例

[英]Nagios check all instances with check_mssql_health

如何使Nagios使用check_mssql_health检查SQL Server的所有实例?

Did you tried the following? 您尝试了以下吗?

Connecting with the perl Sybase module can be somewhat tricky. 与perl Sybase模块连接可能有些棘手。 I finally got a succesfull connection this way: 我终于以这种方式成功建立了完整的连接:

1 - Edit /etc/freetds/freetds.conf

[sqlhost1]
host = 192.168.1.1
port = 1433
tds version = 8.0

2 - Use the --server command line option instead of the --hostname option:

check_mssql_health --server=sqlhost1 --username=nagiosuser --password=nagiospass --mode connected-users

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM