]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - modules/private/monitoring/plugins/check_ovh_sms
7 [endpoint
, application_key
, application_secret
, consumer_key
, account
] = sys
.argv
[1].split(",")
10 application_key
=application_key
,
11 application_secret
=application_secret
,
12 consumer_key
=consumer_key
,
15 result
= client
.get('/sms/{}'.format(account
))["creditsLeft"]
18 print("SMS OVH Critical - Not enough sms left ({})|SMS={};;;;".format(result
, result
))
21 print("SMS OVH Ok - Enough sms left ({})|SMS={};;;;".format(result
, result
))
24 print("SMS OVH UNKNOWN - Error during script")