[wordpress插件] ATR Server StatusATR服务器状态

wordpress 插件 文章 2020-02-22 18:30 616 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

Simple, efficient, ad- and bloatfree plugin for testing whether or not a given server address is up for just you, or everyone else on a given port and protocol.

简单,高效,无广告和无膨胀的插件,用于测试给定服务器地址是否适合您自己,或是否适合给定端口和协议上的其他用户。

Servers & services are checked in real-time whenever a user requests to view the page where the shortcode is inserted.

每当用户请求查看插入了简码的页面时,都会实时检查服务器和服务。

Intuitive interface, makes is really easy to maintain servers & services to check.

直观的界面使维护服务器和服务变得非常容易。

You have the ability to filter/hook the message displayed to the user through functions.php in your theme folder.

您可以过滤/挂钩通过主题文件夹中的functions.php显示给用户的消息。

add_filter( "atr_server_success_message", function($message, $server) {    

  add_filter(“ atr_server_success_message”,function($ message,$ server){    

return $server->humanname." appears to be working alrstight.";

“返回$ server-> humanname。”似乎工作正常。“;

}, 10, 2);

},10,2);

add_filter( "atr_server_error_message", function($message, $server) {    

add_filter(“ atr_server_error_message”,function($ message,$ server){    

return $server->humanname." is down.";

返回$ server-> humanname。“关闭。”;

}, 10, 2);

},10,2);

You can also use the filter “atr_perm_administer_servers” to alter the permission being used to check access rights.

您还可以使用过滤器“ atr_perm_administer_servers”来更改用于检查访问权限的权限。

add_filter( "atr_perm_administer_servers", function( $permission ) {    

  add_filter(“ atr_perm_administer_servers”,function($ permission){    

$permission = "editor";    

$ permission =“编辑器”;    

return $permission;

返回$ permission;

} );

});

Shortcode Examples

简码示例

Displays all servers entered in wp-admin

显示在wp-admin中输入的所有服务器

[server-status]

  [服务器状态]

Display server by certain id

按特定ID显示服务器

[server-status id="X"]

  [服务器状态ID =“ X”]

Display servers by multiple id’s

按多个ID显示服务器

[server-status id="X,X,X"]

  [服务器状态ID =“ X,X,X”]

Excludes certain posts from display, only works if ‘id’ is not set.

从显示中排除某些帖子,仅在未设置“ id”的情况下有效。

[server-status exclude="X"]

  [服务器状态排除=“ X”]

Features

功能

    • Supports most common protocols (TCP, UDP, HTTP, HTTPS) (FTP is on the todo)
    • 支持最常见的协议(TCP,UDP,HTTP,HTTPS)(FTP待办事项)

    • Define a human friendly readable name for display
    • 定义一个易于阅读的易读名称

    • Define hostname
    • 定义主机名

    • Define port
    • 定义端口

    • Define timeout in seconds
    • 以秒为单位定义超时

    • Define protocol
    • 定义协议

    • Drag’n’drop ordering
    • 拖放订购

    • Edit and delete servers/services
    • 编辑和删除服务器/服务

    • Shortcodes for checking one or more servers frontend
    • 用于检查一个或多个服务器前端的简码

    • Simple, clear and well explained settings page
    • 简单,清晰且说明充分的设置页面

    • Filter available configurations
    • 过滤可用配置

    • Settings page with various configrations to suit your needs
    • 具有各种配置的设置页面可以满足您的需求

    • Possible to disable/enable servers and services
    • 可以禁用/启用服务器和服务

    • Includes a widget for displaying servers in sidebars
    • 包括用于在边栏中显示服务器的小部件

    Is this plugin for you?

    这个插件适合您吗?

    If you’re looking for a full fledged server monitoring tool, no.

    如果您正在寻找完整的服务器监控工具,则不会。

    Consider using thirdparty software such as zabbix instead

    考虑使用第三方软件,例如 zabbix

    Otherwise, if you just want to provide a service, for your users/visitors to check whether or not one or more of your servers is running healthy then yes, this is for you.

    否则,如果您只想提供服务,请您的用户/访问者检查您的一台或多台服务器是否运行正常,那么可以,这是给您的。

    Feature requests

    功能请求

    Think this plugin is missing a feature?

    认为此插件缺少功能吗?

    I’ll gladly discuss any feature requests sent to me either through the wordpress support forums, or via my contact formular.

    我将很高兴讨论通过wordpress支持论坛或联系公式向我发送的所有功能请求。

    Keep in mind, features must be able to fit seamlessly with the core wordpress UI, and must not be intrusive, or considered adware.

    请记住,功能必须能够与Wordpress核心UI无缝配合,并且不得具有干扰性或被视为广告软件。

    Got a question?

    有问题吗?

    If you have any questions not answered here, do feel free to send me an email and I'll do

    如果您在此处未回答任何问题,请随时给我发送电子邮件,我会做

    my best to answer you within 48 hours.

    我会在48小时内给您答复。

    Response time is usually faster if you send me a mail, instead of using the wordpress support forums.

    如果您给我发送邮件,而不是使用wordpress支持论坛,则响应时间通常会更快。

安装步骤

    1. Install the plugin
    2. 安装插件

    3. Configure the servers/services you want to check against in “Server Status” within wp-admin
    4. 在wp-admin的“服务器状态”中配置要检查的服务器/服务

    5. Insert one of the provided shortcodes on the desired page, and or post.
    6. 在所需页面上插入提供的简码之一,然后发布。

下载地址
https://downloads.wordpress.org/plugin/atr-server-status.1.4.3.zip
-EOF-

AI助手支持GPT4.0