Ad Widget

Collapse

How to update interval of multiple hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • massaia89
    Junior Member
    • Feb 2024
    • 10

    #1

    How to update interval of multiple hosts

    Dear all,

    can I know how to update of all my hosts the value of the box "update interval" ?

    I can't understand how to do it.

    Thanks and kind regards

    Marco

  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    update interval relates to items, not to hosts. So you need to select items and then press "mass update".

    Comment

    • massaia89
      Junior Member
      • Feb 2024
      • 10

      #3
      sorry, I explained myself poorly, my hosts are websites and in zabbix I inserted them only with the web scenario. And now I would like to change their interval.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        It's here:
        Click image for larger version

Name:	image.png
Views:	254
Size:	26.0 KB
ID:	478441

        Comment

        • massaia89
          Junior Member
          • Feb 2024
          • 10

          #5
          Thanks dimir,

          Yes I know, but I want to change it for all my hosts at once.

          thanks again!

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            There is no way to do that from Frontend. You can use Zabbix API or perform the change directly in the database (the following SQL query will set Update interval of all scenarios to 1 minute):
            Code:
            update items set delay='1m' where type=9;
            ​
            Last edited by dimir; 06-02-2024, 11:54.

            Comment

            • massaia89
              Junior Member
              • Feb 2024
              • 10

              #7
              It's my first time that I use Zabbix, can you tell me how to do it with the Zabbix API?

              Thanks​It's my first time that I use Zabbix, can you tell me how to do it with the Zabbix API?

              Thanks

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                General information about Zabbix API: https://www.zabbix.com/documentation.../en/manual/api

                There is a helper module for writing code in Python: https://github.com/zabbix/python-zabbix-utils

                HTH

                Comment

                Working...