Answer the question
In order to leave comments, you need to log in
How to track mobile phone balance in Zabbix?
There is a perl script to query the mobile phone balance: #script operator --phone=number --password=pwd
Gives a simple number - the balance on the account.
I have several phones, the balance of which I want to track automatically in zabbix.
I ran into a problem that MTS allows you to request a balance of 2 numbers per minute in this way, after which it issues a captcha.
I decided to make a crutch and ask:
script operator --phone=number --password=pwd >> "$CACHE_FILE"
sleep 30
script operator --phone=number2 --password=pwd2 >> "$CACHE_FILE"
number balans
number2 balans2
number3 balans3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question