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

#871
База не существует. Проверьте параметры подключения (в netxmsd.conf), и создана ли база.
При необходимости создайте:

psql -U postgres
CREATE user netxms PASSWORD 'password';
CREATE DATABASE netxms_db OWNER netxms ENCODING='utf-8';


netxmsd.conf должен быть примерно таким: DBDriver = pgsql.ddr
DBServer = localhost
DBName = netxms_db
DBLogin = netxms
DBPassword = password


Проверьте подключение при помощи "nxdbmgr check", должны получить ошибку "Unable to determine database syntax": root@netxms:~/netxms-trunk# nxdbmgr -c /tmp/netxmsd.conf check
NetXMS Database Manager Version 1.2.9-SNAPSHOT

Unable to determine database syntax


После этого выполните шаги из моего предыдущего сообщения ("Если база пустая")
#872
General Support / Re: Using variables in parameters
August 16, 2013, 05:02:53 PM
Hello

ServiceCheck.SSH(%{node_primary_ip})

should be just fine.
What kind of error you encounter?
#873
General Support / Re: Upload file to NetXMS Server
August 16, 2013, 04:58:30 PM
If you need to just upload file to the server where NetXMS is running, you can use nxupload (check https://www.netxms.org/forum/configuration/about-nxupload-500-internal-error/msg11064/#msg11064)

If you want do distribute files to servers using NetXMS, then it's another, two step process (all done in managent console):
1) Select "Tools -> Upload file to server", select local file and type desired remote name (path is ignored, files are always stored in netxms's file store)
2) in Object browser (tree on the left) select one or more objects (nodes or containers), right click and select "Upload file". In upload dialog type full destination path (including file name), and click "Ok".

You can see deployment process in View -> Server Jobs.
#874
File are transferred via nxagentd, so you need to ensure that your IP address (host where you are running nxupload) is authorised by agent:
1) start nxagentd in debug mode (nxagentd -D5), try to upload file from unauthorized host and look for messages like this:[16-Aug-2013 16:25:47.779] [DEBUG] Incoming connection from 127.0.0.1
[16-Aug-2013 16:25:47.779] [DEBUG] Connection from 127.0.0.1 rejected


Adjust "MasterServers" in nxagentd.conf is necessary.

2) If you use shared secret authentication on the agent, check that "SharedSecret" in nxagentd.conf and "-s SECRET" parameter for nxupload do match

Please note that by default, agent ignore file destination (nxupload -d switch) and save to FileStore (Unix default is "/tmp", Windows default - "C:\", you can change location with "FileStore=..." in nxagentd.conf).

To override this behaviour, add "EnableArbitraryFileUpload=true" to nxagentd.conf and restart agent.
#875
General Support / Re: Events between servers
August 12, 2013, 05:06:20 PM
Change server debug level to 5 (in UI, Tools -> Server Console -> type "debug 5"), and then search log for "ISC" related errors.
#876
Cейчас можно сделать Add Decoration и наложить картинку с прозрачностью, даже несколько. К сожалению, сейчас нельзя отключить режим редактирования декотораторов, и их можно случайно утянуть в сторону. Также нельзя добраться до нижних слоев через верхний. Будем переделывать, идея хорошая.

Сейчас, как временное решение, можнос сделать так:
* Добавить нужные overlay
* Последним добавить еще одну большую, полностью прозрачную картинку,  которая перекроет все остальные.

Не самая удобная схема, конечно.
#877
Укажите полный путь к PuTTY (e.g. "C:\\Utils\\putty.exe") или добавьте его в PATH. Символ "\" используется в макросах, поэтом его надо повторять.
Если у вас другой ssh клиент – укажите путь к нему и проверьте документацию, как ему указать хост для подключения.
PuTTY можно скачать тут: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
#878
Общие вопросы / Re: Syslog
August 12, 2013, 12:01:34 PM
View -> Syslog.
Пример, как работать с log viewer-ом: Youtube
#879
Проверьте, что запущен сервис "NetXMS Core".
Если нет – проверьте структуру базы, возможно вы не выбрали в инсталлере "Initialize databse":
* Start -> Run -> cmd
* c:\netxms\bin\nxdbmgr check

Если база пустая (ошибка вида DB version 0)
* Start -> Run -> cmd
* c:\netxms\bin\nxdbmgr init c:\netxms\lib\sql\dbinit_pgsql.sql
* c:\netxms\bin\nxdbmgr check
* net start "netxms core"
#880
Похоже, что сервер не успевает обрабатывать события (принимает их отдельный поток, с своей отдельной очередью) - или не успевает писать в базу. Будем смотреть, где тормозит.
#881
General Support / Re: Another Procurve 5406 Issue
August 09, 2013, 07:41:41 PM
Are you sure that community is correct and IP is in the list of allowed (e.g. NAT, multiple interfaces)?
Can you please provide dump of snmp traffic between netxms and the switch? Output of "tcpdump -i INTERFACE -n -vv udp port 161 and host SWITCH_IP" should be sufficient.
#882
I did some changes which could resolve this issue, and will push test build to the web later today.
#883
Общие вопросы / Re: Syslog
August 09, 2013, 11:46:18 AM
Если включен syslog collector (параметр сервера "EnableSyslogDaemon"), то все события пишутся в базу, в таблицу "syslog".
Глубина настраивается параметром "SyslogRetentionTime", по умолчанию – 90 дней.
Параметры сервера можно менять через консоль, Configuration → Server Configuration
#884
Configuration -> Object Tools -> Right Click на списке -> New.
Имя - "SSH", Tool Type - "Local Command".
После нажатия "ok" откроется окно Properties.
В поле "Command" пропишите команду, с макросом %OBJECT_IP_ADDR%.
Примеры команды:
Windows: putty %OBJECT_IP_ADDR%
Mac OS: open ssh://%OBJECT_IP_ADDR%

Доступные макросы: %OBJECT_IP_ADDR%, %OBJECT_NAME%, %OBJECT_ID%
#885
General Support / Re: Agent
August 06, 2013, 02:45:40 PM
Check sample config: https://svn.netxms.org/public/netxms/trunk/contrib/nxagentd.conf-dist

Minimal configuration file:
MasterServers=10.0.0.01
LogFile=/var/log/nxagentd