install/ss-ci-pipeline/ss-tester.py
def _get_monitoring_status():
    "Returns monitoring status as JSON."
    nagios_user, nagios_pass = ss_get('nagios_creds').split(':')

    request = urllib2.Request(NAGIOS_STATUS_URL)
    base64string = base64.b64encode('%s:%s' % (nagios_user, nagios_pass))
    request.add_header("Authorization", "Basic %s" % base64string)
    request.add_header("Accept", "application/json")
    res = urllib2.urlopen(request)

    return json.loads(res.read())
Returns monitoring status as JSON.
Returns monitoring status as JSON.
Returns monitoring status as JSON .
def _get_monitoring_status():
    nagios_user, nagios_pass = ss_get('nagios_creds').split(':')
    request = urllib2.Request(NAGIOS_STATUS_URL)
    base64string = base64.b64encode('%s:%s' % (nagios_user, nagios_pass))
    request.add_header("Authorization", "Basic %s" % base64string)
    request.add_header("Accept", "application/json")
    res = urllib2.urlopen(request)
    return json.loads(res.read())
def _get_monitoring_status ( ) : nagios_user , nagios_pass = ss_get ( 'nagios_creds' ) . split ( ':' ) request = urllib2 . Request ( NAGIOS_STATUS_URL ) base64string = base64 . b64encode ( '%s:%s' % ( nagios_user , nagios_pass ) ) request . add_header ( "Authorization" , "Basic %s" % base64string ) request . add_header ( "Accept" , "application/json" ) res = urllib2 . urlopen ( request ) return json . loads ( res . read ( ) )
Returns monitoring status as JSON.
Returns monitoring status as JSON .
"Returns monitoring status as JSON."