You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-10-25 08:23:45

jmd75
Member
Registered: 2014-08-07
Posts: 4

Searching GLPI inventory computers with low disk space

Hello,

I'm using GLPI with the GLPI agent for the inventory.

How to search the GLPI inventory for computers with a disk volume less than a given size (or percentage)?

In Assets/Computers with the fields "Volume - Free size" or "Volume - Free percentage" the conditions can be "is" or "is not".
When searching on the memory size I can user criteria like:
"Memory" is <=4096 that means computers with a total memory size less or equal to 4 Gb.
It is the sum of the size of the memory components that is taken into account.
But what about the disk size ?
For example, how to find C: drives with less than 5% disk space.
I can filter with "Volume - Name", but then what?
It seems that the search for "Volume - Free Size" or "Volume - Free percentage" is done on all inventoried volumes.

For example if I search for "Volume - Fee percentage" is "<5", the result matches all computers that have at least one volume with less than 5% free space.

So how to do it without using SQL request ?

Thanks.

Offline

#2 2025-02-26 21:38:31

jmd75
Member
Registered: 2014-08-07
Posts: 4

Re: Searching GLPI inventory computers with low disk space

I think I found a solution although it may not work 100%.
I have just seen also on a French-speaking forum a solution, which I had not noticed, which also uses the trick i experimented with:
https://forum.glpi-project.org/viewtopi … orm=MG0AV3 (post from uinfo)

So it seems  the following simple combination of criteria works (disks with less than 5% available size):
"Volumes - Mount Point" contains "C:"
and
"Volumes - Free percentage" is "<=5"
Add possibly:
and
"Operating System - Name" contains "Windows"

Where the system may not be foolproof is, as initially discussed, in the following case:
that is if I have a computer a disk C: with a free percentage of 10%, but a disk D: with a free percentage of 4%, this computer risks being included in the list?

To be checked.

I might do some additional tests.
In the meantime, this search with these criteria seems to allow to have the list of computers with a nearly full C: hard drive.

JMD

Last edited by jmd75 (2025-02-26 22:07:45)

Offline

#3 2025-02-27 01:10:37

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,290
Website

Re: Searching GLPI inventory computers with low disk space

jmd75 wrote:

Where the system may not be foolproof is, as initially discussed, in the following case:
that is if I have a computer a disk C: with a free percentage of 10%, but a disk D: with a free percentage of 4%, this computer risks being included in the list?

That is indeed how it works


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB