' You can do so by assigning a EXE notification to the critical sensor. ' When a sensor monitoring a remote computer goes into "Down" state, you sometimes may find ' created Nov 2009 for PRTG Network Monitor V7, tested and updated Sep 2013 for PRTG V13 by Paessler Support Team, ' this script is open Source and comes without support and warranty ' PRTG CUSTOM EXE Notification, reboots a remote computer via WMI Create a text file and paste the following VBS script ( see other posts below for a modified script which allows for rebooting multiple servers and adding delays):.You can check this with the Windows System Uptime sensor on the server you would like to apply a reboot call. Without this folder the script will not work and an error message might appear, for example, RPC Server unavailable. Ensure that the folder C:\temp exists.To create a reboot script for use with PRTG, follow these simple steps: Step 1: Create a VBS Script that Can Invoke the Reboot Call Connect this notification with a sensor's notification trigger.Setup this script as a PRTG notification.Create a VBS script that can invoke the reboot call (see the sample below) and enter the necessary credentials and device names.Generally, there are three steps to set up your WMI reboot: All you need are two WMI capable Windows system for the PRTG server and the to-be-rebooted client. No additional software is needed on the server or the target system. For the reboot, a VBS script initiates a Windows Management Instrumentation (WMI) call. We will show you how to use this capability to reboot a remote system when a certain sensor enters an "Error" state. This is still called a "notification", but it does far more. But instead of just sending warnings to your mobile phone, you can also program PRTG to automatically launch any program or script with the "Execute Program" notification. PRTG can send you messages via email, pager and many other ways. Usually, PRTG notifications are used to notify you as a system administrator whenever something unusual happens in your network. from the Sysinternals toolset) or by using a Windows Management Instrumentation (WMI) call. Remote reboots can be performed by command lines tools (e.g. PRTG initiates a reboot when it discovers a service that fails for more than 15 minutes for example. In certain cases, it is useful to have this done automatically. One of the most common methods of recovery is a reboot of the server to get the failing service back online. Still some services fail, even without a complete crash of the server itself. All systems should always be up and running properly. It's the main task of PRTG Network Monitor to optimize your network's availability and performance by avoiding system downtimes. This article applies to PRTG Network Monitor Version 12 or later, as well as to previous (deprecated) versions How To Reboot a Computer via Windows Management Instrumentation (WMI) Call
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |