mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
240 stars 94 forks source link

Windows NRPE 0.5 - Issue with Monitoring Command: Failed to Query Service - FontCache MUI File Not Found #820

Open lzmarouane opened 9 months ago

lzmarouane commented 9 months ago

Hi,

I'm currently using Windows NRPE 0.5 to monitor Windows services with the following command:

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 192.168.X.X -p 5666 -t 30 -u -2 -P 8192 -c check_service -a "filter=start_type = 'auto' and is_trigger = 0 and name not like 'OneSyncSvc' and name not like 'WpnUserService' and name not like 'clr' and name not like 'CDPUserSvc' and name not like 'CDPSvc' and name not like 'GoogleUpdaterInternalService' and name not like 'GoogleUpdaterService'" "service=*" "exclude=clr_optimization" exclude=sppsvc exclude=TrustedInstaller exclude=TBS exclude="Sophos Clean Service" exclude="Sophos Safestore Service" exclude=SkypeUpdate exclude=MicroFocus-LicenseServer exclude=sppsvc exclude=OneSyncSvc_42be956af exclude=gupdate exclude=COMSysApp exclude=RemoteRegistry exclude=MapsBroker exclude=ShellHWDetection exclude=TrustedInstaller exclude=TBS exclude=WbioSrvc exclude=BITS exclude=tiledatamodelsvc exclude=edgeupdate exclude=GISvc exclude=clr_optimization_v4.0.30319_32 exclude=clr_optimization_v4.0.30319_64 exclude="CDPSv" "exclude=" "warning=none" "critical=not state_is_ok()" 'top-syntax=${problem_list}' 'detail-syntax=${name}=${state} (${start_type})' 'perf-config=none' While this command has successfully worked for other servers, I encountered the following error on a Windows 2008 R2 machine:

Failed to process command : Failed to query service: FontCache: 3afc: Le chargeur de ressources n'a pas pu trouver le fichier MUI.

Any guidance or assistance in resolving this issue would be greatly appreciated.

PS: The operating system on the affected server is Windows 2008 R2.

mickem commented 9 months ago

Looks like there is an issue with the FontCache service on that machine, might want to try to exclude it.

lzmarouane commented 9 months ago

Thank you, @mickem , for your feedback. I attempted to address the issue by utilizing the filter option:

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 192.168.x.x -p 5666 -t 30 -u -2 -P 8192 -c check_service -a "filter=start_type = 'auto' and is_trigger = 0 and name not like 'OneSyncSvc' and name not like 'WpnUserService' and name not like 'clr' and name not like 'CDPUserSvc' and name not like 'CDPSvc' and name not like'GoogleUpdaterInternalService' and name not like 'GoogleUpdaterService' and name not like 'FontCache'" "service=*" "exclude=clr_optimization" exclude=sppsvc exclude=TrustedInstaller exclude=TBS exclude="Sophos Clean Service" exclude="Sophos Safestore Service" exclude=SkypeUpdate exclude=MicroFocus-LicenseServer exclude=sppsvc exclude=OneSyncSvc_42be956af exclude=gupdate exclude=COMSysApp exclude=RemoteRegistry exclude=MapsBroker exclude=ShellHWDetection exclude=TrustedInstaller exclude=TBS exclude=WbioSrvc exclude=BITS exclude=tiledatamodelsvc exclude=edgeupdate exclude=GISvc exclude=clr_optimization_v4.0.30319_32 exclude=clr_optimization_v4.0.30319_64 exclude="CDPSv" exclude="FontCache" "warning=none" "critical=not state_is_ok()" 'top-syntax=${problem_list}' 'detail-syntax=${name}=${state} (${start_type})' 'perf-config=none'

Despite adding the exclude=FontCache option, the error persists:

Failed to process command : Failed to query service: FontCache: 3afc: Le chargeur de ressources n'a pas pu trouver le fichier MUI. It seems that the exclusion of FontCache is not resolving the issue.