[Check_mk (english)] check_mk strips out the percent symbol from Windows local checks

Danko, Gary Gary_Danko at intuit.com
Fri Jul 22 19:02:47 CEST 2016


Hi all, this is not major but it’s certainly irritating. I have a local check that logs into to a CIFS share and reports on the percent available for the share. I modeled the output to be roughly similar to the local filesystem check.

The output when run from the Windows command line looks like this:
PS C:\Program Files (x86)\check_mk\local> .\check_cifs.ps1
0 ScanDataShare pct_used=0 % OK - \\hostname\sharename_cifs - total: 492.31 GB - used: 0.76 GB (0 %) - free: 491.55 GB (100 %)


However, when I retrieve the data from the monitoring server the % signs are stripped from the output like so:
OMD[gdanko]:~$ check_mk -d windowsbox.corp
<<<local>>>
0 ScanDataShare pct_used=0 OK - \\hostname\sharename_cifs - total: 492.31 GB - used: 0.76 GB (0 ) - free: 491.55 GB (100 )
<<<mrpe>>>


Is there a way to avoid having certain symbols stripped out?
Thanks!


More information about the checkmk-en mailing list