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

# -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
class NscaServer(models.Model):
_name = "nsca.server"
_description = u"NSCA Server"
name = fields.Char(u"Hostname", required=True)
port = fields.Integer(u"Port", default=5667, required=True)
node_hostname = fields.Char(
u"Hostname of this node", required=True,
help=u"This is the hostname of the current node declared in the "
u"monitoring server.")
config_file_path = fields.Char(
u"Configuration file", default="/etc/send_nsca.cfg", required=True)
check_ids = fields.One2many(
'nsca.check', 'server_id', string=u"Checks")