ISO LAN ping up down notify

Discussion in 'Mac Apps and Mac App Store' started by adam9c1, Jul 5, 2016.

  1. adam9c1 macrumors 65816

    adam9c1

    Joined:
    May 2, 2012
    Location:
    Chicagoland
    #1
    Looking for a way to ping local IP or DNS name and notify me when down (via growl is ok).
     
  2. kryten2, Jul 5, 2016
    Last edited: Jul 5, 2016

    kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    Here's an Applescript example which uses the standard os x notification :

    Code:
    set hostName to "192.168.1.15"
    
    try
        do shell script "ping -qo -c 3" & space & quoted form of hostName
    on error
        display notification "Host" & space & hostName & space & "is down."
    end try
    If you want to use Growl then take a look at the AppleScript Sample from the link. You can also use GrowlNotify from the command line.

    Info : http://growl.info/downloads
     

Share This Page