You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
578 B

  1. # -*- coding: utf-8 -*-
  2. # © 2015 ABF OSIELL <http://osiell.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import fields, models
  5. class NscaServer(models.Model):
  6. _name = "nsca.server"
  7. _description = u"NSCA Server"
  8. name = fields.Char(u"Hostname", required=True)
  9. port = fields.Integer(u"Port", default=5667, required=True)
  10. config_file_path = fields.Char(
  11. u"Configuration file", default="/etc/send_nsca.cfg", required=True)
  12. check_ids = fields.One2many(
  13. 'nsca.check', 'server_id', string=u"Checks")