Professional Documents
Culture Documents
PandoraFMS Alerts Whatsapp
PandoraFMS Alerts Whatsapp
PandoraFMS Alerts Whatsapp
Table of Contents
1 Using the script 1.1 Unpackage the code..................................................................................................................2 1.2 Retrieve auth password.............................................................................................................2 1.3 Executing the script manually...................................................................................................2 2 Configuring the alert 2.1 Configure a command............................................................................................................... 2.2 Configure an action................................................................................................................... 2.3 Configure a template.................................................................................................................! 3 Creating the alert
"ith #andora $%& is possi'le configure an alert that send a "hatsapp to a mo'ile phone using a unofficial (#) named "hats(#) *https+,,githu'.com,aesedepece,"hats(#)-.
.hen we execute the 2owsup script to receive a confirmation code in our phone *'y &%& or 8oice message-+
python .,yowsup9cli 9c config.example 9d 99re:uestcode voice python .,yowsup9cli 9c config.example 9d 99re:uestcode sms
)n few moments we will receive a 7 digit confirmation code in our phone. "e use it to re:uest the authentication password+
python .,yowsup9cli 9c config.example 9d 9R 123 !7
"e recei'e a 'ase7 coded password that is all we need to use the "hats(#).
Example: php5 send_whatsapp.php 34666 !3456 c"#$c3d%cm&' 346666543! ()hat*s up )hatsapp+( <=.E&+ .he #hone num'ers have the country code as prefix .he script depends on the (#) used and it4 on the "hatsapp messenger servers. )f "hatshapp changes their systems4 is possi'le that the script doesn>t work.
(s we said4 we fill the field 3 *the 2 first fields will 'e taken from action- with the desired message. )n this case /.he disk space is under 2@?1.
$inally we can set a recovery message to receive a message when the alert will 'e recovered. )n this case /.he free space disk is over 2@? again1. .he field 2 will 'e empty4 'ut if we want4 we can set it with a different phone num'er where receive the recovery whatsapps.