What I would like to achieve is to receive an email with the failures of my VPS. I tried to do that by downloading an rss feed XML file from my VPS provider which contains all the failures, down states etc. of their servers.
Once I downloaded it, I would like to parse it in order to see if my Virtual Host number is included in any of the entries of the XML file. If yes, I should receive an email containing the entire entry that contains my Virtual Host number (well, this is not a problem at all using sendmail
).
I have been unsuccessfully trying to use a simple and dirty wget
and grep
.
This is the file I would like to parse: http://www.hetzner-status.de/en.atom