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

#1111
General Support / Re: Alarm viewer issues /bug?
May 08, 2008, 03:25:41 PM
It's IE7 problem, you can use alarm viewer in new console (nxmc) instead.
#1112
Попробуйте запустить так, будут виден debug sms-драйвера:/usr/local/netxms/bin/netxmsd -D 4
#1113
Похоже при make install не скомпилировались MIB-ы из текстовых файлов. Скомпилированный файл должен лежать в $prefix/share/netxms/mibs/, называется netxms.mib.

Попробуйте скомпилировать его руками:$prefix/bin/nxmibc -d $prefix/share/netxms/mibs -o $prefix/share/netxms/mibs/netxms.mib

$prefix - installation prefix, задается на этапе сборки параметром configure --prefix. Если не указывали - обычно это или /usr, или /usr/local.
#1114
Общие вопросы / Re: Syslog export
May 07, 2008, 06:07:36 PM
'#', потом две цифры - код символа в HEX-е. Т.е. "#23" - это код символа с кодом 35 - символ '#'. "#06" - символ с кодом 6, непечатный.

Почти как urlencode, только вместо '%' используется '#'.
#1115
Ох, да, забыл. Там должен быть полный путь к .so файлу драйвера.

Пример:
SMSDriver=/opt/netxms-0.2.20/lib/libnxsms_generic.so
#1116
Да, этот сименс должен работать. В принципе, поддерживаются все  телефоны, которые позволяют отсылать сообщения AT-командами в text mode (можно проверить из терминала командой "AT+CMGF=1")

Формат SMSDrvConfig: port,speed,data_bits,parity,stop_bits. Все параметры необязательны, но пропускать нельзя (т.е. "/dev/ttyS0,,,2" - невалидно)

speed, data_bits, stop_bits - число, parity: n/o/e - none/odd/even

Пример:SMSDrvConfig=/dev/ttyS1
SMSDrvConfig=/dev/ttyS0,115200
SMSDrvConfig=/dev/ttyS0,115200,8,n,1


Значиния по умолчанию:
*) порт - "/dev/ttyS0" ("com1:" на win)
*) скорость порта - 9600
*) data bits - 8
*) parity - none
*) stop bits - 1
#1117
Общие вопросы / Re: Syslog export
May 07, 2008, 02:59:22 PM
Встроенных нету, пока можно просто выбрать данные прямо из базы, из таблицы syslog.
#1118
General Support / Re: Server crash
May 05, 2008, 02:45:38 PM
Thanks for the dump, I'm checking it.
#1119
General Support / Re: Server crash
April 30, 2008, 09:24:03 PM
Hi.

When it hangs again, please do this:

Run "nxadm -i" on the server, this should give you access to the sever's console

In nxadm execute following commands:
show mutex
show pollers
show queues
show stats
show watchdog


And, it would be great if you can attach debugger to the process and make a minidump or get theads info.

Is you running windows, this can be done using WinDbg (freeware from microsoft):
*) run WinDbg, press F6 (attach to the process), select netxmsd.
*) type: ".dump c:\netxms.dump"

If you running unix, you can use gdb:
*) run "gdb /path/to/netxmsd"
*) type: "attach netxmsd_pid"
*) type: "thread apply all bt", this should give you large output with state of all threads.
#1120
Yes, it is possible (at least I know how to do it on Linux).

As temporary workaround (linux only?) you can use lmsensors wrapped with some script.

Something like this:

sensors -A -u coretemp-isa-0000|grep 'temp1_input'|awk '{print $2;}' - this will report temperature of the first core in my workstation.

sensors -A -u coretemp-isa-0001|grep 'temp1_input'|awk '{print $2;}' - another core.

sensors -A -u coretemp-isa-0002|grep 'temp1_input'|awk '{print $2;}' - 3rd, etc.


Update:
GPU temperature for nVidia cards:
nvclock -T|grep temperature|awk '{print $4;}'|cut -dC -f1
#1121
This number is used to make device name (\\.\PhysicalDriveX, where X is that number) for accessing it using CreateFile().

You can find out disk number in Device manager: select HDD -> Properties -> Volumes -> Populate. "Disk" field should be something like 'Disk X' - that's it.
#1122
General Support / Re: Agent time-out configuration
April 17, 2008, 04:22:11 PM
I suggest you to do it that way:

*) add your iostat script to the crontab and redirect it's output so some file
*) change external parameter's command to 'cat /file_with_data'
#1123
Quote from: Nikita Matov on April 16, 2008, 03:43:14 PM
Then I tried to initialize database manually, so I did: cat /usr/local/netxms/share/netxms/sql/dbinit_mysql.sql | mysql -u root -p
Tables were created, but then:

Hello.

Looks like you have created tables in "mysql" databse. Try to "cat ... | mysql -u root -p netxms"
#1124
UDP, к сожалению, пока не поддерживается. Да и в целом, user-defined пока только позволяет проверять, можно ли подключится - request / response игнорируется для этог типа запроса.

В качестве временного решения можно сделать внешний параметр на агенте, используя netcat.
#1125
General Support / Re: Discovery subnets mistake
April 02, 2008, 07:03:33 PM
Hello.

Manually add node with correct netmask (F11), server should create correct subnet, then you can run autodiscovery.

Currently you can create subnets by hand only by changing database directly (table "subnets") - but don't change it when server is running.

Manual moving is currently unavailable, but server should do it automatically when correct subnet is detected.