more G-Labs products

Author Topic: Computer down checking program.  (Read 1054 times)

December 18, 2015, 03:01:24 AM
Read 1054 times

maxflax

  • ***
  • Information
  • Full Member
  • Posts: 90
Hi,
Maybe someone have need for this.

Made a small program for detecting if one of my homegenie boxes dies in my network. if detected downtime a email will go out stating which machine is out. If machine comes back up again the program will detect this and send out another email informing me of that.

In my phone I have a filter for email that will filter out these messages and make a alarm sound.


December 18, 2015, 04:17:53 PM
Reply #1

[email protected]

  • *****
  • Information
  • Hero Member
  • Posts: 271
Nice, I would go one step further and rather than using ping, make an API call to homegenie using http methods :)

that way if the service crashes it will detect that, rather than a kernel panic or windoze crashing :)

December 19, 2015, 04:31:31 AM
Reply #2

maxflax

  • ***
  • Information
  • Full Member
  • Posts: 90
Here is an updated version that first will try ping. If ping is successfull it will test the HG service for response and if one of this fails a email will be sent.
Also a mail will be sent when the connection is restored.

Don't forget to edit all the settings on a Node.
« Last Edit: December 19, 2015, 03:17:26 PM by maxflax »