Submit a ticketCall us

whitepaperYour VM Perplexities Called, and They Need You to Read This.

Virtualization can give you enormous flexibility with future workloads and can be a key enabler for other areas, like cloud computing and disaster recovery. So, how can you get a handle on the performance challenges in your virtual environment and manage deployments without erasing the potential upside? Learn the four key areas you need to be focusing on to help deliver a healthy and well-performing data center.

Get your free white paper.

Home > Success Center > Server & Application Monitor (SAM) > SAM Documentation > SAM Custom Template Guide > Create a Linux/Unix monitor

Create a Linux/Unix monitor

Table of contents

The Linux/Unix script monitor allows you to run custom scripts in SAM to monitor Linux-based computers. Before coding and testing your script, review the Linux/Unix information and components and best practices for SAM.

  1. Click Settings > All Settings > SAM Settings and click Manage Templates.

    The Manage Application Monitor Templates page opens. All available out-of-the-box and custom templates display.

  2. Create or edit a template.

    Search to locate, select, and edit an existing template or click Create New Template.

  3. Click Add Component Monitor(s) and choose Manually Add Component Monitors.
  4. Search for Linux/Unix. When displayed, select the Linux/Unix Script Monitor and click add.

    File:Success_Center/Reusable_content_-_InfoDev/SAM_Template_Reuse/SAM-Admin-MT/0B0/linux-unix-script-monitor_587x393.png

  5. Select the Authentication Type and matching credentials from the Credentials for Monitoring drop-down menu.

  6. Enter a Working Directory, used for processing the script. A typical directory customers use is /tmp.
  7. Enter a Command Line to run the script including all parameters using the format <scripting language path> ${SCRIPT} such as perl, python, or bash.

    Depending on the type of script, the command line may require additional information and parameters. For example, the file path or hostname.

  8. Click Edit Script to enter and test the script.

  9. Test the script by selecting settings for the output, specified node, and specified credentials. Click Get Script Output.

    Output results display using the script code with success or failure and any additional notes.

  10. Click Get Script Output to generate the output and click Save.

    The metrics save to outputs to configure as part of the component monitor. These outputs display at polling intervals for the template.

  11. When complete, click Submit to save the template.

When tested, output generates into customizable sections. Each output section is named by the Unique ID with a Display Name you can edit.

For each output, you can optionally:

  • Convert the value using selected formulas.
  • Configure the statistic thresholds to refine alerting for the component monitor. Set the warning and critical thresholds with specific values or baseline data.
  • Select a roll-up status sort option to display the best or worst status up through the template and component monitor.
  • Add notes to describe the script output.

File:Success_Center/Reusable_content_-_InfoDev/SAM_Template_Reuse/SAM-Admin-MT/0B0/script-output_783x315.png

Last modified

Tags

Classifications

Public