Skip to main content

Hello,

I have an error with the CMA storage command on both virtual machine and physical machine (Windows 2019 or 2022) :

The error message is : 

Fail to execute {"check":"storage", "args":{ "warning" : "80", "critical" : "90", "filter-storage-type" : "*", "filter-fs" : "*"}} : The system cannot find the file specified

 

In the logs of CMA I have this :

<2025-01-30 12:19:39.970] 7centreon-monitoring-agent] nerror] oprocess.cc:218] fail to start {check:storage,: default_launcher: The system cannot find the file specified isystem:2 at D:\a\centreon-collect\centreon-collect\build_windows\vcpkg_installed\x64-windows\include\boost/process/v2/windows/default_launcher.hpp:317:7 in function 'struct boost::process::v2::basic_process<class boost::asio::any_io_executor> __cdecl boost::process::v2::windows::default_launcher::operator ()<class boost::asio::any_io_executor, const class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>, class std::allocator<char> > > >&,struct boost::process::v2::process_stdio>(class boost::asio::any_io_executor,class boost::system::error_code &,const class std::filesystem::path &, const class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>, class std::allocator<char> > > > &,struct boost::process::v2::process_stdio &&)']

The virtual machine has a DVD Drive on D:\ location so I test on a physical machine with two real disks on C:\ and D:\ but still has the same result.

I also try to put hrstoragefixeddisk on FILTERSTORAGETYPE macro without success.

Any idea ? Thanks.

 

hello

have you upgraded the agent to the latest version, there was a release for these new “commands”

Release centreon-collect-24.10.3 · centreon/centreon-collect · GitHub

 

 


Yes the agent and my poller are both in 24.10.3 version


Hello,

The problem is not the disks, the problem is that the storage check is nor taken into account. It was not implemented in this version. Have you a drive where I can put latest version of centreon-monitoring-agent?

 


For sps and other, you will find latest version of centreon-monitoring-agent here:

https://share.centreon.com/s/fWQ9kmHWroEqLrR


Hello jcr,

I have the same issue with the new agent, tested on a new WS2022 and an existing WS2019 where I have reinstalled the CMA.

Here is the logs :

>2025-01-31 16:44:34.641] centreon-monitoring-agent] debug] process.cc:202] start process: {check:storage,
>2025-01-31 16:44:34.645] centreon-monitoring-agent] error] process.cc:224] fail to start {check:storage,: default_launcher: The system cannot find the file specified system:2 at D:\a\centreon-collect\centreon-collect\build_windows\vcpkg_installed\x64-windows\include\boost/process/v2/windows/default_launcher.hpp:317:7 in function 'struct boost::process::v2::basic_process<class boost::asio::any_io_executor> __cdecl boost::process::v2::windows::default_launcher::operator ()<class boost::asio::any_io_executor,const class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >&,struct boost::process::v2::process_stdio>(class boost::asio::any_io_executor,class boost::system::error_code &,const class std::filesystem::path &,const class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &,struct boost::process::v2::process_stdio &&)']
>2025-01-31 16:44:34.645] centreon-monitoring-agent] error] check_exec.cc:212]  serv Storage fail to execute {"check":"storage", "args":{ "warning" : "80", "critical" : "90", "filter-storage-type" : "*", "filter-fs" : "*"}}: The system cannot find the file specified

 

Do you need any other information ? 

Thanks


I was wrong.

You must have it in your logs:

{"check":"storage", "args":{ "warning" : "80", "critical" : "90", "filter-storage-type" : ".*", "filter-fs" : ".*"}}

 

This is because filters don’t accept wildcards. All filters use regular expressions. I have the same result as you. So I have replaced your filters by ‘.*’ and it works:

{"check":"storage", "args":{ "warning" : "80", "critical" : "90", "filter-storage-type" : ".*", "filter-fs" : ".*"}}

 


It works thanks, with the previous agent version too.

And “.*” was indicated in the doc, sorry : Windows Centreon Monitoring Agent | Centreon Documentation


Reply