<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_ups_alarms_present(the_session, the_helper, the_snmp_value):
 """ OID .1.3.6.1.2.1.33.1.6.1.0 MIB excerpt The present number of active alarm conditions. """

    if the_snmp_value != '0':
        the_helper.add_status(pynag.Plugins.critical)
    else:
        the_helper.add_status(pynag.Plugins.ok)
    the_helper.set_summary("{} active alarms ".format(the_snmp_value))