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

#1006
Модем у вас Siemens MC35i?
#1007
Quote from: Alex on May 08, 2008, 08:36:01 PM
Интересно, а почему он библиотеку драйвера проинициализировал с ошибкой? Может в этом собака порылась? В плане того что может неправильно собралась она или в самой библиотеке какой-то баг?

Драйвер при инициализации пытается открыть порт - и не смог (так таки был баг, причем этот код вроде как использовался - не стол же его писали?), как результат - сервер выгрузил драйвер.
#1008
Попробуйте заменить файл src/server/smsdrv/generic/main.cpp на версию из аттача и пересобрать.
#1009
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.
#1010
Попробуйте запустить так, будут виден debug sms-драйвера:/usr/local/netxms/bin/netxmsd -D 4
#1011
Похоже при 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.
#1012
Общие вопросы / Re: Syslog export
May 07, 2008, 06:07:36 PM
'#', потом две цифры - код символа в HEX-е. Т.е. "#23" - это код символа с кодом 35 - символ '#'. "#06" - символ с кодом 6, непечатный.

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

Пример:
SMSDriver=/opt/netxms-0.2.20/lib/libnxsms_generic.so
#1014
Да, этот сименс должен работать. В принципе, поддерживаются все  телефоны, которые позволяют отсылать сообщения 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
#1015
Общие вопросы / Re: Syslog export
May 07, 2008, 02:59:22 PM
Встроенных нету, пока можно просто выбрать данные прямо из базы, из таблицы syslog.
#1016
General Support / Re: Server crash
May 05, 2008, 02:45:38 PM
Thanks for the dump, I'm checking it.
#1017
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.
#1018
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
#1019
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.
#1020
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'