Forum Discussion

usnishguha's avatar
usnishguha
Icon for Neophyte rankNeophyte
4 years ago

Linux SSH Filesystem Monitoring Dynamic Thresholds based on Size

Hi All,

 Can anyone please tell me if you have a solution to the below situation.

Currently we have a static thresholds for all the filesystem 85, 90 and 95% utilization. This actually causes a lot of alerts for bigger filesystems, which could be dealt with less priority than the small sized ones.
So what we are looking is to find a way to is to have dynamic thresholds which would change based on the total size of the filesystem. 
Let's say for filesystems of size 1GB to 100GB --> 85, 90 and 95%
101GB to 500GB ---> 88, 92, 96%
501GB to 2TB --> 92, 95, 97
2TB above --> 96, 98, 99

One of the solution is to probably have a separate datasource for bigger filesystems or to have something by manipulating the complex datapoints. Is there any better solution for this?

 

  • Anonymous's avatar
    Anonymous
    2 hours ago, usnishguha said:

    One of the solution is to probably have a separate datasource for bigger filesystems or to have something by manipulating the complex datapoints

    This actually happens with some of the built in datasources.

    However, there are various ways you can do this. Probably the easiest is to modify instance discovery so that an instance level property is set that tags the filesystem with the size bucket. From there, you can bring that property into a complex datapoint against which you can compare the utilization to get a valid alert value.

  • Anonymous's avatar
    Anonymous

    snmpHRDisk- and snmpHRLargeDisk-

  • Anonymous's avatar
    Anonymous

    You mentioned in your original post that you are already monitoring the hard drives, just need need a way to set different thresholds for different instance groups. What i showed was how it works using the built in datasources. You could look through the exchange or write an expect DS to do it using the same mechanism shown in the snmp based examples.