def check_ressources(sess):
    """
    check the Ressources of the Fortinet Controller
    all thresholds are currently hard coded. should be fine.
    """
    # get the data
    cpu_value                    = get_data(sess, cpu_oid, helper)
    memory_value                 = get_data(sess, memory_oid, helper)
    filesystem_value             = get_data(sess, filesystem_oid, helper)

    helper.add_summary("Controller Status")
    helper.add_long_output("Controller Ressources - CPU: %s%%" % cpu_value)
    helper.add_metric("CPU", cpu_value, "0:90", "0:90", "", "", "%%")
    if int(cpu_value) > 90:
        helper.status(critical)
        helper.add_summary("Controller Ressources - CPU: %s%%" % cpu_value)

    helper.add_long_output("Memory: %s%%" % memory_value)
    helper.add_metric("Memory", memory_value, "0:90", "0:90", "", "", "%%")
    if int(memory_value) > 90:
        helper.add_summary("Memory: %s%%" % memory_value)
        helper.status(critical)
    
    helper.add_long_output("Filesystem: %s%%" % filesystem_value)
    helper.add_metric("Filesystem", filesystem_value, "0:90", "0:90", "", "", "%%")
    if int(filesystem_value) > 90:
        helper.add_summary("Filesystem: %s%%" % filesystem_value)
        helper.status(critical)
check the Ressources of the Fortinet Controller
    all thresholds are currently hard coded. should be fine.