Ragesh,
Here is some further clarification:
Using the robot controller callback 'probe_list' is helpful to differentiate probes that have been deactivated before a restart of the local robot and probes that 'stopped' running during the time the robot was running on the local machine - which also includes probes that run into an error state (red in IM) and probes that are deactivated after the robot has been started.
For the first category, probes that have been deactivated previously before a restart of robot, the 'process_state' returned will have a value of 'none'.
For the second category, the 'process_state' returned will have value of 'stopped', and for problem probes, 'last_started' that will be the time the probe was last started in number of seconds since 1970, here is an example for the output in the pu command, and restful calls will return the same value but in a different format.
-- db2 is with a red icon in IM, a pu call to controller/probe_list with probe name as parameter returns the following:
db2 PDS_PDS 516
name PDS_PCH 4 db2
description PDS_PCH 12 db2 monitor
group PDS_PCH 9 Database
active PDS_I 2 0
type PDS_I 2 2
command PDS_PCH 12 db2_monitor
arguments PDS_PCH 1
config PDS_PCH 16 db2_monitor.cfg
datafile PDS_PCH 1
logfile PDS_PCH 16 db2_monitor.log
workdir PDS_PCH 20 probes/database/db2
timespec PDS_PCH 1
times_activated PDS_I 2 1
last_action PDS_I 11 1481189432
pid PDS_I 3 -1
times_started PDS_I 3 12
last_started PDS_I 11 1481189432
pkg_name PDS_PCH 4 db2
expires_at PDS_I 11 1506105000
pkg_version PDS_PCH 5 4.10
pkg_build PDS_PCH 3 18
process_state PDS_PCH 8 stopped
port PDS_I 3 -1
is_marketplace PDS_I 2 0
marketpl_block PDS_I 2 0
-- iostat is deactivated before robot restart:
iostat PDS_PDS 496
name PDS_PCH 7 iostat
description PDS_PCH 46 Generate disk QoS based on output from iost
group PDS_PCH 7 System
active PDS_I 2 0
type PDS_I 2 2
command PDS_PCH 18 ../../../bin/perl
arguments PDS_PCH 10 iostat.pl
config PDS_PCH 11 iostat.cfg
logfile PDS_PCH 11 iostat.log
workdir PDS_PCH 21 probes/system/iostat
timespec PDS_PCH 1
times_activated PDS_I 2 0
last_action PDS_I 2 0
pid PDS_I 3 -1
times_started PDS_I 2 0
last_started PDS_I 2 0
pkg_name PDS_PCH 7 iostat
pkg_version PDS_PCH 5 1.10
pkg_build PDS_PCH 3 01
process_state PDS_PCH 5 none
port PDS_I 3 -1
is_marketplace PDS_I 2 0
marketpl_block PDS_I 2 0
--- processes is deactivated without restart of the robot:
processes PDS_PDS 478
name PDS_PCH 10 processes
description PDS_PCH 25 Process monitoring probe
group PDS_PCH 7 System
active PDS_I 2 0
type PDS_I 2 2
command PDS_PCH 10 processes
arguments PDS_PCH 1
config PDS_PCH 14 processes.cfg
logfile PDS_PCH 14 processes.log
workdir PDS_PCH 24 probes/system/processes
timespec PDS_PCH 1
times_activated PDS_I 2 0
last_action PDS_I 2 0
pid PDS_I 3 -1
times_started PDS_I 2 2
last_started PDS_I 2 0
pkg_name PDS_PCH 10 processes
pkg_version PDS_PCH 5 4.31
pkg_build PDS_PCH 4 227
process_state PDS_PCH 8 stopped
port PDS_I 3 -1
is_marketplace PDS_I 2 0
marketpl_block PDS_I 2 0
Here is an example of the pu command when using probe_list callback but Ive removed and replaced sensitive information:
C:\>"C:\Program Files (x86)"\Nimsoft\bin\pu.exe -u administrator -p <password>
<UIM_domain>/<UIM_hub>/<UIM_Robot>/controller probe_list controller
Jan 25 13:41:43:879 pu: SSL - init: mode=0, cipher=DEFAULT, context=OK
Jan 25 13:41:43:880 pu: nimCharsetSet() - charset=
======================================================
Address: <UIM_domain>/<UIM_hub>/<UIM_Robot>/controller probe_list controller
Request: probe_list
======================================================
controller PDS_PDS 465
name PDS_PCH 11 controller
description PDS_PCH 34 Robot process and port controller
~
group PDS_PCH 15 Infrastructure
active PDS_I 2 1
type PDS_I 2 0
command PDS_PCH 15 controller.exe
config PDS_PCH 10 robot.cfg
logfile PDS_PCH 15 controller.log
workdir PDS_PCH 6 robot
timespec PDS_PCH 1
times_activated PDS_I 2 0
last_action PDS_I 2 0
pid PDS_I 5 3304
times_started PDS_I 2 1
last_started PDS_I 11 1484088410
pkg_name PDS_PCH 13 robot_update
pkg_version PDS_PCH 5 7.80
process_state PDS_PCH 8 running
port PDS_I 6 48000
is_marketplace PDS_I 2 0
marketpl_block PDS_I 2 0
In this last case, notice that the process state is 'running'