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

#6436
winevet.h is a header file for Windows Events API, which was first appear in Windows Vista, so you probably need Windows Vista or Windows Server 2008 SDK.

Best regards,
Victor
#6437
You should specify path to libraries as well. Try to run configure as follows:


CPPFLAGS=-I/u01/app/oracle/product/10.2.0/db_1/rdbms/public LDFLAGS=-L/u01/app/oracle/product/10.2.0/db_1/lib ./configure --with-server --with-oracle --with-agent


Best regards,
Victor
#6438
Hi!

Try to run configure this way:


CPPFLAGS=-I/u01/app/oracle/product/10.2.0/db_1/rdbms/public ./configure --with-server --with-oracle --with-agent


Best regards,
Victor
#6439
Let's summarize in what environment this problem occurs in version 1.0.3:
1. Windows + MS SQL
2. FreeBSD with MySQL 5.1 (is it still an issue?)

any other environments?

Best regards,
Victor
#6440
Hi!

You need latest Windows Platform SDK, OpenSSL, and Expat for all components. UPS subagent also requires Windows DDK. Console requires Microsoft Speech SDK and Scintilla. Database drivers requires appropriate client libraries.

Best regards,
Victor
#6441
Hi!

You can add an exception using additional filtering script, a s described in this post: https://www.netxms.org/forum/index.php/topic,770.0.html

Best regards,
Victor
#6442
General Support / Re: Thershold not sending email
July 16, 2010, 04:16:02 PM
Hi!

Did you configure SMTP server settings in NetXMS correctly? You have to set server's configuration variable SMTPServer to your SMTP server's IP address. Setting SMTPFromAddr to some correct value also recommended.

Best regards,
Victor
#6443
General Support / Re: Stuck file Agent
July 15, 2010, 02:18:47 AM
Hi!

Yo can use File.Count parameter. Full syntax is following:

File.Count(path, pattern, recursive, size, age)

where


pathpath to directory or file to check
patternpattern for file name matching
recursiverecursion flag; if set to 1 or true, agent will scan subdirectories
sizesize filter (bytes); if < 0, only files with size less than abs(value) will match; if > 0, only files with size greater than value will match; if 0, all files will match
ageage filter (seconds); if < 0, only files created after now - abs(value) will match; if > 0, only files created before now - value will match; if 0, all files will match

path argument is mandatory, all other are optional.

So, to count number of .txt files older than 15 minutes in c:\tmp, you can use

File.Count('C:\tmp', '*.txt', 0, 0, 900)

And after that you just need to set threshold for this parameter to >0, generate appropriate event, and process it as usual.

Best regards,
Victor
#6444
Общие вопросы / Re: Syslog
July 14, 2010, 04:26:49 PM
Несколько вопросов:
Событие с кодом 100004 существует?
Можно ли как-то увидеть оригинальное syslog сообщение?
Есть ли какие-нибудь ошибки в логе NetXMS сервера?

sys в поле hostname - это баг, исправил.

#6445
Hi!

You can use filter scripts to do advanced filtering. Event SYS_SERVICE_DOWN contains 3 parameters:
1: service name;
2: service object id;
3: service type.
So, for example, if you wish to execute action only for service named "httpd", you can use the following script:


$1 == "httpd"


or, in full form


sub main()
{
   return $1 == "httpd";
}


Best regards,
Victor
#6446
Версия 1.0.3 или старее?
#6447
Microsoft promises that frequency should not change between reboots :) (http://msdn.microsoft.com/en-us/library/ms644905%28VS.85%29.aspx). I choose to use performance counter because timeGetTime has much bigger call cost - but I'm not sure that this really matters in our case. I could also build libnetxms.dll with timeGetTime variant to compare. Interestin also is that on my Windows 7 machine event GetSystemTimeAsFileTime, which was used before, gives 1ms accuracy.

Best regards,
Victor

P.S. New libnetxms.dll included in 1.0.3 build, so if you upgrade agent, you will not need to download libnetxms.dll from here.
#6448
Announcements / NetXMS 1.0.3 released
July 08, 2010, 12:01:09 AM
Hi all!

NetXMS version 1.0.3 is out. Changes since 1.0.2:

- Windows console:
        - DCI thresholds, average, and trendlines can be shown on graphs
        - Fixed history graph performance issue
        - Fixed GDI resource leak
- HP-UX platform subagent improved
- New agent parameters for Linux: System.Memory.Physical.Available and System.Memory.Physical.AvailablePerc
- Agent parameters Disk.* renamed to FileSystem.* (old names still recognized by agent for backward compatibility)
- Fixed various inconsistencies in parameters between different systems
- Fixed issues: #300, #302

Best regards,
Victor
#6449
Hi!

The most generic way is the following:

1. Stop netxmsd on old server
2. Export database using nxdbmgr:


nxdbmgr export export_file


3. Install same version of NetXMS on new server
4. Create and initialize new database as usual
5. Import data using nxdbmgr:


nxdbmgr import export_file


6. Run netxmsd on new server

If you will use different IP address on new server, you must add it as master server in agent configuration files.

If you are using external database which will not be migrated, you can just install NetXMS on new server and copy netxmsd.conf from old server - it should start working with same database without problems (don't forget to stop netxmsd on old server first).

Also, if you are migrating to same database engine, using database migration tool from database engine could be more effective.

Best regards,
Victor
#6450
General Support / Re: Netxms Agent Traps
July 03, 2010, 01:34:14 PM
Hi!

Agent cannot send SNMP traps. It is capable of sending NetXMS events to server, but it's an internal mechanism, available only as API to subagents. You can also use nxevent command line tool to send events from remote system to the server.

Best regards,
Victor