LmhansenYou can't use #vMachine.ConnectionGatewayIp# for this? That would ping the agents connection gateway (external IP address of the firewall).
JonJohnstonThat is exactly what I thought at first, except that this script runs from our Kserver, so it pings the Kserver live IP which fails. I looked for a variable that would take the connection gateway of the machine that triggers the alert, but I have not been able to find one.
LmhansenAh ... why not use the "system check" under "external monitoring" on the Monitor tab? You can have it ping anything, anywhere from anywhere (as long as there's an agent somewhere...)
firstname.lastname@example.orgIf you are using a group per customer and they only have one gateway you could setup a group variable for the internet ip, a bit of a pain to configure initially, but you can call it from the script and only have to maintain one script overall, not one per client?
I assume this fits with what you are trying to achieve.
Also keep in mind some firewall devices wont respond unless configured
JonJohnstonSo far it is working great for us. It is not fully in production yet however.
What I had to do was hardcode the live IP into the script, therefore 1 script per client per site.
My latest version of this script includes another step, so 3 scripts total. But now the second one checks the alert time and last checkin time of the machine that triggered the alert, and sends an email or continues to the third script accordingly. This prevented the emails saying the server is offline when it came back online. Let me know if you would like to see the latest version. We are having a meeting tomorrow to decide if we are going to fully implement this, but as mentioned with the limited rollouts it has worked wonderful.
I have been able to trigger an alert and have our pager going off that a server was down in as little as 3 minutes. However, for practical purposes this time period is going to be expanded.
rbjseaJon, I'd love to see the scripts as you have them now (including the 3rd you mentioned). It would be cool to pass a variable (or two) between scripts, or to a script directly from the alerts screen...
Did you all decide to roll this out to everyone?
thanks for the work!