News:

We really need your input in this questionnaire

Main Menu
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 - inspirit

#31
Общие вопросы / Re: Вопрос по DCI
September 06, 2012, 01:11:55 PM
Все получилось. Спасибо.
#32
Общие вопросы / Re: Вопрос по DCI
September 05, 2012, 08:37:59 PM
У меня при выполнении данного скрипта пишет

ERROR: Script finished with error: Error 14 in line 10: Function or operation argument is not an object.

Что за.. ошибся где ?
#33
Общие вопросы / Re: Вопрос по DCI
September 05, 2012, 05:57:17 PM
ситуация проста. Знаем что в Netxms есть коммутутаторы которые стоят по городу. Через autoaply template к ним автоматически привязываются DCI при добавлении и в том числе опрос Serial Number. Ну и как водится \проектный отдел\ потерял документы по этому оборудованию и знает только его серийник. Вопрос - как узнать что это за оборудование и где оно стоит ? )) Руками искать среди сотен коммутаторов в поисках нужного серийника - как то некруто. Вот и родилась мысль )
#34
Общие вопросы / Вопрос по DCI
September 05, 2012, 03:02:36 PM
Скажите

если я знаю DCI name - например "Serial Number"
и его значение - 205003573

То как я могу определить к какой ноде он принадлежит? может скрипт какой ?

Заранее спасибо.
#35
Общие вопросы / ifXTable
August 30, 2012, 03:15:35 PM
При создании DCI счетчика через контекстное меню на интерфейсе - NetXMS может автоматом использовать ifXTable, а то счетчики из ifTable имеют свойство переполняться.

В настройках сервера есть параметр - useIfXtable - 1, но как то не помогает.

Есть какие варианты ?
#36
Живет стабильно. Спасибо за оперативность :)
#37
Обновились. Пока живет. :)
#38
Не собирается.

Making all in lmsensors
make[5]: Entering directory `/root/netxms-1.2.1/src/agent/subagents/lmsensors'
  CXX    main.lo
main.cpp: In function 'bool getSensorValue(char*, char*, double*)':
main.cpp:57: error: cannot convert 'sensors_chip_name*' to 'int*' for argument '1' to 'const sensors_chip_name* sensors_get_detected_chips(int*)'
main.cpp:58: error: expected initializer before '*' token
main.cpp:61: error: 'feature' was not declared in this scope
main.cpp:61: error: 'sensors_get_features' was not declared in this scope
main.cpp:73: error: 'sensors_subfeature_type' was not declared in this scope
main.cpp:73: error: expected `;' before 'types'
main.cpp:74: error: 'types' was not declared in this scope
main.cpp:74: error: 'SENSORS_SUBFEATURE_UNKNOWN' was not declared in this scope
main.cpp:76: error: 'SENSORS_FEATURE_TEMP' was not declared in this scope
main.cpp:77: error: 'SENSORS_SUBFEATURE_TEMP_INPUT' was not declared in this scope
main.cpp:79: error: 'SENSORS_FEATURE_IN' was not declared in this scope
main.cpp:80: error: 'SENSORS_SUBFEATURE_IN_INPUT' was not declared in this scope
main.cpp:82: error: 'SENSORS_FEATURE_FAN' was not declared in this scope
main.cpp:83: error: 'SENSORS_SUBFEATURE_FAN_INPUT' was not declared in this scope
main.cpp:85: error: 'SENSORS_FEATURE_VID' was not declared in this scope
main.cpp:86: error: 'SENSORS_SUBFEATURE_VID' was not declared in this scope
main.cpp:88: error: 'SENSORS_FEATURE_POWER' was not declared in this scope
main.cpp:94: error: 'SENSORS_SUBFEATURE_POWER_INPUT' was not declared in this scope
main.cpp:95: error: 'SENSORS_SUBFEATURE_POWER_AVERAGE' was not declared in this scope
main.cpp:97: error: 'SENSORS_FEATURE_ENERGY' was not declared in this scope
main.cpp:98: error: 'SENSORS_SUBFEATURE_ENERGY_INPUT' was not declared in this scope
main.cpp:100: error: 'SENSORS_FEATURE_CURR' was not declared in this scope
main.cpp:101: error: 'SENSORS_SUBFEATURE_CURR_INPUT' was not declared in this scope
main.cpp:105: error: expected initializer before '*' token
main.cpp:106: error: 'subFeature' was not declared in this scope
main.cpp:107: error: 'sensors_get_subfeature' was not declared in this scope
main.cpp:109: error: 'subFeature' was not declared in this scope
main.cpp:111: error: 'sensors_get_value' was not declared in this scope
main.cpp:113: error: 'SENSORS_FEATURE_TEMP' was not declared in this scope
main.cpp:124: error: 'sensors_free_chip_name' was not declared in this scope
make[5]: *** [main.lo] Error 1
make[5]: Leaving directory `/root/netxms-1.2.1/src/agent/subagents/lmsensors'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/netxms-1.2.1/src/agent/subagents'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/netxms-1.2.1/src/agent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/netxms-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/netxms-1.2.1'
make: *** [all] Error 2

Стоит Centos 5.2
lm_sensors-2.10.7-9.el5
lm_sensors-devel-2.10.7-9.el5

Это виртуалка, так что никаких сенсоров там нет :)
что делать?

#39
Пока нет. Логи выглядят нормально. Данные в базу тоже пишутся нормально. Непонятно куда копать.
#40
Если перезапускать сервер. То некоторое время ~  минут 30 - 1 час - все работает нормально. А потом опять эта проблема.

В логах вот что пишет в момент проблемы.

[29-May-2012 13:22:52] SQL query failed (Query = "SELECT idata_timestamp,idata_value FROM idata_211856 WHERE item_id=? AND idata_timestamp>=? AND idata_timestamp<=? ORDER BY idata_timestamp DESC LIMIT 200000"): MySQL server has gone away

Что бы это значило?


#41
Проблема появилась именно после обновления.

База данных и сервер разнесены физически по разным серверам.

Смысл в том что когда выбираешь какой нибудь predefined graph котрый работает с DCI которые приходят от какого нибудь агента. То в первый момент вылетает ошибка - Unable to retrieve collected data: Database failure.

Потом или нажимаешь - F5 или по refresh time графики появляются по одному.

По данным snmp - графики рисуются нормально.

Обновление агента до версии 1.2.0 не помогло. Как отловить причину подобного поведения?
#42
Добрый день Виктор. Интересует такой вопрос.

Можно ли из скрипта (PERL) - добавлять устройства(коммутаторы) в NETXMS. Может есть какое то Аpi или еще какой путь?
вобщем не через графическую консоль.

Было бы удобно как то автоматизировать процесс добавления устройств.

Можете что то сказать по этому вопросу?

Вобщем что то вида AddNode(ip,container,some_parametrs)


И еще.. Можно ли в разделе где SNMP TRAP ы привязывают к EVENT ам - сделать что бы ивент возбуждался не сразу, а скажем после некоторого числа трапов которое можно указать там. Или скажем если трапов пришло какое то количество в течении какого то промежутка времени. Что то в таком духе.

Заранее спасибо.
#43
Общие вопросы / Re: nxagent
February 22, 2012, 12:29:23 PM
Добрый день Виктор. Удалось определить в чем проблема.

Дело в том что машина на которой устанавливался агент, является маршрутизатором с Fullview routing table. а Агент когда запускается делает "Net.IP.RoutingTable" ну и потом сразу умирает от такого количества маршрутной информации. Поставил галочку Disable routing table pools. И Проблема решилась.

Топик думаю можно закрыть. Спасибо за участие.
#44
Общие вопросы / Re: nxagent
February 21, 2012, 12:28:00 PM
Добрый день Виктор. Этот лог как раз и есть -D 9.

система 64 бит.

Linux 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
#45
Общие вопросы / nxagent
February 20, 2012, 06:24:46 PM
Сегодня поставил агента на Centos 6.2 через ~5 минут его работы внезапно загрузка 2х ядер повышается до 200%.

пробовал версии 1.1.10 и 1.1.7
Версия сервера 1.1.7

в логах агента следующее..

0-Feb-2012 20:11:31] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:31] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:31] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:32] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:32] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:32] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:32] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:33] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:33] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:33] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:33] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:34] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:34] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:34] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:34] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:35] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:35] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:35] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:35] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:36] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:36] [session:0] CommSession::disconnect()
[20-Feb-2012 20:11:36] [session:1] Session disconnected by watchdog (last activity timestamp is 1329754164)
[20-Feb-2012 20:11:36] [session:1] CommSession::disconnect()
[20-Feb-2012 20:11:37] [session:0] Session disconnected by watchdog (last activity timestamp is 1329753859)
[20-Feb-2012 20:11:37] [session:0] CommSession::disconnect()


Покрутил IdleTimeout на агенте. Поставил 300. Не помогло :(

Виктор, что можете посоветовать ?