Ad Widget

Collapse

reporting disk usage per user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IT_Sar
    Junior Member
    • Nov 2009
    • 2

    #1

    reporting disk usage per user

    I use zabbix to monitor our server farm (50 servers with NFS storage). When NFS volume goes over 90% Zabbix sends alarm to group admins. That's fine.

    I am looking to add functionality. Specifically, to produce disk usage report for the overloaded partition, for instance.

    $ du -s /mnt/partition1/homes

    and send email to 10 top abusers. I do have a standalone python script that runs "du" and email report to admin.

    Any ideas on how to implement it better with Zabbix?

    Thanks

    Oleg

    PS. Feel free to point me to the old posts that discussed this issue. I 've not found them.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    that's a bit complex scenario. how i imagine this could be done...
    when a systems runs out of free diskspace, make zabbix execute remote command. from here, two paths are possible.
    either this command can parse output and simply email directly;
    or it can push data back into zabbix with zabbix_sender on who these users are.
    in both cases you need some way to determine e-mail addresses from quota reports.
    second approach might have the benefit of registering into zabbix users who most often abuse diskspace.
    Zabbix 3.0 Network Monitoring book

    Comment

    • IT_Sar
      Junior Member
      • Nov 2009
      • 2

      #3
      Originally posted by richlv
      ...
      or it can push data back into zabbix with zabbix_sender on who these users are.
      in both cases you need some way to determine e-mail addresses from quota reports.
      second approach might have the benefit of registering into zabbix users who most often abuse diskspace.
      I can parse disk usage and figure out email address for the user.

      Can you elaborate on how zabbix will handle data that will be pushed back by zabbix_sender?

      And regarding 2nd approach, that is a hassle since I will need to make sure every new user gets registered in Zabbix. Lets assume they will. How this will solve the emailing task?

      Thanks

      Oleg

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        you might create 10 items, then have trigger on them.
        to avoid creating users in zabbix, just pass received data (pushed in by zabbix_sender) to custom alert script which sends out notifications.

        a bit convoluted, but at least you make sure all notifications are managed from single location, and you can actually use zabbix escalations to pester on users who do not clean up, or escalate issues to management
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...