This file is indexed.

/usr/share/check_mk/checks/cmctc.include is in check-mk-server 1.2.8p16-1ubuntu0.1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
def cmctc_translate_status(status):
    return {
            4: 0,  # ok
            7: 1,  # warning
            8: 1,  # too low
            9: 2   # too high
            }.get(status, 3)

def cmctc_translate_status_text(status):
    return {
       1 : "notAvail",
       2 : "lost",
       3 : "changed",
       4 : "ok",
       5 : "off",
       6 : "on",
       7 : "warning",
       8 : "tooLow",
       9 : "tooHigh",
       }.get(status, "UNKNOWN")