1
2
3
4
5
6
7
8
9
10
|
# This is the default (hard coded) definition of the
# state code handling.
# -> All state codes listed after "2:" result in a CRITICAL state
# -> All state codes listed after "1:" result in a WARNING state
# -> All state codes listed after "0:" result in a OK state
printer_alerts_state_map = {
2: [ 8, 1101, 1102, 1112, 1114, 1115 ],
1: [ ],
0: [ 4, 6, 7, 19, 20, 23, 24, 25, 27, 35, 36, 37, 38, 502, 503, 504, 505, 506, 507, 802, 803, 804, 805, 806, 807, 808, 809, 810, 1001, 1002, 1005, 1106, 1107, 1108, 1111, 1113, 1302, 1304, 1501, 1502, 1503, 1504, 1505, 1506, 1509 ],
}
|