Ad Widget

Collapse

SMS limit for a day

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandissostaks
    Junior Member
    • Jan 2023
    • 7

    #1

    SMS limit for a day

    Greetings!

    I am looking for solution to limit SMS notification count for user per day. Is it even possible to do on zabbix right now?
    I looked trough zabbix documentation as well looked trough forum and searched on google, but did not find any solution for this.

    Looking forward for some tips and help!
    Thank you.
  • sandissostaks
    Junior Member
    • Jan 2023
    • 7

    #2
    No one have ideas?

    Comment


    • Hamardaban
      Hamardaban commented
      Editing a comment
      "on zabbix right now" - no way.
  • sandissostaks
    Junior Member
    • Jan 2023
    • 7

    #3
    Hamardaban Thanks for answer!

    Comment

    • markosa
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Aug 2022
      • 104

      #4
      If you create own script which keeps a track how many sms's has been sent to user then it's possible.

      Comment

      • sandissostaks
        Junior Member
        • Jan 2023
        • 7

        #5
        markosa Sounds like some kind of idea. Will try to make a script. Thank you!

        Comment

        • fvilarnovo
          Junior Member
          • Jan 2023
          • 17

          #6
          Hi!,
          This could not be the best or most elegant solution, but hey maybe sparks some ideas... you could add an additional media type, script, that writes the date and a "1". This could be to a temp file or a new table in your database.
          In your trigger action that uses sms, add an additional step to use that media type, so each time you send an sms, a 1 and date will be written somewhere.
          Add a new item (type external check) where you will run your query, schedule it at 23:59. Remember in the logic of your script to purge those values from time to time.

          Profit

          Hope it help!

          Comment

          • sandissostaks
            Junior Member
            • Jan 2023
            • 7

            #7
            fvilarnovo This could work for me. Thank you.

            Comment

            Working...