Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Centreon.py   Nagstamon(Download)
        # print IP in debug mode
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), host=host, debug ="IP of %s:" % (host) + " " + address)
        # give back host or ip
        return Result(result=address)
        else:
            if str(self.conf.debug_mode) == "True":
                self.Debug(server=self.get_name(), debug = "Could not detect host/service status version. Using Centreon_Broker")
        # some cleanup
        del result, error
        else:
            if str(self.conf.debug_mode) == "True":
                self.Debug(server=self.get_name(), debug = "Host ID could not be retrieved.")
 
        # some cleanup
            if int(host_id):
                if str(self.conf.debug_mode) == "True":
                    self.Debug(server=self.get_name(), host=host, debug = "Host ID is " + host_id)
                return host_id
            else:
        else:
            if str(self.conf.debug_mode) == "True":
                self.Debug(server=self.get_name(), host=host, service=service, debug = "IDs could not be retrieved.")
 
            return "", ""

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Multisite.py   Nagstamon(Download)
 
            # Print non ERRORS to the log in debug mode
            self.Debug(server=self.get_name(), debug=c[0])
 
            raise MultisiteError(False, Result(result = "\n".join(c[1:]),
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), host=host, service=service, debug="Open host/service monitor web page " + url)
        webbrowser.open(url)
 
 
            if str(self.conf.debug_mode) == "True":
                self.Debug(server=self.get_name(), host=host, debug ="IP of %s:" % (host) + " " + ip)
 
            if str(self.conf.connect_by_dns) == "True":
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), host=host, debug ="Submitting action: " + url + '&' + urllib.urlencode(params))
 
        action = Actions.Action(type="url-check_mk-multisite",\
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), debug ="Rechecking all action: " + url + '&' + urllib.urlencode(params))
 
        result = self.FetchURL(url + '&' + urllib.urlencode(params), giveback = 'raw')

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Zabbix.py   Nagstamon(Download)
                )
                # johncan
                self.Debug(str(this_trigger))
                if type(this_trigger) is dict:
                    for triggerid in this_trigger.keys():
    def _open_browser(self, url):
        webbrowser.open(url)
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), debug="Open web page " + url)
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), host=host, service=service,
                       debug="Open host/service monitor web page " + url)
        webbrowser.open(url)
 
            if str(self.conf.debug_mode) == "True":
                self.Debug(server=self.get_name(), host=host, debug="IP of %s:" % host + " " + ip)
 
            if str(self.conf.connect_by_dns) == "True":

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/Server/Ninja.py   Nagstamon(Download)
 
                if str(self.conf.debug_mode) == "True":
                    self.Debug(server=self.get_name(), debug="Cookie:" + str(self.Cookie))
 
            except:
 
        if str(self.conf.debug_mode) == "True":
            self.Debug(server=self.get_name(), debug="Get Remote time: " + str(remote_time))
 
        values.update({"cmd_param[check_time]": remote_time})