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 - Victor Kirhenshtein

#6796
Thank you for excellent howto! I'll probably never manage to write so long text :)

Some comments and corrections:

Quote from: jdl on June 19, 2009, 05:17:54 PM
which by the way you will not find in the available list

You will, but only after next configuration poll for that node. To prevent sending request for supported parameters to agent each time you press "Select" button in console, server reads list of supported parameters during configuration poll (each hour by default) and caches it. You should either wait for next configuration poll or force immediate configuration poll from console using Poll -> Configuration menu.


Quote from: jdl on June 19, 2009, 05:17:54 PM
I did not try but I would suggest not to use any existing data collection name... Possible conflict or simply possible problem easy to avoid - play it safe and simple ;-)

In fact, you can use names of existing parameters - if you do, built-in parameter's handler will be replaced by your script. Normally, this should be avoided, but sometimes it may help - for example, if built-in implementation of certain parameter is buggy, and you are able to provide replacement script as workaround.

Best regards,
Victor
#6797
Windows / Re: Windows EventLog handling error...
June 21, 2009, 04:23:41 PM
Hello!

In fact, we need completely different log readers for Windows Vista and 2008 - Microsoft changes event log API (see http://msdn.microsoft.com/en-us/library/aa964766(vs.85).aspx), and old API used by logwatch.nsm is not always compatible with new logs. I'll add support for new event log API in upcoming release.

Best regards,
Victor
#6798
Yes, it's a bug. Added it to bug tracker (#256).

Best regards,
Victor
#6799
Hello!

In theory, it should work. What you get - errors in agent's log, or just no events when records appear in log? What Windows version you are using? I have a lot of problem reports for Windows Server 2003, and there are known problems with Vista and Server 2008.

Best regards,
Victor
#6800
Feature Requests / Re: Agent parameters...
June 17, 2009, 01:56:44 PM
Idea sounds good.

What arguments should these parameters take? For file it probably should be file name and offset within file, plus string length for File.Content.String?
And what for shared mem?

Best regards,
Victor
#6801
Feature Requests / Re: Filter for events...
June 17, 2009, 01:42:46 PM
We currently rewriting console from scratch using Eclipse platform. It should be much better than existing one, and we plan to add filtering for event log, alarms, etc.

As for documentation - unfortunately we are much better in writing code than documenting what we have done :( But we are working on documentation improvement, it just takes more time.

Best regards,
Victor
#6802
General Support / Re: Windows Vista [agent]
June 17, 2009, 11:36:34 AM
Looks lke agent cannot open log file for writing or connect to Windows event log service. Try to set LogFile parameter in nxagentd.conf to some writeable file, like C:\nxagentd.log and try to run it again.

Best regards,
Victor
#6803
Da, u menja bilo na porjadok men'she. Sdelaju testovij server s kuchej ob'ektov, budu testirovat' cherez GPRS.
#6804
Stranno. Ja vpolne uspeshno podkljuchalsja cherez GPRS. Vozmozno delo v kolichestve ob'ektov - skol'ko u vas ih primerno?
#6805
General Support / Re: Variables / Subagents list
June 15, 2009, 06:36:40 PM
I hope so. I will try my best :)

Best regards,
Victor
#6806
General Support / Re: Variables / Subagents list
June 15, 2009, 12:06:51 PM
It will be a long text :) I'll update manual with subagent description and post it on the web. I hope that 'll have time for this till end of June.

Best regards,
Victor
#6807
General Support / Re: DCI problem...
June 15, 2009, 11:03:24 AM
It's my mistake: ^node_agent is not correct regexp - ^ character means "beginning of the line", but command line in your case doesn't starts with node_agent, it starts with ./node_agent, so you should either remove leading ^ or use Process.CountEx(".*","^\\./node_agent")

Best regards,
Victor
#6808
Hi!

Auto bind/apply occurs during configuration polls. You can force configuration poll for specific node from console (via Poll -> Configuration menu), or decrease interval between configuration polls by changing server's parameter ConfigurationPollingInterval.

Attributes of node object:


nameNode name
idObject identifier
statusNode status (0 = Normal, 1 = Warning, 2 = Minor, 3 = Major, 4 = Critical, 5 = Unknown, 6 = Unmanaged)
ipAddrNode primary IP address (as text string, like 10.2.1.4)
isAgentAgent presense flag: 1 if NetXMS agent present on node, 0 if not
isSNMPSNMP support flag: 1 if SNMP is supported by node, 0 if not
isBridgeBridge flag: 1 if node is bridge or switch, 0 if not
isRouterIP router flag: 1 if node is Ip router (can forward IP packets), 0 if not
isPrinterPrinter flag: 1 if node detected to be a network printer, 0 if not
isCDPCDP (Cisco Discovery Protocol) support flag: 1 node supports CDP, 0 if not
isSONMPSONMP (SynOptics Network Management Protocol) support flag: 1 node supports SONMP, 0 if not
isLLDPLLDP (Link Layer Discovery Protocol) support flag: 1 node supports LLDP, 0 if not
snmpVersionSNMP version used for communication with node's SNMP agent
snmpOIDSNMP object ID
agentVersionNetXMS agent version (as string, like 0.2.26)
platformNamePlatform name, as returned by NetXMS agent (for example, windows-i386)

Best regards,
Victor
#6809
General Support / Re: DCI problem...
June 13, 2009, 02:14:56 PM
Is node_agent real executable or shell script? If it is a shell script, then executable name will be sh (or bash, ksh, etc. - whatever your shell is), so Process.Count(node_agent) will always return 0 - because it will look for executable named node_agent. You can find processes by command line using Process.CountEx, like this:

Process.CountEx(".*","^node_agent")

Please note, that Process.CountEx uses regular expressions to find matching processes.

Best regards,
Victor
#6810
Hello!

Looks like some of the system functions has misleading names. We have:

1. Actions on server (configurable under Control Panel -> Actions): it's an actions server can perform as a result of event processing. These actions can only be used in event processing policy.

2. Actions on agent (configurable in agent's configuration file via Action or ActionShellExec parameters): it's a predefined commands agent can execute upon request.

3. Object tools (configurable via Control Panel -> Object Tools): something which can be executed by operator on currently selected node in console. Object tools can be:

a) Command - local command execution (executed on same machine where netXMS console is running);
b) Action - predefined action execution on agent
c) SNMP table - get data from SNMP
d) Agent table - get data from agent
e) Open URL - open given URL in embedded browser



If you wish to run something on remote machine via agent, you should:

1. Define action on agent (using Action or ActionShellExec - if you wish to use shell functionality like output redirection, you should use ActionShellExec).

2. Depending on your need: if you wish to run something automatically, as a reaction to event, then:
2a. Define server action (Control Panel -> Actions) of type "execute action on remote agent", enter name of agent's action into "Action" field;
2b. Add your server action to event processing policy.

If you wish to be able to run something on remote machine manually, via "Tools" menu:
2a. Create new object tool (Control Panel -> Object Tools) of type "Action", enter name of agent's action into "Action" field.

Hope this helps!

Best regards,
Victor