node.test.settings.py 3.12 KB
######################################
#
# Settings for the lcd_panel data
# gathering script.
#
######################################

# How long we pause between data gathering
INTERVAL = 1

# How long between service check intervals
SERVICE_INTERVAL = 30

# How many loops before counters are reset
ZAP_INTERVAL = 50

# How many rotations until the extended info detail screens are shown
DETAIL_1_INTERVAL = 10
DETAIL_2_INTERVAL = 20
DETAIL_3_INTERVAL = 30
DETAIL_4_INTERVAL = 40
# How many rotations each detail screen is shown before cycling back to the main screen
DETAIL_DURATION = 3

# Which filesystem path should we check
# the disk useage of
DISK_PATH = "/var"

# An NFS mounted directory that we should check. Set to '/' to bypass NFS check.
NFS_PATH = "/"

# Name of the primary network adapter (to determine our IP address)
ETH_DEVICE = "eno1"
# List all of the network devices we should check are up and connected
ETH_DEVICES = ["eno1"]

# Serial display width - how many characters we can display before scrolling right to left
DISPLAY_WIDTH = 16

# Time to pause between scroll updates
SCROLL_SPEED = 0.25

# When running service checks, some are against a 'client' service, others are against a 'server' service. This
# tells the class which type of check to use. (an openstack node can only be a server or client, not both)
#SERVICE_CHECK_TYPE = "server"
SERVICE_CHECK_TYPE = "client"

# List of enabled service checks
SERVICE_CHECKS = ["ssh"]
#SERVICE_CHECKS = ["ssh", "mysql", "httpd", "keystone", "nova", "cinder", "cinder-volume", "glance", "neutron", "nfs"] 

# Error messages
ERR_NETWORK_STATUS = "Network error, ETH interface unconfigured."
ERR_NETWORK_MEDIA = "Network error, ETH cable disconnected."
ERR_DISK_STATUS = "Disk error, %s is not mounted." % DISK_PATH
ERR_NFS_STATUS = "NFS error, %s is not mounted or unavailable." % NFS_PATH
ERR_SERVICE_SSH = "OpenSSH error or service not running."
ERR_SERVICE_MYSQL = "MySQL error or service not running."
ERR_SERVICE_HTTPDa = "Apache httpd error, web page not available."
ERR_SERVICE_HTTPDb = "Apache httpd error, service not running."
ERR_SERVICE_KEYSTONEa = "Keystone error or service not running."
ERR_SERVICE_KEYSTONEb = "Keystone client error or unable to contact controller."
ERR_SERVICE_NOVAa = "Nova API error or service not running."
ERR_SERVICE_NOVAb = "Nova client error or unable to contact controller."
ERR_SERVICE_CINDERa = "Cinder API error or service not running."
ERR_SERVICE_CINDERb = "Cinder volume error or service not running."
ERR_SERVICE_GLANCE = "Glance API error or service not running."
ERR_SERVICE_NEUTRONa = "Neutron API error or service not running."
ERR_SERVICE_NEUTRONb = "Neutron client error or unable to contact controller."
ERR_SERVICE_NFS = "NFS Kernel server not running."

# Trigger levels for various metrics
# and the colour to change the backlight of the lcd module
# when that mode is active
CPU_PEAK = { 'level' : 75, 'r': 255, 'g': 0, 'b': 0 }
CPU_HIGH = { 'level' : 50, 'r': 255, 'g': 102, 'b': 0 }
CPU_MED = { 'level' : 35, 'r': 204, 'g': 255, 'b': 51 }
CPU_LOW = { 'level' : 20, 'r': 0, 'g': 204, 'b': 153 }
CPU_IDLE = { 'level' : 10, 'r': 0, 'g': 100, 'b': 255 }