Help on sending email notifications
Posted: Mon Dec 12, 2016 8:35 am
Hi everyone!
So i'm about to write a little script that makes a simple mysql query, and i want to send the command output via email
Our nagios server is just configured to send email notifications (via an external exchange server, office365) for example when backups are done, but since this feature was not implementated by me, i'm not able to use this service to sending the output of the script. I'm looking on the internet but i can't find useful information, all i can find is info about implementating external software like postfix, ssmtp...
I want use this feature of nagios because is already configured to use a external microsoft mail service, and is working OK. My idea is to write the script, wich it makes the query, and then use the plugin or whatever uses nagios to send mail, as a direct command line
So my question is, wich is the plugin that nagios uses to send mail notifications, or how i can get this script working?
Tons of thanks guys!
So i'm about to write a little script that makes a simple mysql query, and i want to send the command output via email
Our nagios server is just configured to send email notifications (via an external exchange server, office365) for example when backups are done, but since this feature was not implementated by me, i'm not able to use this service to sending the output of the script. I'm looking on the internet but i can't find useful information, all i can find is info about implementating external software like postfix, ssmtp...
I want use this feature of nagios because is already configured to use a external microsoft mail service, and is working OK. My idea is to write the script, wich it makes the query, and then use the plugin or whatever uses nagios to send mail, as a direct command line
So my question is, wich is the plugin that nagios uses to send mail notifications, or how i can get this script working?
Tons of thanks guys!