Jump to content
TechnicalHero

Monitor for Scheduled reboots

Recommended Posts

I would like an internal monitor that checks for the ScriptID of my Server Reboot script once and hour and if it finds one it then calls a script which emails my team with the host name that have been scheduled to restart. Maybe even the time. Creating the Internal Monitor and Alert Template is no problem.

The SQL below returns a table with all the info I need. I need to pump those results into the body of an email.

SELECT pendingscripts.ScriptID, pendingscripts.ComputerID, computers.Name
FROM pendingscripts
INNER JOIN computers 
WHERE scriptID = 6003

If I use the Variable Set - SQL function, it only returns the first cell in the table rather than the whole table.

How can I get the who list of host names into the body of an email?

Kind regards,

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×