天兔监控SQL Azure报错的解决方法是什么

44次阅读
没有评论

共计 1527 个字符,预计需要花费 4 分钟才能阅读完成。

天兔监控 SQL Azure 报错的解决方法是什么,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

今天新增了两台 SQL Azure, 需要加入到天兔监控里进行监控,但加完后发现界面里显示失败。
天兔日志有如下错误信息:

# cat /usr/local/lepus/logs/lepus.log
………………………………………………………………………………….
2017-10-23 08:08:15 [WARNING] check sqlserver sc-stable.database.chinacloudapi.cn:1433 : 
(40615, Cannot open server sc-stable requested by the login. Client with IP address 
54.222.221.177 is not allowed to access the server.  
To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database 
to create a firewall rule for this IP address or address range.  
It may take up to five minutes for this change to take effect.DB-Lib error message 40615, 
severity 14:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib error message 20002, severity 9:\nAdaptive Server connection failed\n )
…………………………………………………………………………………..

根据日志内容判断应该是 SQL Azure 的防火墙拒绝了来自 IP 为 54.222.221.177 的连接。

解决方案:
用 Navicat 连接 SQLServer 数据库,右键 – SQL Azure 防火墙规则
添加 54.222.221.177 网段,比如:

添加完后重启天兔进程后问题得到解决:
[root@c58c333ef639 logs]# lepus stop
lepus processes id 17026 been stop
lepus processes id 17042 been stop
lepus processes id 17370 been stop
lepus processes id 17546 been stop
lepus processes id 17594 been stop
lepus processes id 17625 been stop
[root@c58c333ef639 logs]# /usr/local/sbin/lepus: line 16: 17026 Terminated              nohup python lepus.py logs/lepus.log

[root@c58c333ef639 logs]# lepus start
lepus server start success!

再次查看界面显示正常:

关于天兔监控 SQL Azure 报错的解决方法是什么问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注丸趣 TV 行业资讯频道了解更多相关知识。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-17发表,共计1527字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)