mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
added extra parameters to login message for updating agent informations
This commit is contained in:
parent
23d5a1648d
commit
9032c03be6
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ class Messaging(object):
|
||||||
data['ipAddresses'] = str(System.Hardware.Network.ip_addresses()).replace('[', '').replace(']', '')
|
data['ipAddresses'] = str(System.Hardware.Network.ip_addresses()).replace('[', '').replace(']', '')
|
||||||
data['timestamp'] = Util.timestamp()
|
data['timestamp'] = Util.timestamp()
|
||||||
data['userIp'] = ip
|
data['userIp'] = ip
|
||||||
|
data['osVersion'] = System.Os.version()
|
||||||
|
data['diskTotal'] = System.Hardware.Disk.total()
|
||||||
|
data['diskUsed'] = System.Hardware.Disk.used()
|
||||||
|
data['diskFree'] = System.Hardware.Disk.free()
|
||||||
|
data['memory'] = System.Hardware.Memory.total()
|
||||||
data['hostname'] = str(System.Os.hostname())
|
data['hostname'] = str(System.Os.hostname())
|
||||||
|
|
||||||
self.logger.debug('USER IP : '+ str(ip)+ ' IPADDRESSES : '+ str(System.Hardware.Network.ip_addresses()).replace('[', '').replace(']', ''))
|
self.logger.debug('USER IP : '+ str(ip)+ ' IPADDRESSES : '+ str(System.Hardware.Network.ip_addresses()).replace('[', '').replace(']', ''))
|
||||||
|
|
Loading…
Reference in a new issue