FreePBX script change
Basically I would like the system to email me anytime somebody makes a change that requires a reload, or the server is rebooted with the IP address of the server that was reloaded or rebooted(Either GUI or command line reload/reboot). I know I will be receiving quite a few emails, however, our team will be flagged that someone has made changes to the system.
I believe the module is /var/lib/asterisk/bin/module_admin reload
There is already sendmail loaded on the servers - /usr/lib/sendmail -oi
Just need the script added to the module_admin so that it emails the team when a reboot or reload occurs. Must happen either from GUI or command line.
You supply the code and we will add it to our servers.
The email should be very short:
To: Support Team
From: Server 1
Subject: Reboot/Reload occured at $time $date
"If easily available, IP adress that initiated the reload or all IP addresses logged in at the time"
hi.pls check my feedback. there are 2 parts of project here 1) custom module which send email every time anyone requesting generate config 2) script which reuse same code and inform u on boot.