Logmon - QoS not being generated

book

Article ID: 131064

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

You have logmon configured to run a command, and configured probe to generate QoS data and store the command outputs as values. 

However, we can see only "0" values being generated in the related QoS.

On the machine, you run manually the command and notice that it works fine. i.e:

[[email protected]_server]# bjobs -u all | wc -l 
141

In this case, the "141" value should be recorded in QoS.

 

Cause

Since logmon probe runs as a daemon, some commands (except O.S commands) cannot be able to write their results to STDOUT (standard output) file descriptor.

Environment

Logmon probe - any version

Resolution

Two solutions are available:

1- Redirect the command output to a file, then configure logmon to read this file;

OR

2- If you don't want to use a "intermediate" file (some customers don't want this, due to security reasons), you can configure the command to redirect its output directly to STDOUT, as below:

bjobs -u all | wc -l >&1