This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

How Does one Alert on a Server that hasn't rebooted?

It seems like a relatively easy request. The client wants to know when their server hasn't rebooted as it is part of SQL cluster and some App servers depend on it. I've tried using the Last boot has Changed with the NOT logic but I can't seem to get it to trigger.Any ideas, I'm open to suggestions ?

-Cheers

Parents
  • Not sure how I'd do it in the GUI, but with a custom alert it'd be something like this

    Set up a custom swql alert on nodes, the top box will be prepopulated and you can't change it, but in the lower box enter this

    where nodes.nodeid in (

    Select nodeid from orion.nodes where caption like 'sqlclusterserver%' -- filter on whatever makes sense to get all your sql servers

    and daydiff(lastboot,getutcdate())>31 -- this is however many days are supposed to go between reboots

    )

Reply
  • Not sure how I'd do it in the GUI, but with a custom alert it'd be something like this

    Set up a custom swql alert on nodes, the top box will be prepopulated and you can't change it, but in the lower box enter this

    where nodes.nodeid in (

    Select nodeid from orion.nodes where caption like 'sqlclusterserver%' -- filter on whatever makes sense to get all your sql servers

    and daydiff(lastboot,getutcdate())>31 -- this is however many days are supposed to go between reboots

    )

Children