MonitorPack Guard scripting
How to schedule a script
Run MonitorPack Guard > Expand Monitoring menu in the left side menu
> select Schedule Action > check or uncheck Schedule,
map your script, select your scheduled time, days and months.
How to start vbs script from a batch file
MonitorPack Guard runs batch scripts, but you can need to use vbscript files (.vbs),
to do this, you create first a batch file (.bat) and you call you vbs
script from the batch file as follow.
:: --------------------------------------------------------------------------------------------------
:: (C) Copyright 2003-2015 TECK SYSTEM SOFT. All rights reserved
:: --------------------------------------------------------------------------------------------------
:: MonitorPack script model
:: Call vbs script from batch file (.bat)
cd\
cd "C:\Program Files (x86)\MonitorPack Guard\Script\"
Call My_File.vbs
Exit
How to shutdown my PC from a batch file
MonitorPack Guard runs batch scripts, if you need to schedule a shutdown every
day at a specific time, to do this, you create a batch file (.bat) as
follow.
:: --------------------------------------------------------------------------------------------------
:: (C) Copyright 2003-2010 TECK SYSTEM SOFT. All rights reserved
:: --------------------------------------------------------------------------------------------------
:: MonitorPack script model
c:\windows\system32\shutdown -s -f -t 60
exit
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Schedule Action > Check
or uncheck Schedule, Map your Script, select your Scheduled
time, days, Months. All applications will be closed before shutdown
and This script works even if no Windows session is opened.
Use verify button to check if all is correct and
validate.
>How to monitor my Disks space
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Manage Alerts > select
Monitoring Performance and click create a new alert
> Choose a Domain in the Domain ComboBox and click on select button
> in the select a Computer panel that appears select a computer
and select logicalDisk free Space define Rule "<" and
give value 20.
Use verifyParameters button to check if all is
correct.
select your alarm mode
Choose your Schedule
Choose your Condition
How to monitor my Antivirus
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Manage Alerts > select
Monitoring Processes and click create a new alert >
choose a domain in the Domain combobox and a process in Process combobox
> click create button, for example if you have Avast
select "AvastSvc" process this is available for any existing Antivirus
and any application on your PC.
Use create button.
select your alarm mode
How to monitor my Battery
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Manage Alerts > select
Monitoring Performance and click create a new alert
> Choose a Domain in the Domain ComboBox and click on select button
> in the select a Computer panel that appears select a computer
and select BatteryStatus (available only when power is unplugged) >
select RemainingCapapcity Instance define Rule "<"
and give a value.
Use verifyParameters button to check if all is
correct.
select your alarm mode
How to monitor my local Web Server
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Manage Alerts > select
Monitoring Port and click create a new alert > Choose
a domain in the Domain ComboBox and a give a port Number in Port
Number (in this case 80) TextBox > Check with Try button >
click create alert button For eample if you have Avast
select "AvastSvc" process this is available for any existing Antivirus
and any application on your PC.
Use create button.
select your alarm mode
How to reactivate the firewall
create a file start_firewall.bat in script folder "MonitorPack Guard\Script"
Copy / paste the script below in the start_firewall.bat
Note of course this is available for any existing
software on your PC!, with net stop / start you need to use service
Name that is displayed in the "Service_Name" column in MonitorPack Service
manager.
:: --------------------------------------------------------------------------------------------------
:: (C) Copyright 2003-2015 TECK SYSTEM SOFT. All rights reserved
:: --------------------------------------------------------------------------------------------------
:: MonitorPack script model
:: Start a service
net stop "MpsSvc"
net start "MpsSvc"
Exit
Run MonitorPack Guard > Expand Monitoring menu
in the left side menu > select Manage Alerts > select
Monitoring a Windows service and click create a new
alert > Choose a domain in the Domain ComboBox and select "MpsSvc" Windows
service in combobox Service .
Click create alert button.
Select create SCRIPT alert
Click Script... button and map file start_firewall.bat
in script folder "MonitorPack Monitor\Script"
Select When... Stopped
Fill other optional informations
Click Verify button and validate
alarm
|