Ad Widget

Collapse

Low Level Discovery FSINDEX?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dafyre
    Member
    • Sep 2008
    • 44

    #1

    Low Level Discovery FSINDEX?

    Hi All,

    I am trying to set up some perf_counter Low Level Discovery items for disk performance in Windows... Is there any kind of Index on the LLD for FS?

    I know SNMP Discovery has SNMPINDEX... Is there anything like this for the FS Discoery?

    What I'm trying to do is read the \Physicaldisk(*)\Disk Reads/sec performance counter... However each disk appears:

    \PhysicalDisk(0 C: )\Disk Reads/sec
    \PhysicalDisk(1 D: )\Disk Reads/sec...

    The {#FSNAME} Macro works fine for getting the drive, but I don't want to resort to scripting to get an index, unless I absolutely have to.

    Thanks!
  • dafyre
    Member
    • Sep 2008
    • 44

    #2
    Little Scripting Never Hurt...

    Hi Again,

    So, I finally broke down and figured out a way to script this using another Zabbix script as an example... Here's what I came up with...

    Create a User Parameter in zabbix_agentd.conf

    Code:
    UserParameter=diskIOPS[*],powershell.exe -file "C:\Zabbix_agent\scripts\diskiops.ps1" "$1" "$2"
    I just made a scripts folder in my Zabbix_agent folder and dropped the file in there.

    There are two options for getting the diskiops -- read and write. The Powershell script uses get-counter to pull from the appropriate Perfcounter.

    Add the Items as Item Prototypes under the Mounted File System Discovery (I just added mine to Template OS Windows)... See the attached picture.

    I hope this helps somebody!

    NB: The powershell script was done on Server 2012. I don't know if it will work with anything else. It uses the Get-Counter command for pulling the data.
    Attached Files

    Comment

    Working...