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

#5986
Dobrij den'!

A mozete zapustit' netxmsd pod gdb i kogda on upadet, sdelat' backtrace?

Zapusk:

# gdb netxmsd
gdb> run -D 1

Kogda upadet:

gdb> bt

i prislat' rezul'tat komandi bt.
#5987
General Support / Re: login problem
June 22, 2011, 12:55:12 PM
Try to run database check:

nxdbmgr check

Best regards,
Victor
#5988
General Support / Re: login problem
June 21, 2011, 06:09:36 PM
Hi!

Most likely the cause is that NetXMS server is stopped. What version you are using and on what platform?

Best regards,
Victor
#5989
Hi!

I have found and fixed some memory leaks, but no one of them seems to be able to eat memory so fast. However, can you try to install the following version: https://www.netxms.org/download/dev/netxms-1.0.12-rc-19062011.tar.gz? If this will not help, could you please run your server under valgrind for 5-10 minutes and send me the log? Command for running server under valgrind is following:

valgrind --leak-check=full --undef-value-errors=no --log-file=/tmp/netxmsd_valgrind.log /opt/netxms/bin/netxmsd -D 5

To stop server, enter command "down" on server's prompt.

Best regards,
Victor
#5990
Yes.
#5991
Nastroeno vrode vse pravil'no. Pohoze problema imenno v tom, chto snachala oprashivajutsja uzli za vpn gateway'em, a potom on sam. Vlijat' na porjadok oprosa osobo nel'zja. Ja podumaju chto s etim mozno sdelat'.

Dlja otladki scriptov mozno ispol'zovat' funkciju trace - ona vivodit soobschenie v log servera. Format takoj:

trace(debug_level, message)

Esli debug level 0, to budet generitsja INFO message.

Privedennij vishe script s trace'ami mozet vigljadet' tak:


s = FindSituation("VPNBStatus", "B");
if (s != NULL)
{
   trace(0, "Situation instance found, status=" . s->status);
   if (s->status == "down")
      return false; // Don't match rule
}
else
{
   trace(0, "Situation instance not found");
}
return true; // Match rule

#5992
Mozno prosto kak foreground process - ostanovit' servis, i zapustit'

nxagentd.exe -D 9 -c <config_file>

Chtobi zapustit' servis v debug rezime, nado v registry pomenjat' command line servisa.

Nu i zelatel'no, chtobi v kachestve loga ispol'zovalsja tekstovij fail, a ne event log.
#5993
Hi!

Looks like memory leak in netxmsd. Can you please add to monitoring memory used by netxmsd process and send me how it changes over time?

Best regards,
Victor
#5994
Hi!

Is it possible that there are low memory condition on NetXMS server? From crash dump it looks like some internal memory allocation fails.

Best regards,
Victor
#5995
Pohoze chto problema s kodirovkoj servera ili bazi. Kakoj stoit code page dlja non-UNICODE program na servere, gde rabotaet NetXMS server? I kakaja vibrana kodirovka dlja bazi NetXMS?
#5996
Ochen' pohoze na nedavno obsuzdavshujusja problemu s parserom logov na Novell NetWare. Vozmozno agent schitaet chto proizoshla rotacija loga, i perechitivaet fail s nachala. A vi mogli bi zapustit' agenta v debug rezime?
#5997
A problema s postojannimi soobschenijami "LogParser: file size differs for stat(7) and fstat(SYS:\ETC\LOGs\CONSOLE.LOG), assume file rename" toze tol'ko na 5.1?
#5998
Quote from: Dillinger on June 08, 2011, 10:05:28 AM
Если смотреть на этот файл с Windows-компьютера проводником, то он имеет нулевую длину - может в этом причина ошибки?

Eto vozmozno. AGent sravnivaet dlinnu otkritogo faila s tem, chto soobschaet OS, i esli OS soobschaet men'shuju dlinnu, schitaet chto proizoshla rotacija i nado fail otkrivat' zanogo. Ja podumaje chto zdes' mozno sdelat'.
#5999
Hi!

You can try to create custom tool for 1.3.6.1.2.1.4.22.1.2. I'm not sure that all devices supports IP-MIB, so changing default tool to it may not be a good idea. Probably another standard tool based on IP-MIB should be added.

Best regards,
Victor
#6000
Hi!

Failed SQL queries suggests that there are something wrong with DB connection, but I don't really sure that it's related. Crash dump will be very helpful.

Best regards,
Victor