As I was reading through my RSS feeds this morning, I saw that a user named “Fredebben” had posted a neat find on the OpenNMS wiki.
I didn’t know this, but it turns out that you can temporarily suspend service polling with an event, and then resume it as needed. This is pretty cool, especially if you need to stop polling for just one service.
I once had a client with a requirement that there be a scheduled outage once a week for all services but ICMP. In their case I had them move ICMP into its own package, and then they could use a Poll Outage to suspend polling on the other services. That is still probably the best way to do it for a lot of services, but it is nice to know this event method works as well.
We use this with a script when to when we automatically restart servers. I still still try to find out how to do this with a api and with powershell.
Fred Ebben