温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2021-12-08 14:43:18 来源:亿速云 阅读:145 作者:柒染 栏目:关系型数据库

天兔监控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网段,比如:

天兔监控SQL Azure报错的解决方法是什么
添加完后重启天兔进程后问题得到解决:
[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报错的解决方法是什么

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI