Skip to main content
Question

File Server Monitoring (smb shares)

  • May 12, 2022
  • 13 replies
  • 1388 views

Forum|alt.badge.img+3

Hi, 

I’m currently installating Centreon 21.10. 

I’m looking for the best way to monitor SMB fioles shares.

I haven’t found any specific plugin.

 

Could you help me on that subject?

 

Thanks a lot, 

 

Laurent

13 replies

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • May 12, 2022

Hi, 

 

We’re about to release a plugin dedicated to this monitoring. 

It will be available next week. You can test it already using the github version.

You will be able to check: 

  • Connection
  • Files-count
  • Files-date
  • Files-size
  • Scenario

Thanks

Simon

 

 


Forum|alt.badge.img+3
  • Author
  • Steward *
  • May 12, 2022

Thank you very much for this return. 

I test this new plugin and come back to you asap.

 

Regards,

Laurent


Forum|alt.badge.img+3
  • Author
  • Steward *
  • May 12, 2022

I could see the plugin package is available on this link Protocol CIFS | Centreon Documentation

But the install failed.

Do you have any procedure or tuto for installing the plugin listed on the Github link centreon-plugins/plugin.pm at master · centreon/centreon-plugins · GitHub ? How to deploy pm files.

 

Thanks

 

Laurent

 


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • May 16, 2022

Hi, 

 

You can simply use git clone to download the repository on your server (don’t clone within /usr/lib/centreon/plugins directory !).

 

But I would recommend wait until wednesday where the package mentionned in the documentation will be available on our repositories. ​​​​​

 

Cheers

 

 


Forum|alt.badge.img+3
  • Author
  • Steward *
  • May 16, 2022

Hi, 

Thank you for this reply. I’ll wait until wednesday.

 

Have a nice day


Forum|alt.badge.img+14
  • Builder ***
  • May 17, 2022

Hello,

***Spoiler Moment***

Visibly the next release of Centreon, the 22.04 will introduce a Real Plugin Packs system.

Installation of a Plugin Packs will install the centreon-plugins on the pollers.

So you cannot to know that you do install centreon-plugins RPM package, or maintain a fresh clone of the centreon-plugins github repository on all your pollers.

Difference will be a Dependencie

Regards,

Greg


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • May 18, 2022

@laurent.g it’s out! Commands from the documentation works now ;) Protocol CIFS | Centreon Documentation


Forum|alt.badge.img+3
  • Author
  • Steward *
  • July 13, 2022

Thanks a lot. I could add this plugin on critical file shares and for some cases of data integration.

Very useful, great! I’m going to use it for many cases.

I miss some more documentation on the implementation, for instance on the file options.

 --file  Check file (Multiple option) for  --mode=files-date 

I can’t see how to use that field. I’d like to exclude or include file extensions.

 

Regards, 

 

Laurent

 


Forum|alt.badge.img+3
  • Author
  • Steward *
  • July 13, 2022

and also to exclude sub folders for files-date check in a precise folder


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • July 20, 2022

Hi @laurent.g 

 

Thanks for your feedback! 

 

At the moment, I don’t think it’s possible to filter out files from the results, maybe we could add it, could be great when there a lot of files in the directory. 

 

If you particularly interested in mtime, you can simply use the --mode=file, who is including a date modification check. In this mode, you have a max-depth parameter to control how many sub folders levels the plugin will crawl. 

 

Or maybe you would like to exclude some specific sub directories? 
 

Thx


Forum|alt.badge.img+3
  • Author
  • Steward *
  • July 20, 2022

Hi @sims24 

 

Thanks a lot for the suggestion.

Actually I just need to exclude all sub directories as some of them may be used for archiving or error management folders.

I’ll try the way you suggest asap and let you know.

 

Regards, 

 

Laurent


Forum|alt.badge.img+3
  • Author
  • Steward *
  • November 1, 2022

Hi again, 

I’m using the CIFS plugin on some file and it is OK but I still need to understant the way the field --file works when using the mode files-date.

Example : 

/usr/lib/centreon/plugins//centreon_protocol_cifs.pl --plugin=apps::protocols::cifs::plugin --mode=files-date --hostname='host.domain.local' --cifs-username='domain\svc_filshare' --cifs-password='*****' --timeout=''   --file='' --directory='/folder/' --warning-mtime-last='604800' --critical-mtime-last='' 

 

--file='' How can we use that field? I tried with file name, no effect.

 

Thanks in advance for your help.

Regards, 

 

Laurent


Forum|alt.badge.img+2
  • Steward *
  • January 17, 2023

Bonjour, je voudrais savoir s’il est possible de verifier le nom d’un fichier ou son contenu avec ce plugin ?