google / macops

Utilities, tools, and scripts for managing and tracking a fleet of Macintoshes in a corporate environment
Apache License 2.0
819 stars 86 forks source link

deprecation_notifier - only run when internal server is reachable? #59

Open miawri opened 8 years ago

miawri commented 8 years ago

It would be great if we configure the notifier to launch our application management system (munki) off the back of the notifier using munki links. The problem with this is if the user is off LAN at the time, they wouldn't be able to do much about it.

Is it possible to configure the deprecation_notifier to only notify if a configurable url / ip address is reachable?

Thanks!

russellhancox commented 8 years ago

The simplest way to add this would be to have a script (bash/Python) that the LaunchAgent starts and that script tries to contact your management server and runs deprecation_notifier itself if appropriate.

miawri commented 8 years ago

Thanks for the quick reply!
Once deprecation_notifier has been started by the LaunchAgent won't it continue to run (and notify) even if they move off LAN?

russellhancox commented 8 years ago

Ah, good point, I need more coffee.

In that case changes to deprecation_notifier would be needed to add this. If you feel comfortable doing this, we'd happily accept a pull request. If not, we'll try and get to this when we can but it might be a while.

miawri commented 8 years ago

I'd be starting from scratch so definitely not comfortable. You may get there before me!

Thanks again.