settings.py 2.45 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 = 10

# 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
ETH_DEVICE = "eth1"

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

# 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", "glance", "neutron"] 

# Error messages
ERR_NETWORK_STATUS = "Network error, interface unconfigured."
ERR_NETWORK_MEDIA = "Network error, Ethernet 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 error or service not running."
ERR_SERVICE_NOVAb = "Nova client error or unable to contact controller."
ERR_SERVICE_CINDER = "Cinder error or service not running."
ERR_SERVICE_GLANCE = "Glance error or service not running."
ERR_SERVICE_NEUTRONa = "Neutron error or service not running."
ERR_SERVICE_NEUTRONb = "Neutron client error or unable to contact controller."