Building a remote notification system
Posted: Mon Feb 23, 2009 10:07 am
I'm having trouble finding relevant information on Google so I thought I'd take my question to the forums.
I'm creating a script that can notify me about a user's previous backup, and if they haven't, then it will email them to do it. A couple days later, it'll email me to go bother them. I've figured out everything I need to do on each client machine, but I'm having some trouble finding the best notification method. At the moment, I've got it set up to email me, using the clients' sendmail. But that might not always work or make it through spam filters.
I'm thinking I might be able to have a very basic php page that reads get requests, and the clients can just run curl with variables from their machine. Then the server with the php page would read the get variables and save them to a database. At night, I could check the database for those that it's been a while since the last backup and have it notify me.
Does this seem too complicated? I'm really a php novice but it seems simple in theory. I'm concerned about security and validation, as I don't know the best solutions to either. Is there perhaps an open-source project already out there that I can utilize?
Thanks!
I'm creating a script that can notify me about a user's previous backup, and if they haven't, then it will email them to do it. A couple days later, it'll email me to go bother them. I've figured out everything I need to do on each client machine, but I'm having some trouble finding the best notification method. At the moment, I've got it set up to email me, using the clients' sendmail. But that might not always work or make it through spam filters.
I'm thinking I might be able to have a very basic php page that reads get requests, and the clients can just run curl with variables from their machine. Then the server with the php page would read the get variables and save them to a database. At night, I could check the database for those that it's been a while since the last backup and have it notify me.
Does this seem too complicated? I'm really a php novice but it seems simple in theory. I'm concerned about security and validation, as I don't know the best solutions to either. Is there perhaps an open-source project already out there that I can utilize?
Thanks!