1
0
-1


В профилях стандартного оборудования, находящихся в каталоге ./noc/sa/profiles/

нет профиля для сетевого оборудования polygon. Решение в лоб путём создания  профиля в каталоге не помогло (скопировал из Cisco.Ios). На тестовой среде не подключённой к сетевым устройствам ошибок не было, но и при создании нового "managed object" нового профиля не получилось. При попытке создать на продуктивной среде подобным образом  получил следующую ошибку:

 

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.

All Rights Reserved.,

'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands

    for supporting Python development.  See www.python.org for more information.,

'delattr': <built-in function delattr>,

'dict': <type 'dict'>,

'dir': <built-in function dir>,

'divmod': <built-in function divmod>,

'enumerate': <type 'enumerate'>,

'eval': <built-in function eval>,

'execfile': <built-in function execfile>,

'exit': Use exit() or Ctrl-D (i.e. EOF) to exit,

'file': <type 'file'>,

'filter': <built-in function filter>,

'float': <type 'float'>,

'format': <built-in function format>,

'frozenset': <type 'frozenset'>,

'getattr': <built-in function getattr>,

'globals': <built-in function globals>,

'hasattr': <built-in function hasattr>,

'hash': <built-in function hash>,

'help': Type help() for interactive help, or help(object) for help about object.,

'hex': <built-in function hex>,

'id': <built-in function id>,

'input': <built-in function input>,

'int': <type 'int'>,

'intern': <built-in function intern>,

'isinstance': <built-in function isinstance>,

'issubclass': <built-in function issubclass>,

'iter': <built-in function iter>,

'len': <built-in function len>,

'license': Type license() to see the full license text,

'list': <type 'list'>,

'locals': <built-in function locals>,

'long': <type 'long'>,

'map': <built-in function map>,

'max': <built-in function max>,

'memoryview': <type 'memoryview'>,

'min': <built-in function min>,

'next': <built-in function next>,

'object': <type 'object'>,

'oct': <built-in function oct>,

'open': <built-in function open>,

'ord': <built-in function ord>,

'pow': <function _gmpy_pow at 0x7f858fa42aa0>,

'print': <built-in function print>,

'property': <type 'property'>,

'quit': Use quit() or Ctrl-D (i.e. EOF) to exit,

'range': <built-in function range>,

'raw_input': <built-in function raw_input>,

'reduce': <built-in function reduce>,

'reload': <built-in function reload>,

'repr': <built-in function repr>,

'reversed': <type 'reversed'>,

'round': <built-in function round>,

'set': <type 'set'>,

'setattr': <built-in function setattr>,

'slice': <type 'slice'>,

'sorted': <built-in function sorted>,

'staticmethod': <type 'staticmethod'>,

'str': <type 'str'>,

'sum': <built-in function sum>,

'super': <type 'super'>,

'tuple': <type 'tuple'>,

'type': <type 'type'>,

'unichr': <built-in function unichr>,

'unicode': <type 'unicode'>,

'vars': <built-in function vars>,

'xrange': <type 'xrange'>,

'zip': <built-in function zip>}

        get_resolver = None

            __file__ = None

         DynamicMenu = None

                 URL = None

                glob = None

        HTTP_METHODS = None

            __name__ = None

LocaleRegexURLResolver = None

         get_urlconf = None

           ProxyNode = None

               types = None

      INSTALLED_APPS = None

    clear_url_caches = None

             hashlib = None

             resolve = None

             logging = None

           smart_str = None

          handler404 = None

            settings = None

             Http404 = None

              config = None

          iri_to_uri = None

     get_ns_resolver = None

             memoize = None

       is_valid_path = None

         Resolver404 = None

   set_script_prefix = None

        error_report = None

                Site = None

         JSONEncoder = None

------------------------------------------------------------------------

File: main/web.py (Line: 188)

Function: children_loop

  181             sockets = self.server._pending_sockets

  182             self.server._pending_sockets = []

  183             self.server.add_sockets(sockets)

  184             # Connect to mongodb

  185             import noc.lib.nosql

  186             # Initialize site

  187             self.logger.info("Registering web applications")

  188 ==>         from noc.lib.app import site

  189             site.autodiscover()

  190             # Run children's I/O loop

  191             dt = (time.time() - self.start_time) * 1000

  192             self.logger.info("Starting to serve requests (in %.2fms)", dt)

  193             run_reporter()

  194             tornado.ioloop.IOLoop.instance().start()

Variables:

                c_id = 0

                self = <noc.main.web.Web object at 0x7f8599196410>

             sockets = [<socket._socketobject object at 0x7f8593d08e50>]

                 noc = <module 'noc' from '/opt/noc/__init__.pyc'>

------------------------------------------------------------------------

File: main/web.py (Line: 155)

Function: run

  148             ids = set(range(nc))

  149             while True:

  150                 # Run children

  151                 while len(self.t_children) < nc:

  152                     c_id = ids.pop()

  153                     pid = os.fork()

  154                     if pid == 0:

  155 ==>                     self.children_loop(c_id)

  156                     elif pid < 0:

  157                         self.logger.error("Unable to fork child")

  158                     else:

  159                         self.logger.info("Running child PID %d (id %s)", pid, c_id)

  160                         self.t_children[pid] = c_id

  161                 # Wait for status

Variables:

              status = 0

                c_id = 0

            hg_paths = [('noc', '.')]

                  vi =

sys.version_info(major=2, minor=7, micro=9, releaselevel='final', serial=0)

                self = <noc.main.web.Web object at 0x7f8599196410>

                  nc = 1

                 pid = 0

                 ids = set([])

            noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x7f85945f0f90>

         application = <tornado.web.Application object at 0x7f8593cd1650>

                  ui = <mercurial.ui.ui object at 0x7f85945f0f50>

             address = '127.0.0.1'

             hg_wsgi = <tornado.wsgi.WSGIContainer object at 0x7f8593cd1590>

                port = 8000

              listen = '127.0.0.1:8000'

------------------------------------------------------------------------

File: lib/daemon/base.py (Line: 431)

Function: guarded_run

  424             :return:

  425             """

  426             if self.start_delay:

  427                 self.logger.info("Delaying start for %s seconds",

  428                                  self.start_delay)

  429                 time.sleep(self.start_delay)

  430             try:

  431 ==>             self.run()

  432             except KeyboardInterrupt:

  433                 pass

  434             except MemoryError:

  435                 self.logger.error("Out of memory. Exiting.")

  436             except SystemExit:

  437                 self.logger.info("Exiting")

Variables:

                self = <noc.main.web.Web object at 0x7f8599196410>

------------------------------------------------------------------------

END OF TRACEBACK

2018-04-03 11:39:15,796 [noc-web] Removing pidfile: /srv/noc/run/noc-web.pid

2018-04-03 11:39:15,796 [noc-web] STOP

2018-04-03 11:39:16,118 [noc-web] Exiting child 24175

2018-04-03 11:39:16,119 [noc-web] Running child PID 24198 (id 0)

    CommentAdd your comment...