Store sorting column at status page (m/monit)

Issue #13 resolved
Alexey Elfman created an issue

I'm using latest version of mmonit.

Status page (/status/hosts/) of admin panel has table with columns. Default sorting is by first column (status) only. If all servers are in "OK" state, servers are sorting by unknown method.

My proposal is: 1. Store sorting column when I click it (in cookies or window.localStorage) 2. Sort records by status and hostname.

Comments (3)

  1. Tildeslash repo owner

    Thanks for the suggestion. We'll look into it. In the meantime, if you need the old behaviour, you can patch the javascript file which does the sorting

    1. Open docroot/status/assets/status.js, search for observable("led”)
    2. Replace with observable(“hostname”)
    3. Save, empty browser cache and reload

    Keep a copy of the old docroot/status/assets/status.js just in case. Hope this helps.

  2. Log in to comment