Example #1
0
def alarm_task():
    # print "alarm task start"
    alarm_body = []
    alarm_body.extend(cpu_base_alarm())
    alarm_body.extend(cpu_load_alarm())
    alarm_body.extend(cpu_temperature_alarm())
    alarm_body.extend(mem_alarm())
    alarm_body.extend(swap_alarm())
    alarm_body.extend(fs_alarm())
    alarm_body.extend(pscpu_alarm())
    alarm_body.extend(psmem_alarm())
    task_producer("warningQueue", alarm_body, None)
Example #2
0
def sensor_task():
    dict = {"x-message-ttl": 60000}
    body = deal_cpu_sensor()
    task_producer("cputemper", body, dict)
Example #3
0
def fans_task():
    dict = {"x-message-ttl": 60000}
    body = get_fans()
    task_producer("fun", body, dict)
Example #4
0
def process_info_task():
    dict = {"x-message-ttl": 8000}
    body = get_ps_basic_info()
    task_producer("processInfo_queue", body, dict)
Example #5
0
def network_io_task():
    # print "network io task start"
    dict = {"x-message-ttl": 60000}
    body = get_network_io()
    task_producer("networkio", body, dict)
Example #6
0
def network_socket_task():
    # print "socket task start"
    dict = {"x-message-ttl": 60000}
    body = get_socket_info()
    task_producer("networksocket", body, dict)
Example #7
0
def mem_basic_info_task():
    # print "mem info task start"
    dict = {"x-message-ttl": 60000}
    body = getmembasicinfo()
    task_producer("membaseinfo", body, dict)
Example #8
0
def cpu_load_task():
    # print "cpu load task start"
    cpu_dict = {"x-message-ttl": 60000}
    body = getcpuload()
    task_producer("cpuload", body, cpu_dict)
Example #9
0
def network_throughput_task():
    # print "network throughput task start"
    dict = {"x-message-ttl": 60000}
    body = get_throughput_info()
    task_producer("networkthroughput", body, dict)
Example #10
0
def disk_block_task():
    # print "disk block task start"
    dict = {"x-message-ttl": 60000}
    body = get_disk_block()
    task_producer("diskblock", body, dict)
Example #11
0
def disk_io_task():
    # print "disk io task start"
    dict = {"x-message-ttl": 60000}
    body = get_disk_io()
    task_producer("diskinfo", body, dict)
Example #12
0
def mem_numstat_task():
    # print "mem numa task start"
    dict = {"x-message-ttl": 12000}
    body = get_numastat_info()
    task_producer("numstatinfo", body, dict)
Example #13
0
def mem_slab_task():
    # print "mem slab task start"
    dict = {"x-message-ttl": 60000}
    body = get_slab_info()
    task_producer("memslab", body, dict)
Example #14
0
def mem_page_task():
    # print "mem page task start"
    dict = {"x-message-ttl": 60000}
    body = getpaginfo()
    task_producer("mempage", body, dict)
Example #15
0
def network_iptraffic_task():
    # print "ip traffic task start"
    dict = {"x-message-ttl": 60000}
    body = get_iptrafic_info()
    task_producer("networktraffic", body, dict)
Example #16
0
def cpu_info_taks():
    # print "cpu info task start"
    cpu_dict = {"x-message-ttl": 60000}
    body = getcpuinfo()
    task_producer("cpuinfo", body, cpu_dict)
Example #17
0
def network_udp_task():
    # print "udp task start"
    dict = {"x-message-ttl": 60000}
    body = get_udp_info()
    task_producer("networkudp", body, dict)
Example #18
0
def cpu_interrupt_task():
    # print "cpu interrupt task start"
    cpu_dict = {"x-message-ttl": 12000}
    body = getinterrupts()
    task_producer("interrupt", body, cpu_dict)
Example #19
0
def single_cpu_task():
    print "single cpu task start"
    cpu_dict = {"x-message-ttl": 60000}
    body = getpercpuinfo()
    task_producer("singlecpuinfo", body, cpu_dict)