[ZBXNEXT-74] Filesystem monitoring Created: 2007 Dec 04  Updated: 2011 Dec 22  Resolved: 2011 Feb 01

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 1.9.1 (alpha)

Type: New Feature Request Priority: Major
Reporter: Steria Assignee: Unassigned
Resolution: Fixed Votes: 14
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Is there a way to dynamically monitor filesystems on a server? How do you do that?

For the moment, when I had a new host, I run a script on it to check local FS and generate XML code ready to import into zabbix. However, if a new FS is created, it is not automaticaly added into zabbix (and I do not want to add a cronjob on each host to do that).

I tried to create un new parameter to send FS list to zabbix server, but I did not find a way to create a trigger who can treat these information. For example, it seems possible to change trigger state if a FS reach 95% but not to tell which one...

What is the best way to maintain node FS monitoring up to date without a manuel action? New FS are created everyday on serveral client, it is a real pain to add them manually into GUI...

Thank you in advance.



 Comments   
Comment by Alexei Vladishev [ 2007 Dec 06 ]

Perhaps a couple of user parameters may do the trick:

1. The first item would scan all file systems and return percentage of used disk space of the most filled file system
2. The second item would return name of the most filled file system or several file systems

Then, a trigger may be defined to show name of the filesystem:

Trigger name: "Low free disk space on

{ITEM.LASTVALUE}"
Trigger expression: {host:fs_name.last(0)}<0 | {host:fs_used.last(0)}<10

fs_name.last(0) will never be evaluated as true, so fs_used.last(0)<10 will actually be checked.
{ITEM.LASTVALUE}

is a macro, which will be available starting from 1.4.3.

I hope this is close to what you want.

Alexei

Comment by Andreas Faust [ 2007 Dec 14 ]

we do the same here using UserParameter, which we have an update-mechanism for.

UserParameter=drive.full, df -Ph|awk '

{ print $6" is "$5" full"}

'|sort -n -k4|egrep "8[5-9]%|9[0-9]%"||echo " "

the sort makes sure the most filled shows up on overview page.

works for linux/unix agents only (except there are similar tools for windows)

Comment by Johan Segernas [ 2009 Sep 15 ]

The solutions with user parameter isn't good enough. I would like to have a system that runs a discovery of the system on a regular basis and make Zabbix monitor/graph the volumes mounted.

Today we have added most of the 'known' mount points in our template but this isn't good enough either. We have a few hundred different systems which doesn't look alike at all.

Some dynamic discovery wanted!

Comment by richlv [ 2011 Feb 01 ]

implemented in trunk : http://www.zabbix.com/documentation/2.0/manual/discovery/low_level_discovery

Generated at Tue Apr 16 14:10:08 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.