Creating Custom Monitor Scripts Estimated Reading Time: 2 Minutes A monitor script (also called a monitor type) defines a custom sequence of actions a device monitor runs against an open connection. Once created, it's available to select when adding a monitor to a device. Accessing Monitor Scripts Click Settings in the left sidebar, then under Devices, click Monitor Scripts. Adding a Monitor Type Click Add New Monitor Type. In Name, enter a descriptive identifier for the monitor type. Set Client Access to Yes to let clients with the right permissions add this monitor script to their own devices and configure it; leave it No to keep it admin-only. Build the script under Actions. Each row has an action and, for most actions, text to send or match: Send text — sends the given text to the open connection and waits for a response. Send single line (with \n) — same as Send text, but appends a line break. Match regular expression — checks the response against the regular expression you enter. Match exact text — checks the response matches the given text exactly. A partial match fails the monitor. End of Script — ends the script. Required as the last action; leave its text box empty. Any action added after this one is ignored. Click more… to add another action row. Click Save, or Save & New to save this monitor type and start another. Note: For example, an HTTP monitor script might: send HEAD / HTTP/1.0\r\n\r\n, match the regular expression ^HTTP/[0-9\.]+ [0-9]{3} against the response, then End of Script. Editing a Monitor Type Click Edit next to a monitor type on the Monitor Scripts list to open the same form pre-filled with its Name, Client Access, and Actions. Click Update to save your changes. Warning: To delete a monitor type, click Delete next to it on the Monitor Scripts list and confirm "Are you sure you want to delete this monitor type?" Any device monitor using it loses its script and stops working.