Ad Widget

Collapse

Consistent device naming on linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RoyK
    Junior Member
    • Jan 2016
    • 20

    #1

    Consistent device naming on linux

    Hi all

    Today, Zabbix finds devices like sda, sdb, sdc etc and that is generally fine on smaller systems. On larger, however, if you have a lot, like 20 or 80 drives, those won't be given the same device name on each bootup. Your sdd and sdc can swap place because one was detected before the other. From Linux' point of view, this isn't a bug at all, since device names shouldn't be trusted anyway. If you keep on trusting device names, zabbix will show all sorts of interesting errors that aren't there, for instance a drive in a RAID where the smart counters have started ticking, and then, after a reboot, another drive has the same count, but the first has zero. So, with the old smartctl check (before zabbix_agent2), I rewrote the discovery to allow for returning a consistent path to the device, namely /dev/disk/by-id/ata-something-blabla (or scsi- or usb-), which then is a symlink to the real device. I know this works and it removes a lot of false positives. The problem is - how can I make Zabbix' LLD for blockdevices do the same? Rewrite the whole thing in scripts? It'd be very nice if there was a way to have zabbix_agent2 do this on its own.

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

    #2
    You can submit a feature request.. https://support.zabbix.com/projects/ZBXNEXT/issues OR look around, maybe there is already similar request and try to upvote it...

    Comment

    • RoyK
      Junior Member
      • Jan 2016
      • 20

      #3
      Thanks - it's here https://support.zabbix.com/browse/ZBXNEXT-9028 - when I registered this post at first, I was at first trying to file it as a bug for zabbix, but the text there just said "no feature requests - post them on the forum".

      Comment

      Working...