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 - kiaj

#31
В принципе судя по ответу sql данные в id 17 битые, по видимому решения два, или как то заставить netxmsd проскочить эту проблему или же удалить эту запись, по поводу удаления можете подсказать query чтобы корректно удалить эту запись ? но конечно не факт что в базе не окажется еще таких битых id.
#32
заранее спасибо за помощь, нету никаких мыслей ?
#33
mysql> use netxms;
Database changed
mysql> SELECT name,status,is_deleted,inherit_access_rights,last_modified,status_calc_alg,status_prop_alg,status_fixed_val,status_shift,status_translation,status_single_threshold,status_thresholds,comments,is_system,location_type,latitude,longitude,guid FROM object_properties WHERE object_id=17;
+-------------------+--------+------------+-----------------------+---------------+-----------------+-----------------+------------------+--------------+--------------------+-------------------------+-------------------+----------+-----------+---------------+----------+-----------+------+
| name              | status | is_deleted | inherit_access_rights | last_modified | status_calc_alg | status_prop_alg | status_fixed_val | status_shift | status_translation | status_single_threshold | status_thresholds | comments | is_system | location_type | latitude | longitude | guid |
+-------------------+--------+------------+-----------------------+---------------+-----------------+-----------------+------------------+--------------+--------------------+-------------------------+-------------------+----------+-----------+---------------+----------+-----------+------+
| lost_interface_17 |      5 |          0 |                     1 |    1302159882 |               0 |               0 |                0 |            0 | 0                  |                       0 | 00000000          | NULL     |         0 |             0 | NULL     | NULL      |      |
+-------------------+--------+------------+-----------------------+---------------+-----------------+-----------------+------------------+--------------+--------------------+-------------------------+-------------------+----------+-----------+---------------+----------+-----------+------+
1 row in set (0.00 sec)

mysql> SELECT attr_name,attr_value FROM object_custom_attributes WHERE object_id=17;
Empty set (0.00 sec)
#34
С -D 9 все проходит successful, заканчивается лог так...

[07-Apr-2011 12:36:18] Loading interfaces...
[07-Apr-2011 12:36:18] Successful sync query: "SELECT id FROM interfaces" [0 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT name,status,is_deleted,inherit_access_rights,last_modified,status_calc_alg,status_prop_alg,status_fixed_val,status_shift,status_translation,status_single_threshold,status_thresholds,comments,is_system,location_type,latitude,longitude,guid FROM object_properties WHERE object_id=13" [1 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT attr_name,attr_value FROM object_custom_attributes WHERE object_id=13" [0 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT target_node_id FROM trusted_nodes WHERE source_object_id=13" [0 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT ip_addr,ip_netmask,if_type,if_index,node_id,mac_addr,synthetic_mask,required_polls,bridge_port,phy_slot,phy_port,peer_node_id,peer_if_id FROM interfaces WHERE id=13" [0 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT user_id,access_rights FROM acl WHERE object_id=13" [0 ms]
[07-Apr-2011 12:36:18] Successful sync query: "SELECT name,status,is_deleted,inherit_access_rights,last_modified,status_calc_alg,status_prop_alg,status_fixed_val,status_shift,status_translation,status_single_threshold,status_thresholds,comments,is_system,location_type,latitude,longitude,guid FROM object_properties WHERE object_id=17" [0 ms]

полный лог прикреплен в файле

спасибо.
#35
Доброго времени суток, происходит странная вещь, сервер нормально запущен все отлично работает, убил несколько дней на конфигурацию, и вот после первой перезагрузки сервер не стартует, в логе с Debug Level 8 Следующее

[07-Apr-2011 11:07:27] Log file opened
[07-Apr-2011 11:07:27] Code page set to utf8
[07-Apr-2011 11:07:27] Platform subagent "/usr/local/lib/libnsm_linux.so" successfully loaded
[07-Apr-2011 11:07:27] Database driver "/usr/local/lib/libnxddr_mysql.so" loaded and initialized successfully
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x80783c0
[07-Apr-2011 11:07:27] Successfully connected to database netxms@localhost
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x8078488
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x807b180
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x807b768
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x807bd50
[07-Apr-2011 11:07:27] DBConnect: server=localhost db=netxms login=root
[07-Apr-2011 11:07:27] New DB connection opened: handle=0x807c338
[07-Apr-2011 11:07:27] Database Connection Pool initialized
[07-Apr-2011 11:07:27] Stalled database lock removed
[07-Apr-2011 11:07:27] Data directory set to /usr/local/share/netxms from server configuration variable
[07-Apr-2011 11:07:27] Global configuration loaded
[07-Apr-2011 11:07:27] ID table created
[07-Apr-2011 11:07:27] User accounts loaded
[07-Apr-2011 11:07:27] Built-in objects created
[07-Apr-2011 11:07:27] Loading container categories...
[07-Apr-2011 11:07:27] Loading built-in object properties...
[07-Apr-2011 11:07:27] Loading conditions...
[07-Apr-2011 11:07:27] Loading subnets...
[07-Apr-2011 11:07:27] User account status update thread started
[07-Apr-2011 11:07:27] Apply template thread started
[07-Apr-2011 11:07:27] Loading nodes...
[07-Apr-2011 11:07:36] Loading interfaces...

и никаких ошибок , но при запуске сначала на секунд 30 сильно грузит процессор и после сервис пропадает, загружаю вот так
/usr/local/bin/netxmsd -c /etc/netxmsd.conf -d -D 8

nxdbmgr check
нашел несколько ошибок time stamp и исправил их.

версия mysql 5.1.46
linux Slackware 13.1 i686

На версии 10.0.8 не было никаких проблем.
Очень не хочется заново все конфигурить :(