Agent monitoring

A Server Agent is a software module running on each server managed by SA. Whenever a change needs to be made to a managed server, the Server Agent brokers the requests.

For more information about the Server Agent, see the SA 10.51 Use section.

Agent port

The Server Agent uses port 1002.

Monitoring processes for Agents

On Windows, from the Start menu, choose Run. In the Run dialog, enter taskmgr. In the Windows Task Manager dialog, click the Process tab and look for the processes called watchdog.exe and python.exe.

On UNIX (Solaris, Linux, AIX, and HP-UX), the Server Agent has two running processes.

On Solaris, execute the command:

# ps -flg `awk -F= '($1=="pgrp") {print $2}' /var/opt/opsware/agent/daemonbot.pid`

Running this command should produce output similar to the following:

F S  UID  PID  PPID  C  PRI NI  ADDR  SZ  WCHAN  STIME  TTY  TIME  CMD

8 S  root 9541 9539  0  41  20  ?    1768 ?     Aug 08  ?    1:23 /opt

/opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

8 S  root  9539   1  0  99  20  ?    398  ?     Aug 08  ?    0:00 /opt

/opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

On Linux, execute the command:

# ps -flg `awk -F= '($1=="pgrp") {print $2}' /var/opt/opsware/agent/daemonbot.pid`

Running this command should produce output similar to the following output:

F S  UID  PID  PPID  C  PRI NI  ADDR  SZ  WCHAN  STIME  TTY  TIME  CMD

1 S  root 2538 1     0  85  0   -    3184 wait4  Sep11  ?    00:00:00

/opt/opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

5 S  root 2539 2538  0  75  0   -   30890 schedu Sep11  ?    00:02:56

/opt/opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

The daemon monitor is the process with a PPID of 1. The others are server or monitor threads.

On AIX, execute the command:

# ps -flg `awk -F= '($1=="pgrp") {print $2}' /var/opt/opsware/agent/daemonbot.pid`

Running this command should produce output similar to the following output:

F    S UID  PID  PPID  C  PRI NI  ADDR  SZ  WCHAN  STIME  TTY  TIME  CMD

40001 A root 110600 168026 0 60 20 2000d018 16208 * Sep 05 -   7:15 /opt/

opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

40001 A root 168026 1  0  60 20 2000f25c 1352       Sep 05 -   0:02 /opt/

opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

On HP-UX, execute the command:

# ps -flg `awk -F= '($1=="pgrp") {print $2}' /var/opt/opsware/agent/daemonbot.pid`

Running this command should produce output similar to the following output:

F  S  UID  PID  PPID  C  PRI  NI     ADDR  SZ  WCHAN  STIME TTY TIME COMD

1  R root 10009  1    0  152 20 437eb1c0 266      - Sep 22 ?  0:00 /opt/

opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

1  R root 10010 10009 0  152 20 434fb440 2190    - Sep 22  ? 3:29 /opt/

opsware/agent/bin/python /opt/opsware/agent/pylibs/shadowbot/daemonbot.pyc --conf /etc/opt/opsware/agent/agent.args

Agent logs

The Server Agents create the following log files on managed servers.

Windows:

  • %ProgramFiles%Common Files\opsware\log\agent\agent.log*
  • %ProgramFiles%Common Files\opsware\log\agent\agent.err*

UNIX:

  • /var/log/opsware/agent/agent.log*
  • /var/log/opsware/agent/agent.err*

Conditions to monitor in the UNIX logs:

  • Strings containing “Traceback”
  • Strings containing “OpswareError”