Ad Widget

Collapse

Same item name with different number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sri4nscc
    Junior Member
    • Apr 2019
    • 3

    #1

    Same item name with different number

    Hi all,

    Not sure if there is any suggestions already given, if so , I'm sorry to ask this question again, and please redirect me to that link. However if not asked, my issue is below:

    Say I have a device let me take an example of HDDs, I have about 4 HDDs in the system and HDD{0}.. HDD{3} are the numbering. Is it possible to create one Item and one trigger to monitor all 4 HDDs at a time? I could not seem to find any relevant information on this regard. Any help is highly appreciated.

    Thanks
    Sri.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    It is impossible to monitor multiple hard disks with one Zabbix item and trigger.

    Do you want to simplify monitoring settings? I do not know the OS of the device you are using, but the mounted hard disk automatically searches for the mounted disk using Zabbix's LLD function, and for each Items and triggers can be set. If your OS is Linux or Windows, please refer to the default template discovery rule settings.

    Manual: Low-level discovery (LLD)

    Comment

    • sri4nscc
      Junior Member
      • Apr 2019
      • 3

      #3
      Thanks Atsushi for your kind reply. It is so unfortunate that zabbix does not have such facility.

      I'm using Linux OS, however I was expecting that putting an index of item number may simplify the number of items and triggers created in the system (just for the sake of simplification). something like diska[0-9], something like this. BTW, I took disk as an example, however I have many other devices which has an index, another typical example is gpu[0-07].

      Well if there's no such option, then I have to create multiple items and respective triggers.

      Thanks once again.

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Have you confirmed the features of LLD?
        With LLD, even if there are multiple mounted hard disks, it is possible to set only one item to acquire the free space of the hard disk. There is no need to manually create an item for each hard disk.
        In the case of a GPU, it also depends on how you can acquire metrics for the GPU, but by simplifying the monitoring settings by preparing a script for discovery of GPUs and a script for acquiring metrics for each GPU There is a possibility that can be realized.
    • sri4nscc
      Junior Member
      • Apr 2019
      • 3

      #4
      Dear Atsushi,

      Thank you for your suggestion. I have no knowledge on LLD so far, let me explore a bit and revert you what I have had success with. This may take a while though.

      Appreciate your assistance.

      Regards
      Sri

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Take a look at the template "Template OS Linux" as a configuration example.

        There is a rule called "Mounted filesystem discovery" of the discovery rule. This rule can use the item key "vfs.fs.discovery" to get a list of what hard disks are mounted on each server. After that, items, triggers and graphs are automatically generated for each hard disk acquired in the list.
        When a discovery rule is executed, the list of hard disks is updated, so monitoring settings can be configured automatically even when additional hard disks are mounted.

        If you actually use this template to set up monitoring, you may find it easier to save on monitoring settings.
    Working...