#NEWLINE# def check( self , agentConfig ) : #NEWLINE# #INDENT# if Platform . is_linux ( ) : #NEWLINE# #INDENT# with open ( '/proc/uptime' , 'r' ) as f : #NEWLINE# #INDENT# uptime_seconds = float ( f . readline ( ) . split ( ) [ 0 ] ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'system.uptime' : uptime_seconds , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }