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.

30 lines
963 B

#!/usr/bin/env python3
import command
import contact
import contactgroup
import host
import hostdependency
import hostescalation
import hostgroup
import service
import servicedependency
import serviceescalation
import servicegroup
import timeperiod
class NagParse():
def __init__(self):
self.m_commands: list[Command] = list()
self.m_contacts: list[Contact] = list()
self.m_contactgroups: list[ContactGroup] = list()
self.m_hosts: list[Host] = list()
self.m_hostdependencies[HostDependency]: list = list()
self.m_hostescalations[HostEscalation]: list = list()
self.m_hostgroups[HostGroup]: list = list()
self.m_services[Service]: list = list()
self.m_servicedependencies[ServiceDependency]: list = list()
self.m_serviceescalations[ServiceEscalation]: list = list()
self.m_servicegroups[ServiceGroup]: list = list()
self.m_timeperiods[Timeperiod]: list = list()