Ad Widget

Collapse

raidctl output monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasper9890
    Junior Member
    • Nov 2006
    • 3

    #1

    raidctl output monitoring

    Is anyone monitoring hardware raid status on a Sun T2000 or any other machine that uses the raidctl command?

    Output is something like this below - how would you best grep or awk out the information?

    # raidctl
    RAID Volume RAID RAID Disk
    Volume Type Status Disk Status
    ------------------------------------------------------
    c1t0d0 IM OK c1t0d0 OK
    c1t1d0 OK
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    One lazy way is to monitor any change.

    In zabbix_agentd.conf

    UserParameter=raid_status,/path/to/raidctl

    Then on the Server create a new item, with Type=Character and a trigger:

    {host:raid_status.diff(0)}#0

    If anything changes in the output of raidctl, trigger goes true and you get a notification.
    Then only problem is that the trigger will only be true over a brief period.

    Of you could write a sh/php/perl/whatever script to wrap around raidctl. But this requires a bit more work.

    Comment

    Working...