1- Identify the appropriate command (sample below) to see if our port or service is present or NOT present. This example looks for 'radius'. If found, it will print: "Found Radius". If NOT found, it will return: "No Radius".
if netstat -a | grep -qi "radius"; then echo Found Radius; else echo No Radius; fi
Validate that the command returns the expected output. Use a bogus string if necessary to test the failure case. For example as shown in Figure 1.
2- Deploy the "logmon" probe to the robot you want to monitor.
3- Using the IM or admin console, configure a new 'command' profile. Use the command above as the command in the profile, for example as shown in Figure 2.
4- Create a new Watcher Rule on the Watcher Rules tab as shown in Figure 3. Use the appropriate string returned by the command above.
5- For testing purposes, you may edit the string in the command to a bogus string, for example:
if netstat -a | grep -qi "radius123"; then echo Found Radius; else echo No Radius; fi
to validate the alarm is generated. You can also create a "good case" informational alarm as shown in Figure 4.