Did I find the right examples for you? yes no

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

src/a/r/arritranco-HEAD/arritranco/monitoring/nagios/views.py   arritranco(Download)
 
from nsca import NSCA
from models import NagiosCheck, NagiosCheckOpts, NagiosNetworkParent, HUMAN_TO_NAGIOS
from scheduler.models import TaskStatus, TaskCheck
from templatetags.nagios_filters import nagios_safe
        if isinstance(status, TaskStatus):
            logger.debug('Last status for %s: %s is %s (%s)', bt, bt.description, status, status.check_time)
            logger.debug('Human to nagios de %s es %d' % (status.status,HUMAN_TO_NAGIOS[status.status]))
            nsca.add_custom_status(
                    bt.machine.fqdn,
                    nagios_safe(bt.description),
                    HUMAN_TO_NAGIOS[status.status],