Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Send Notifications/alerts Needs Blackout/maint Period

forums forums Monyog Monyog: Bugs / Feature Requests Send Notifications/alerts Needs Blackout/maint Period

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #12116
      GeekMan
      Member

      I like the ability of MonYog to send email notifications/alerts when slow queries occur.

      However, we need the ability to configure “black-out” periods for when we don't want notifications to be sent, because during these time periods maint/backups/etc are being done on the server, therefore we expect the server to have slow queries, etc….

      Could you add this to the new feature request list. Make sure you permit multiple black-out schedules, as some may have black-out periods several times a day or a different time for the weekday vs the weekends.

    • #31372
      peterlaursen
      Participant

      It is there already.  This is implented in the 'MONyog API'. Please refer documentation, and scroll down to 'The MONyog API'.

      You will need a scripting/programming environment that can send (simple) HTTP requests (what I cannot think of any that cannot) and schedule two script/apps – one stopping and another restarting alerts.

      Code:
      Enables alerts for

      http://:/?_object=ConnectionMgr&_action=ConnectionAPI&_actionvalue=EnableAlerts&password=&server_name=

      Disables alerts for

      http://:/?_object=ConnectionMgr&_action=ConnectionAPI&_actionvalue=DisableAlerts&password=&server_name=

    • #31373

      Just one more point to add to Peter's reply: You can check MONyog's documentation for an example script (written in Perl) — section called “The MONyog API”. The script accepts command line parameters (so the same script can be scheduled with different parameters at different times). We use this feature ourselves for our production servers.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.