Skip to main content
Question

Failed to execute check_drivesize: 2: ϵͳÕÒ²»µœÖž¶šµÄÎÄŒþ¡£

  • March 30, 2026
  • 0 replies
  • 0 views

I am usring /usr/lib64/nagios/plugins/check_centreon_nrpe3 to monitor windows CPU/Memory. And centreon can get CPU & Memeory status. But when I use the same command try to monitor disk space, system show error:Failed to execute check_drivesize: 2: ϵͳÕÒ²»µœÖž¶šµÄÎÄŒþ¡£.

 

The full command is bellow.

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 10.3.3.200 -p 5666 -2 -P 8192 -2 -P 8192 -n -c check_drivesize -a "drive=C:"

 

Centreon version is 25.10. NSClient version is 0.11.24

 

The nsclient.ini files:

 

[/modules]

CheckEventLog = 1

CheckNSCP = 1

CheckSystem = 1

CheckDisk = 1

CheckService = 1

WEBServer = 1

NRPEServer = 1

NSClientServer = 1

CheckExternalScripts = 1

CheckHelpers = 1

[/settings/NRPE/server]

verify mode = peer-cert

tls version = tlsv1.2+

insecure = false

password = *

allowed hosts = 10.3.3.10,127.0.0.1
port=5666
use ssl=false
payload length=8192

allow arguments = 1
allow nasty_meta_chars = 1
allow nasty characters = 1

[/settings/default]

[/settings/external scripts]
allow arguments = 1
allow nasty_meta_chars = 1
allow nasty characters = true

[/settings/external scripts/scripts]
check_cpu = check_cpu
check_memory = check_memory
check_drivesize = check_drivesize