On some Linux systems, this sh command will hang and never return to the prompt.
If the sh command hangs and never returns, the logmon probe will experience the same behavior.? In those cases, you can include the command that the logmon profile should execute in a shell script file.? Add execute permissions to the shell script and then provide the absolute path to the shell script file for the command in the logmon profile to monitor the outputs of the desired command.
Here is how you would do this for the command provided in the example above:
1.Create the iostat.sh file in the /opt/nimsoft/probes/system/logmon directory with the following contents: