NSClient++ Help (#1) - checkFile2 Extension Pattern (#499) - Message List

checkFile2 Extension Pattern

Hello!

we try to find only files with extension "*.pdf" BUT NOT with "*.pdf.tmp" extension. The Command is: checkFile2 path=D:\data0\PDF\ filter+written=>1m MaxWarn=2 MaxCrit=4 max-dir-depth=0 pattern=*.pdf

somebody now the Way?

Thanks!

  • Message #1555

    HUmm, you mean you get foo.pdf.tmp when specifying pattern=*.pdf

    Thats strange... I shall look into it...

    Michael Medin

    • Message #1556

      I can confirm that it works correctly in 3.8 nighly. By correct I mean that .tmp is NOT found. *.pdf* will of course give also tmp.

      • Message #1557

        I have also tested with 3.7 stable now and it works the same.

  • Message #1558

    NSClient++ 0.3.7.493 2009-10-12

    Look at the Logfile.... 007_NN_0_0_100210.pdfx, 022_GZ_0_0_100210.pdfx

    2010-02-10 11:06:02: debug:NSClient++.cpp:1073: Injecting: bkgen_import_geplant_PDF: ShowAll
    2010-02-10 11:06:02: debug:NSClient++.cpp:1073: Injecting: checkFile2: path=D:\data0\IMPORT\DATA\GEPLANT\PDF\, filter+written=>1m, MaxWarn=2, MaxCrit=4, max-dir-depth=0, pattern=*.pdf
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:116: Input is: D:\data0\IMPORT\DATA\GEPLANT\PDF\ / 10
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:131: File pattern: D:\data0\IMPORT\DATA\GEPLANT\PDF
    *.pdf
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:632: result: 1 -- 1
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:632: result: 1 -- 1
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:632: result: 1 -- 1
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:632: result: 1 -- 1
    2010-02-10 11:06:02: debug:modules\CheckDisk\CheckDisk.cpp:141: File pattern: D:\data0\IMPORT\DATA\GEPLANT\PDF
    *.*
    2010-02-10 11:06:02: debug:NSClient++.cpp:1109: Injected Result: CRITICAL '001_DA_0_0_100210.pdf, 007_NN_0_0_100210.pdfx, 022_GZ_0_0_100210.pdfx, TEST.pdf, 001_DA_0_0_100210.pdf, ..., ..., ...: 4 > critical'
    2010-02-10 11:06:02: debug:NSClient++.cpp:1110: Injected Performance Result: 001_DA_0_0_100210.pdf, ..., ..., ...'=4;2;4; '
    2010-02-10 11:06:02: debug:NSClient++.cpp:1109: Injected Result: CRITICAL 001_DA_0_0_100210.pdf, 007_NN_0_0_100210.pdfx, 022_GZ_0_0_100210.pdfx, TEST.pdf, 001_DA_0_0_100210.pdf, ..., ..., ...: 4 > critical'
    2010-02-10 11:06:02: debug:NSClient++.cpp:1110: Injected Performance Result: '001_DA_0_0_100210.pdf, ..., ..., ...'=4;2;4;

    • Message #1559

      Sorry *.pdf.tmp works fine but *.pdfx is wrong...

Subscriptions