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
sushizang
Posts
-
Problem with subgents -
Read/Write DB table...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:
- DB server address
- DB name
- User name
- Password
- Table name
- Query (Something like Fieldname = 'myField')
.
.
How about you?
Thanks.
Regards. -
Agent parameters...- 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. -
Agent parameters...- if single memory
- MemShared.Int(key, offset)
- MemShared.Unint(key, offset)
- MemShared.Char(key, offset)
- MemShared.Float(key, offset)
- MemShared.String(key, offset)
- 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. -
[BUG?] show host names not saved.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. -
Agent parameters...-
Read file & get data
File.Content.Char(*)
File.Content.Int(*)
File.Content.String(*) -
Read shared memory & get data
Share.Mem.Char(*)
Share.Mem.Int(*)
Share.Mem.String(*)
How about ?
Thanks.
Regards. -
-
DCI problem...Yes.
"Process.CountEx(".*"," node_agent")" and (".*"," ./node_agent") works fine.
But, (".*"," \\./node_agent") not works. (Don't care)
Thanks.
Regards. -
DCI problem...Yes, you right. That's a python script.
And "Process.CountEx(".*","^node_agent")" not work, just return '0', But "python" return '1'.
Thanks.
Regards. -
SNMP OID auto discovery...?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.
-
Threshold and auto action...After change "Action" to "ActionShellExec", works fine.
Thanks.
-
Threshold and auto action...- 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.)
- 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.
-
How can I restart remote process automatically?-
Add action to agent's config & restart agent
Action = Test:ls > /ls.txt -
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. -
-
DCI problem...# ps -ef | grep node
root 7549 1 0 13:41 ? 00:00:01 ./node_agent -dparameters:
node_agent
node_agent -d
./node_agent
./node_agent -dAll of return values are '0'.
Thanks.
Regards. -
How can I restart remote process automatically?I want to restart my remote process(linux) when that process goes down, using NetXMS console.
How can I do?
Thanks.
Regards. -
DCI problem...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. -
Flex errorsI have install msys but can not find it.
So, I have install Cygwin to re-compile flex src.
And I could find it from installed Cygwin directory (c:/cygwin/bin).
In other word, No need re-compile flex.
thanks.
Regards.
-
Flex errorsI can not find "flex version 2.5.33 for windows".
But, Just "flex-2.5.4a".
How can I get it??
Regards.
-
Simple history of compiling nxcon for win32 with VC++6- src: netxms-0.2.26.tar.gz (None of modified)
- Install Microsoft Visual Studio 6 Ent.
- Install Microsoft Visual Studio 6 Service Pack 6
- Install Microsoft Windows Server 2003 PSDK (PSDK-x86.msi) & Set path (include, lib)
- Install Microsoft Windows Server 2003 PSDK (CoreSDK-x86.msi) & Set path (include, lib)
- Download openssl-0.9.8b-vc6.tar.gz
-> Program Files/Microsoft SDK/include/openssl
-> Program Files/Microsoft SDK/Lib - Download expat-2.0.1.tar.gz
-> Program Files/Microsoft SDK/include/expat.h
-> Program Files/Microsoft SDK/include/expat_external.h - Download expat-win32bin-2.0.1.exe
-> Program Files/Microsoft SDK/Lib/libexpatw.lib - Download zlib123-dll.zip
-> Program Files/Microsoft SDK/include/zlib.h
-> Program Files/Microsoft SDK/include/zconf.h
-> Program Files/Microsoft SDK/Lib/zlib1.dll (google) - copy icon file
: netxms-0.2.26/src/console/win32/icons/Severity*.ico -> netxms-0.2.26/src/console/nxuilib/res/ - Download scintilla178.zip
-> Program Files/Microsoft SDK/include/Scintilla.h - Install Microsoft Speech SDK 5.1 (SpeechSDK51.exe) & Set path (include, lib)
- Build
Bye...