|
@@ -19,6 +19,7 @@ FS_WARNING = .30
|
19
|
19
|
#
|
20
|
20
|
TMP_WARNING = 50
|
21
|
21
|
TMP_ERROR = 57
|
|
22
|
+#
|
22
|
23
|
|
23
|
24
|
if __name__ == "__main__":
|
24
|
25
|
parser = argparse.ArgumentParser(
|
|
@@ -79,6 +80,8 @@ if __name__ == "__main__":
|
79
|
80
|
elif args.check == 'temperature':
|
80
|
81
|
temperature = data.get('tmp', {}).get('tC')
|
81
|
82
|
if temperature is None:
|
|
83
|
+ if args.hostname.startswith('shelly1-'):
|
|
84
|
+ n.exit(n.OK, "Shelly1 has no temperature information")
|
82
|
85
|
status = n.UNKNOWN
|
83
|
86
|
elif temperature >= TMP_ERROR:
|
84
|
87
|
status = n.ERROR
|