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

#6136
General / Re: Server Module development
January 19, 2011, 04:14:58 PM
Hi!

All DB functions located in libnxsrv in 1.0.x versions, and in separate library libnxdb in 1.1.x versions. They are defined in nxsrvapi.h (1.0.x) or nxdbapi.h (1.1.x). All functions require DB connection handle. You can either use global "default" handle (g_hCoreDB variable), or get handle from connection pool using function DBConnectionPoolAcquireConnection - this is the preferred method. Connections acquired from pool must be released with call to DBConnectionPoolReleaseConnection. Most of DB functions is straightforward. Two common patterns of usage are following:

1. Non-SELECT query: use DBQuery(handle, query); Function will return TRUE on success.

2. SELECT query: use DBSelect(handle, query); Function will return result set or NULL on failure. Then you can use DBGetNumRows(set) to get number of rows, DBGetValue(set, row, column, buffer, bufsize) (or any variations, like DBGetColumnLong) to retrieve data from set. When you finish, you must destroy result set by calling DBFreeResult(set);

In fact, there are audit log inside the server, it's just not accessible from management console. You can use server's function WriteAuditLog to add records to it.

Windows console is deprecated - I plan that 1.0.9 will be the last version with Windows management console as primary management tool. In 1.1.x branch, we are migrating to new cross-platform Java console. It is based on Eclipse, so it can be extended with plugins very easily. It's half-working already, and I hope to implement all functionality of legacy Windows console soon.

Best regards,
Victor
#6137
Hi!

Send them to dump-at-netxms.org

Best regards,
Victor
#6138
Quote from: aaa-aaa on January 19, 2011, 10:48:27 AM
добрый день, не подскажете возможно ли установить интервал опроса по snmp отличным от интервала опроса по icmp? по умолчанию, как я понимаю, интервал опроса 60 сек (параметр StatusPollingInterval).

Если речь идет о status poll, то нет.
#6139
Общие вопросы / Re: Trap/VarBind
January 19, 2011, 03:05:23 PM
Начиная с версии 1.0.9 данные типа OCTET STRING автоматически конвертируются в Hex формат, если содержат непечатаемые символы. Это можно отключить, выстави параметр сервера AllowTrapVarbindsConversion в значение 0.
Также в версии 1.0.9 nxsnmpget, nxsnmpwalk, и MIB Browser в консоли автоматически конвертируют OCTET STRING в Hex формат, если те содержат непечатаемые символы - по аналогии с утилитами из пакета Net-SNMP.
#6140
Polls / Preferred Client
January 18, 2011, 11:57:31 PM
What would be your preferred (or desirable) way of working with NetXMS? I don't mean current situation, when you should use Windows-based management application, but how you would like to work with the system.

Best regards,
Victor
#6141
Announcements / NetXMS 1.0.9 Released
January 18, 2011, 11:51:46 PM
Hi all!

NetXMS version 1.0.9 is out! Changes from previous release:

- Added LLDP support
- MIB compiler improved
- SNMP tools improved
- Added automatic conversion of non-printable strings in SNMP traps
- New MIBs added: APPLICATION-MIB, JVM-MANAGEMENT-MIB, APACHE2-MIB,
  SYSAPPL-MIB, RADIUS-AUTH-CLIENT-MIB, RADIUS-DYNAUTH-CLIENT-MIB,
  RADIUS-AUTH-SERVER-MIB, RADIUS-DYNAUTH-SERVER-MIB, RDBMS-MIB,
  RADIUS-ACCT-CLIENT-MIB, MSSQLSERVER-MIB, RADIUS-ACCT-SERVER-MIB,
  BAY-STACK-MIB, S5-AGENT-MIB
- Fixed broken static agent build
- Fixed issues: #313, #318

Most likely this will be the last release in 1.0.x branch (unless there will be serious bugs - in that case I will create bugfix releases). I plan to focus on development of 1.1.x branch. Version 1.1.0 will be released in a few days.

Best regards,
Victor
#6142
К сожалению, получить дополнительную информацию о причинах неуспешного запуска команды от агента сейчас нельзя. Попробуйте запускать не net.exe, а скрипт, который будет перенаправлять вывод в какой-нибудь файл.

С уважением,
Виктор
#6143
У  меня совсем другая ошибка. Сначала было так:

.\zyxel-GS4024.mib.txt: ERROR 003: Parser error - syntax error, unexpected RIGHT_BRACE_SYM, expecting UCASEFIRST_IDENT_SYM or LCASEFIRST_IDENT_SYM or NUMBER_SYM in line 1462

Поправил MIB, убрав лишнюю запятую в конце списка:


        SYNTAX  INTEGER {
            config_1(1),
            config_2(2),
        }


стало


        SYNTAX  INTEGER {
            config_1(1),
            config_2(2)
        }


После этого получил

ZYXEL-GS4024-MIB: ERROR 002: Import module "DISMAN-PING-MIB" unresolved

Похоже он тоже нужен, помимо приложенных файлов.

С уважением,
Виктор
#6144
Hi!

Did you succeed with building UNICODE agent? If yes, it will be nice if you can share diff for converting agent to unicode - I then will be able to incorporate these changes to trunk and make unicode build as default option for Windows platform.

Best regards,
Victor
#6145
General Support / Re: Interface changed state
January 13, 2011, 07:39:10 PM
Hi!

Server considers node as down if all it's interfaces is not reachable and node cannot be contacted by SNMP or via agent. How long a reboot was taken? If it was relatively fast, then it is possible that moment when node was completely unreachable fall between two status polls (each 60 seconds by default), and server never seen these two nodes as completely down.

If this is the case, solution depends on your goal - for example, if you wish to detect that node was rebooted, you can add monitoring of system uptime, and if it below some small value, like 100 seconds, that means that node was just rebooted and you can generate appropriate event.

Best regards,
Victor
#6146
General Support / Re: Save Map Issue
January 13, 2011, 07:32:39 PM
Hi!

Did you turn off automatic layout (menu Map -> Enable automatic layout)?

Best regards,
Victor
#6147
General Support / Re: Service UP/Down and emails
January 11, 2011, 11:19:47 PM
Because you are monitoring services using DCIs, you will not get service down events in case of entire node down, because there will be no new values for DCI, and therefore no events will be triggered. Btw, it is not recommened to use SYS_xxx events in thresholds - they are generated by server in various situations, and you can get unexpected results. SYS_SERVICE_DOWN and SYS_SERVICE_UP generated by server during status poll of network services. Until you are not using network service objects, you are fine, but if you eventually configure some, you will get unexpected events. Better approach is to create your own events.

Best regards,
Victor
#6148
Hi!

Try to use GetSituationAttrubute(s, "status") instead of s->status - there was a bug report that latter method of accessing situation's attributes still not working, although I was thinking that I have fixed it for 1.0.8 - I still didn't check that myself (see this: https://www.netxms.org/forum/configuration/logwatch-function/msg4934/#msg4934).

Best regards,
Victor
#6149
General Support / Re: SNMP Traps handling
January 11, 2011, 11:02:29 PM
Did you try console programs as well (something very simple like cmd /c echo test > c:\test.txt)?
#6150
As you are running Windows 2008 R2, it is 64 bit. Are you running 1.0.4 agent? If yes, it is 32 bit, and it may cause some problem (although it shouldn't). In this case, could you please try to replace agent with x64 version (it will be agent version 1.1.0, but it is compatible with 1.0.x servers).

Best regards,
Victor