Support » Plugin: ATR Server Status » filters dont work

  • Resolved Jakours2

    (@jakours2)


    Hello!

    Added ; `add_filter(“atr_server_success_message”, function($message, $server) {
    return $server->humanname.” appears to be working alright.”;
    }, 10, 2);

    add_filter(“atr_server_error_message”, function($message, $server) {
    return $server->humanname.” is down.”;
    }, 10, 2);`

    Into my functions.php .. but that dont work.

    Suggestion?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author rehhoff

    (@rehhoff)

    Hey @jakours2

    Sorry for the very late reply, I very rarely check those forums, so if you require any future help, please don’t hestitate to contact me at https://rehhoff.me/contact since there’s a bigger chance I’ll see your message there, the response time will most likely be shorter..

    To answer your question, could you please try to increase $priority argument value (that’s the 3rd param in the add_filter function which is currently set to 10)
    To be sure it’s high enough replace 10 with “PHP_INT_MAX” without the quotes.

    Additionally, please try to update to the latest version, as I’ve just recently sent out an update.

    Kind Regards.
    – Allan

    Plugin Author rehhoff

    (@rehhoff)

    No reply.. marking this as resolved for now…

    Hello Allan,

    Oh..i’m sorry, i solved the problem by myself…

    It Works great now. Thanks !!

    Btw, any chance to show server load?

    Plugin Author rehhoff

    (@rehhoff)

    No, not as it currently is.

    The nature of wordpress would make it really hard to implement such a thing sadly.

    if you really want to monitor your servers and server load/uptime, you should consider using software like nagios or zabix instead.

    Thanks! I’ll take a look.

    Jak.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.