[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:10:39 CEST 2016


I put a batch file in the local directory that simply outputs the text, "0 TestCheck test_data=0 OK - Everything is 100%"

It too had the percent sign stripped.
<<<local>>>

C:\Windows\system32>echo 0 TestCheck test_data=0 OK - Everything is 100
0 TestCheck test_data=0 OK - Everything is 100
0 ScanDataShare pct_used=0 OK - \\hostname\sharename_cifs - total: 492.31 GB - used: 0.76 GB (0 ) - free: 491.55 GB (100 )






On 7/22/16, 10:02 AM, "checkmk-en-bounces at lists.mathias-kettner.de on behalf of Danko, Gary" <checkmk-en-bounces at lists.mathias-kettner.de on behalf of Gary_Danko at intuit.com> wrote:

>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!
>_______________________________________________
>checkmk-en mailing list
>checkmk-en at lists.mathias-kettner.de
>http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


More information about the checkmk-en mailing list