def create_status_entry(notification, time):
    """ Create a dict from notification
    in: notification and time
    return : dict
    """
    # collectd severity : nagios satus
    #               1   : critical (2)
    #               2   : warning (1)
    #               4   : ok (0)
    severity={ 1:2, 2:1, 4:0 }
 
    return {
        'timestamp': time,
        'host': notification.host,
        'plugin' : notification.plugin,
        'plugin_instance': notification.plugin_instance,
        'type': notification.type,
        'type_instance': notification.type_instance,
        'severity':  notification.severity,
        'nagios_state': severity[notification.severity],
        'message': notification.message
    }