Skip to main content
Question

Check la présence de fichier windows avec l'agent cma

  • May 6, 2026
  • 2 replies
  • 19 views

Forum|alt.badge.img

Superviser la présence d’un fichier windows ne fonctionne pas.
Doit-on passer par un script ?

Merci

2 replies

Forum|alt.badge.img+3
  • Steward *
  • May 6, 2026

Pourrais-tu être plus précis ?


fmattes
Centreonian
Forum|alt.badge.img+10
  • Centreonian
  • May 6, 2026

Hi,

Monitoring file presence is possible using File-Generic mode in CMA Windows connector: 

https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/operatingsystems-windows-centreon-monitoring-agent/

Here are the macro values to use : 

PATH= C:\Users\User\Documents\test
PATTERN= *.*
MAXDEPTH= -1,
DETAILSYNTAX= {filename}: {size}
WARNINGSTATUS=
CRITICALSTATUS= filename=myfile.txt
WARNING=
CRITICAL= 1:

constraint : PATH must not be an empty directory (PATTERN result can’t be empty)

 

Did you try ? If yes, could you detail the problem encoutered ?