centreon / centreon-nsclient-build

Source use to build the centreon NSClient agent
19 stars 3 forks source link

UNKNOWN: Cannot load module --plugin. #58

Closed PhilCANDIDO closed 3 years ago

PhilCANDIDO commented 3 years ago

Problem with centreon_plugins.exe

I have install the centreon_plugins_20210427_606ac5397_966b834_x64.exe on Windows 2019 Server.

The installation is OK, but the centreon_plugins.exe is not working properly.

When I try to list mode of plugin I have the following result :

C:\Program Files\Centreon NSClient++\scripts\centreon>centreon_plugins.exe --plugin='apps::microsoft::activedirectory::local::plugin' --mode='dcdiag' --help
UNKNOWN: Cannot load module --plugin.
Can't locate 'apps/microsoft/activedirectory/local/plugin'.pm in @INC (@INC contains: C:/Program Files/Centreon NSClient++/scripts/centreon C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc CODE(0x37e4f80) CODE(0x37e5178)) at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib/centreon/plugins/misc.pm line 222.

C:\Program Files\Centreon NSClient++\scripts\centreon>centreon_plugins.exe --plugin='apps::protocols::http::plugin' --list-mode
UNKNOWN: Cannot load module --plugin.
Can't locate 'apps/protocols/http/plugin'.pm in @INC (@INC contains: C:/Program Files/Centreon NSClient++/scripts/centreon C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc CODE(0x3702f98) CODE(0x3703190)) at C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib/centreon/plugins/misc.pm line 222.

But when I check in the directory displayed in message the file is presents :

C:\Program Files\Centreon NSClient++\scripts\centreon>dir C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib\apps\microsoft\activedirectory\local\
 Le volume dans le lecteur C n’a pas de nom.
 Le numéro de série du volume est B05D-634E

 Répertoire de C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697374726174657572\cache-4991659f9a592a9361161df4e676dabeae370839\inc\lib\apps\microsoft\activedirectory\local

28/07/2021  15:21    <DIR>          .
28/07/2021  15:21    <DIR>          ..
28/07/2021  15:21    <DIR>          mode
28/07/2021  15:21             1 499 plugin.pm
               1 fichier(s)            1 499 octets
               3 Rép(s)  78 068 322 304 octets libres

How can I resolve this issue?

Thx

garnier-quentin commented 3 years ago

Please replace quotes by double quotes

PhilCANDIDO commented 3 years ago

Thanks @garnier-quentin for this quick response.

The plugin works fine with double quotes.

I close the issue.