The present application discloses a server monitoring method, system, device and computer readable storage medium, which includes: sending an access request to the web server in the BMC system through a pre created target script; restarting the web if the response message sent by the web server is not obtained within a predetermined time. Server to complete the server monitoring operation. The open server monitoring method of the invention is made by adding a script of monitoring web server under the BMC system, that is, the target script, and access to the web server. If no response message returned to the web server is obtained in a predetermined time, it can be judged that the current web server is a \false death\ state by restarting the web server method. Restore it to normal and ensure the stability of the server system. It can be seen that using the open server monitoring method of this invention, the browser can still access the web server in BMC even if the web server is blocked and the watchdog thread is running normally, and the purpose of server monitoring is achieved.
【技术实现步骤摘要】
一种服务器监控方法、系统、设备及计算机可读存储介质
本专利技术涉及服务器监控
,特别涉及一种服务器监控方法、系统、设备及计算机可读存储介质。
技术介绍
随着服务器的功能越来越复杂,监控服务器的健康状态就尤为重要,目前监控的方法主要有,ipmitool(智能平台管理接口)工具、web浏览器、redfish等。通过web浏览器去访问BMC(基板管理控制器)具有图形化界面丰富,易于管理的优势,得到越来越多运维工作人员的青睐。浏览器访问BMC是通过BMC中集成的webserver(web服务器)功能实现的,仅当webserver正常工作时,浏览器才可以访问BMC。因此,保证BMC中的webserver正常稳定运行,是通过浏览器监控服务器的重要前提。目前通过浏览器访问BMC中的webserver的方法为:首先,在BMC中创建一个watchdogapp进程,用于接收“喂狗”信号;然后,在webserver进程中创建一个Watchdogthread(看门狗线程),用于发送喂狗信号;webserver在正常情况下,定时“喂狗”,表示webserver运行良好;当watchdog进程在定时范围内收不到webserver的“喂狗”操作,则认为webserver挂掉了,此时重启webserver服务。该方法基本可以满足webserver的正常运行,但当webserver阻塞时,Watchdogthread仍然是正常工作的,并定时向Watchdogapp发送喂狗信号,但此时浏览器已经不能正常访问webserver。由此可见,如何实现即使webserver阻塞,并且watch ...
【技术保护点】
1.一种服务器监控方法,其特征在于,包括:通过预先创建的目标脚本向BMC系统中的web server发送访问请求;若在预定时间内没有获取到所述web server发送的响应消息,则重新启动所述web server,以完成服务器监控操作。
【技术特征摘要】
1.一种服务器监控方法,其特征在于,包括:通过预先创建的目标脚本向BMC系统中的webserver发送访问请求;若在预定时间内没有获取到所述webserver发送的响应消息,则重新启动所述webserver,以完成服务器监控操作。2.根据权利要求1所述的服务器监控方法,其特征在于,所述通过预先创建的目标脚本向BMC系统中的webserver发送访问请求的步骤,包括:通过预先创建的目标脚本执行wget命令,以向BMC系统中的webserver发送访问请求。3.根据权利要求2所述的服务器监控方法,其特征在于,所述通过预先创建的目标脚本向BMC系统中的webserver发送访问请求的步骤,包括:通过预先创建的目标脚本定时执行wget命令,以定时向BMC系统中的webserver发送访问请求。4.根据权利要求3所述的服务器监控方法,其特征在于,所述通过预先创建的目标脚本定时执行wget命令的步骤,包括:通过预先创建的目标脚本在预定之间内每隔20秒执行一次wget命令。5.根据权利要求1所述的服务器监控方法,其特征在于,所述通过预先创建的目标脚本访问BMC中的webserver的步骤之前,进一步包括:在所述BMC系统下创建监控所述webserver的脚本,得到目标脚本。6.根据权利要求1至5任意一项所...
【专利技术属性】
技术研发人员:范雪峰,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。