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.

21 lines
770 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. node_hostname = fields.Char(
  11. u"Hostname of this node", required=True,
  12. help=u"This is the hostname of the current node declared in the "
  13. u"monitoring server.")
  14. config_file_path = fields.Char(
  15. u"Configuration file", default="/etc/send_nsca.cfg", required=True)
  16. check_ids = fields.One2many(
  17. 'nsca.check', 'server_id', string=u"Checks")