예제 #1
0
파일: Custom.py 프로젝트: gquadro/Nagstamon
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

""" Module for implementing custom servers,
columns and other stuff.
Imported in GUI module.
"""
from Nagstamon.Actions import register_server

from Nagstamon.Server.Nagios import NagiosServer
from Nagstamon.Server.Centreon import CentreonServer
from Nagstamon.Server.Icinga import IcingaServer
from Nagstamon.Server.Multisite import MultisiteServer
from Nagstamon.Server.op5Monitor import Op5MonitorServer
from Nagstamon.Server.Opsview import OpsviewServer
from Nagstamon.Server.Thruk import ThrukServer
from Nagstamon.Server.Zabbix import ZabbixServer
from Nagstamon.Server.Dude import DudeServer

# moved registration process because of circular dependencies
# order of registering affects sorting in server type list in add new server dialog
register_server(NagiosServer)
register_server(CentreonServer)
register_server(MultisiteServer)
register_server(IcingaServer)
register_server(Op5MonitorServer)
register_server(OpsviewServer)
register_server(ThrukServer)
register_server(ZabbixServer)
register_server(DudeServer)
예제 #2
0
파일: Custom.py 프로젝트: ageric/Nagstamon
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

""" Module for implementing custom servers,
columns and other stuff.
Imported in GUI module.
"""
from Nagstamon.Actions import register_server

from Nagstamon.Server.Nagios import NagiosServer
from Nagstamon.Server.Centreon import CentreonServer
from Nagstamon.Server.Icinga import IcingaServer
from Nagstamon.Server.Multisite import MultisiteServer
from Nagstamon.Server.Ninja import NinjaServer
from Nagstamon.Server.Opsview import OpsviewServer
from Nagstamon.Server.Thruk import ThrukServer


# moved registration process because of circular dependencies
# order of registering affects sorting in server type list in add new server dialog
register_server(NagiosServer)
register_server(CentreonServer)
register_server(MultisiteServer)
register_server(IcingaServer)
register_server(NinjaServer)
register_server(OpsviewServer)
register_server(ThrukServer)

예제 #3
0
파일: Custom.py 프로젝트: marcinn/Nagstamon
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
""" Module for implementing custom servers,
columns and other stuff.
Imported in GUI module.
"""

from Nagstamon.Actions import register_server

import logging
log = logging.getLogger('nagstamon')

# moved registration process because of circular dependencies
# order of registering affects sorting in server type list in add new server dialog

import pkg_resources

for ep in sorted(pkg_resources.iter_entry_points('nagstamon.servers'),
                 key=lambda x: x.name):
    try:
        cls = ep.load()
    except ImportError, e:
        log.error('Can\'t load `%s` plugin', ep, exc_info=e)
    else:
        register_server(cls)
예제 #4
0
# -*- coding: utf-8 -*-
""" Module for implementing custom servers,
columns and other stuff.
Imported in GUI module.
"""
from Nagstamon.Actions import register_server

from Nagstamon.Server.Nagios import NagiosServer
from Nagstamon.Server.Centreon import CentreonServer
from Nagstamon.Server.Icinga import IcingaServer
from Nagstamon.Server.Multisite import MultisiteServer
from Nagstamon.Server.Ninja import NinjaServer
from Nagstamon.Server.Opsview import OpsviewServer
from Nagstamon.Server.Pingdom import PingdomServer

# moved registration process because of circular dependencies
# order of registering affects sorting in server type list in add new server dialog
register_server(NagiosServer)
register_server(CentreonServer)
register_server(MultisiteServer)
register_server(IcingaServer)
register_server(NinjaServer)
register_server(OpsviewServer)
register_server(PingdomServer)
예제 #5
0
파일: Custom.py 프로젝트: sjas/Nagstamon
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
""" Module for implementing custom servers,
columns and other stuff.
Imported in GUI module.
"""
from Nagstamon.Actions import register_server

from Nagstamon.Server.Nagios import NagiosServer
from Nagstamon.Server.Centreon import CentreonServer
from Nagstamon.Server.Icinga import IcingaServer
from Nagstamon.Server.Multisite import MultisiteServer
from Nagstamon.Server.op5Monitor import Op5MonitorServer
from Nagstamon.Server.Opsview import OpsviewServer
from Nagstamon.Server.Thruk import ThrukServer
from Nagstamon.Server.Zabbix import ZabbixServer

# moved registration process because of circular dependencies
# order of registering affects sorting in server type list in add new server dialog
register_server(NagiosServer)
register_server(CentreonServer)
register_server(MultisiteServer)
register_server(IcingaServer)
register_server(Op5MonitorServer)
register_server(OpsviewServer)
register_server(ThrukServer)
register_server(ZabbixServer)