Monitoring of SQL script

Asked

Viewed 37 times

1

Someone can help me,

In my company I have a script that checks how many emails have been processed and sent by the server, but sometimes the program that makes the submissions crashes and I only know that stopped because my users complain that e-mail is not coming,

Then I go in the script and change it to process again and I will be the program that makes the submissions

My doubt is "I would have some program that verifies this script and when analyzing this SQL would see that 10 minutes ago the emails were not processed and notify me"

  • If you use Linux server, you can create a php script that checks your database when it was last sent and email you depending on the conditions you want. Then just schedule the script to run every 10 minutes by crontab.

  • You could develop your own program, as already has the query assembled, is just develop a program that sends an alert when detecting the 10 minutes. It is also important to know the reason for these crashes, to solve these problems.

  • Thanks for the tips, I will try to develop in PHP, but I have no knowledge to connect it with Oracle, to in search of it, but thank you very much for the tips, so this program is from our ERP system provider, we have already checked everything to know why it is stopping but so far nothing, we believe to be the server that is getting outdated and ends up crashing the program, but as the money is short that, we have to look for other paths kkk

  • @Victormansolelli utilize oci_connect to use Oracle with PHP, but look for Zabbix (a professional solution).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.