Ad Widget

Collapse

How to pull size of /var/log and all files in /var/log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exy123
    Junior Member
    • Feb 2006
    • 8

    #1

    How to pull size of /var/log and all files in /var/log

    Hi

    Im using 1.1beta9 on a suse 9.3 box monitoring some servers.

    I'm looking for a way to get the total size of all the file /var/log without manuallyt adding a custom userparemeter to over 30 server in the agent conf.

    Can what I want to do be done with vfs.fs.size[/var/log,total] as I have tried it and I keep getting values like 73.52 MB when i should be getting 14 MB when i do a du -h in /var/log.


    Any ideas ?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    vfs.fs.size is basically equivalent of command 'df'. df /var/log is exactly the same as df /var.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • exy123
      Junior Member
      • Feb 2006
      • 8

      #3
      Thanks that just about explains it

      Comment

      Working...