Victor,
This worked great!...I can now see the processes running on a remote
node. This helps me to understand what is running when someone has an
issue.
Thanks,
Sam
Victor Kirhenshtein wrote:
> Hello!
>
> You can define a tool of type "command", which will execute command on
> management workstation (where nxcon.exe is running). You can pass IP
> address of selected node by using %OBJECT_IP_ADDR% macro in tool command
> line . However, agent will repond only to machines listed in it's
> configuration file under Servers, so your workstation should be defined
> on all agents as a a mangement server, which can be a problem.
>
> I suggest another solution: below is an SQL script, which you can run
> against your NetXMS database. It will add new tool Info->Process List,
> which will show process list on selected node. After updating database
> you will have to restart console application (you don't need to restart
> NetXMS server).
>
> --- snip ---
> INSERT INTO object_tools
> (tool_id,tool_name,tool_type,tool_data,flags,matching_oid,description)
> VALUES (8000,'&Info->&Process list',3,'Process
> List#7FSystem.ProcessList#7F^([0-9]+) (.*)',2,'','Show list of currently
> running processes');
> INSERT INTO object_tools_table_columns
> (tool_id,col_number,col_name,col_oid,col_format,col_substr) VALUES
> (8000,0,'PID','',0,1);
> INSERT INTO object_tools_table_columns
> (tool_id,col_number,col_name,col_oid,col_format,col_substr) VALUES
> (8000,1,'Name','',0,2);
> --- snip ---
>
> Best regards,
> Victor
>
>
> -----Original Message-----
> From: Sam Deforest [mailto:netxms.srv_at_walpolewood.net]
> Sent: Wednesday, 26 July, 2006 23:47
> To: NetXMS Users
> Subject: Re: [netxms-users] Feature Request
>
>
>
> Ok.....
> I use perl frequently to do simple tasks, Im thinking i could write a
> perl script that the Object Tools item will run. The only catch is how
> to pass a variable to the perl script. That variable would be the node
>
> name or last known ip address of the item I want to get a process list
> on. That way I can just view the perl interpreter window with the list
> of processes on it.
>
> This may just be a soloution in my case, as perl is not a necessary req.
>
> for NetXMS.
>
> Do you think this is possible?
>
> -sam
>
>
>
> Victor Kirhenshtein wrote:
>
>> Agent already have such parameter, the only problem is to get this
>> list from NetXMS console... We distinguish parameters which returns
>> list of items from parameters which returns only one value. Those
>> which return list are called "enums". NetXMS agent has enum called
>> "System.ProcessList". You can try it from your server's command line
>> by running
>>
>> nxget.exe -l agent_address System.ProcessList
>>
>> You should see all running process identifiers and names on target
>> machine.
>>
>> For getting such enums from console, there are thing called "Object
>> Tools". Idea is that you can configure various type of tools - running
>>
>
>
>> command, getting enums, SNMP tables, etc. and run them against
>> specific node via Tools submenu in popup menu. Unfortunatelly, object
>> tool configurator is not fully working, and the only possible way to
>> define new tools is to directly modify SQL database, which is a bit
>> tricky. I'll try to complete this things till next release.
>>
>> Best regards,
>> Victor
>>
>> -----Original Message-----
>> From: Sam Deforest [mailto:netxms.srv_at_walpolewood.net]
>> Sent: Wednesday, 26 July, 2006 17:35
>> To: NetXMS Users
>> Subject: [netxms-users] Feature Request
>>
>>
>>
>> How about an agent parameter that gets a list of all running
>> processes,
>> similar to the command line.........
>>
>> windows:
>> qprocess * /SYSTEM
>>
>> *nix:
>> ps -aux
>>
>> thanks,
>> Sam
>>
>>
>>
>>
>
>
>
Received on Mon Jul 31 2006 - 16:29:12 EEST
This archive was generated by hypermail 2.2.0 : Mon Jul 31 2006 - 16:41:18 EEST