...
The built-in agent authentication protocol provides a quick and easy way for you to have the Uptime Infrastructure Monitor agent run commands (or any application) on your agent-side system without the fear of unknown users being able to execute the same commands. The output from the agent-side commands will be returned to the monitoring station custom script for parsing. This enables you to create a script that can monitor many different agent systems without duplicating the script many times. The following diagram illustrates the custom service monitor process:
Step 1 - Creating the Agent Side Script
...
Code Block | ||
---|---|---|
| ||
[HKEY_LOCAL_MACHINE\SOFTWARE\uptime software\up.time agent] "CmdsTimeout"=dword:00000014 "Port"=dword:0000270e "MaxClients"=dword:00000005 "Debug"=dword:00000000 "CmdsPassword"="secretpassword" "LogFile"="log.txt" [HKEY_LOCAL_MACHINE\SOFTWARE\uptime software\up.time agent\rexec_commands] "dir"= cmd.exe /c "dir c:" "show-temp"= cmd.exe /c "C:\scripts\show_temp.pl" |
Step 2 - Creating the Monitoring Station Script
...
The image below illustrates a sample monitor configuration. This service monitor will indicate a WARN
or CRIT
whenever the monitoring station custom script returns WARNING
or CRITICAL
in its output.