diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-16 15:23:20 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-16 16:16:00 +0200 |
commit | a97118c489a59d723538292214efaa10dfcb96df (patch) | |
tree | 853ec20d2af94dc8d3325fa3b781dd535cd72c86 /modules/private/monitoring/plugins/check_ovh_sms | |
parent | b1b8a5623d22a7ee4301afe4e7b9d368ef7ded8f (diff) | |
download | Nix-a97118c489a59d723538292214efaa10dfcb96df.tar.gz Nix-a97118c489a59d723538292214efaa10dfcb96df.tar.zst Nix-a97118c489a59d723538292214efaa10dfcb96df.zip |
Add status engine website
Diffstat (limited to 'modules/private/monitoring/plugins/check_ovh_sms')
-rwxr-xr-x | modules/private/monitoring/plugins/check_ovh_sms | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/monitoring/plugins/check_ovh_sms b/modules/private/monitoring/plugins/check_ovh_sms index 141f82d..caf279c 100755 --- a/modules/private/monitoring/plugins/check_ovh_sms +++ b/modules/private/monitoring/plugins/check_ovh_sms | |||
@@ -15,10 +15,10 @@ try: | |||
15 | result = client.get('/sms/{}'.format(account))["creditsLeft"] | 15 | result = client.get('/sms/{}'.format(account))["creditsLeft"] |
16 | 16 | ||
17 | if result < 20: | 17 | if result < 20: |
18 | print("SMS OVH Critical - Not enough sms left ({})|SMS {}".format(result, result)) | 18 | print("SMS OVH Critical - Not enough sms left ({})|SMS={};;;;".format(result, result)) |
19 | sys.exit(2) | 19 | sys.exit(2) |
20 | else: | 20 | else: |
21 | print("SMS OVH Ok - Enough sms left ({})|SMS {}".format(result, result)) | 21 | print("SMS OVH Ok - Enough sms left ({})|SMS={};;;;".format(result, result)) |
22 | sys.exit(0) | 22 | sys.exit(0) |
23 | except Exception: | 23 | except Exception: |
24 | print("SMS OVH UNKNOWN - Error during script") | 24 | print("SMS OVH UNKNOWN - Error during script") |