Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - sushizang

#1
General Support / Re: Problem with subgents
June 29, 2009, 10:47:19 AM
Usage: nxagentd [options]
Where valid options are:
   -c <file>  : Use configuration file <file> (default {search})
   -C         : Check configuration file and exit
   -d         : Run as daemon/service
   -D         : Turn on debug output
   -f         : Run in foreground
   -h         : Display help and exit
   -M <addr>  : Download config from management server <addr>
   -p         : Path to pid file (default: /var/run/nxagentd.pid)
   -P <text>  : Set platform suffix to <text>
   -r <addr>  : Register agent on management server <addr>
   -v         : Display version and exit
#2
Feature Requests / Read/Write DB table...
June 22, 2009, 03:48:45 AM
Read and Write data on user own DB (Ex. MySQL).

Especially, Write the collected data by NetNMS into user own DB.

For Ex. Read disk size and write that into my DB.

Needed parameters are:

1. DB server address
2. DB name
3. User name
4. Password
5. Table name
6. Query (Something like Fieldname = 'myField')
.
.

How about you?

Thanks.
Regards.
#3
Feature Requests / Re: Agent parameters...
June 18, 2009, 09:19:15 AM
1. single memory

Real code below:
============================================
shmid = shmget((key_t)( 9790 + 2 ), 24, 0666|IPC_CREAT);
============================================

*9790: shmkey

*2: offset (optional)

*24: size of data type (could be pre-define)

At least needed value is shmkey.

Offset value could be merged into shmkey. (ex.9792)

I tested, it's ok. But, struct memory...

Thanks.
Regards.
#4
Feature Requests / Re: Agent parameters...
June 18, 2009, 05:57:59 AM
1. if single memory
- MemShared.Int(key, offset)
- MemShared.Unint(key, offset)
- MemShared.Char(key, offset)
- MemShared.Float(key, offset)
- MemShared.String(key, offset)

2. if struct memory
- MemShared.Struct.Int(key, index, offset)
- MemShared.Struct.Unint(key, index, offset)
- MemShared.Struct.Char(key, index, offset)
- MemShared.Struct.Float(key, index, offset)
- MemShared.Struct.String(key, index, offset)

I don't know details...


Thanks.
Regards.
#5
General Support / [BUG?] show host names not saved.
June 18, 2009, 05:06:12 AM
Add multi source of graph and check the " Show host names" in Graph Properties and click OK.

Close that graph window and re-open that saved graph, but Show host names is unchecked.

Could you check it?

Thanks.
Regards.
#6
Feature Requests / Agent parameters...
June 17, 2009, 10:08:20 AM
1. Read file & get data
File.Content.Char(*)
File.Content.Int(*)
File.Content.String(*)

2. Read shared memory & get data
Share.Mem.Char(*)
Share.Mem.Int(*)
Share.Mem.String(*)

How about ?

Thanks.
Regards.
#7
General Support / Re: DCI problem...
June 16, 2009, 03:15:19 AM
Yes.

"Process.CountEx(".*"," node_agent")" and (".*","  ./node_agent") works fine.

But, (".*"," \\./node_agent") not works. (Don't care)


Thanks.
Regards.
#8
General Support / Re: DCI problem...
June 15, 2009, 07:48:43 AM
Yes, you right. That's a python script.

And "Process.CountEx(".*","^node_agent")" not work, just return '0', But "python" return '1'.

Thanks.
Regards.
#9
General Support / SNMP OID auto discovery...?
June 12, 2009, 10:18:11 AM
I want to monitor status of my process using SNMP protocol on linux system.

But, the process has restart, that OID(Linux PID) is changed, so can not monitor any more.

How can I fix it?

Thanks.
#10
General Support / Re: Threshold and auto action...
June 12, 2009, 09:14:15 AM
After change "Action" to "ActionShellExec", works fine.

Thanks.
#11
General Support / Threshold and auto action...
June 12, 2009, 07:27:58 AM
1. Windows agent

1.1 agent config
Action = Test2:c:\Test2.bat (echo test2 >> c:\test2.txt)

1.2 Event OK

1.3 "test2.txt" generated Ok. (Works fine.)


2. Linux agent

2.1 agent config
Action=Test1:/root/test1.sh (echo test1 >> c:\test1.txt)

2.2 Event OK.

2.3 "test1.txt" not generated.


What's wrong?

Need helps.

Thanks.
#12
1. Add action to agent's config & restart agent
Action = Test:ls > /ls.txt

2. Define action on console's object tools.
name: Test
description: ls
command: ls > /ls.txt
access: everyone

And then?

Before,  I have define the action on "control panel -> Actions".

And add it to event processing policy editor.

And add that event on "Data collection -> threshold".

But, not work.

What is the difference between action and object tools on control panel?

Sorry, but I can not find the details of define action on user manual.


Thanks.
Regards.
#13
General Support / Re: DCI problem...
June 11, 2009, 05:14:18 PM
# ps -ef | grep node
root      7549     1  0 13:41 ?        00:00:01 ./node_agent -d

parameters:
node_agent
node_agent -d
./node_agent
./node_agent -d

All of return values are '0'.


Thanks.
Regards.
#14
I want to restart my remote process(linux) when that process goes down, using NetXMS console.

How can I do?

Thanks.
Regards.
#15
General Support / DCI problem...
June 11, 2009, 08:04:29 AM
Using NetXMS agent, some custom process can not be recognized.

That process really executing in the system(Linux).

I can check it using "ps -ef".

But, When I get it on NetXMS console, just return value '0'.

Other custom process is works fine.

Using SNMP protocol, can not be auto recognize that OID(PID). Right?

Could you help me?

Thanks.
Regards.