Catch erros em funções de inventário e criar objeto novo "error"
{
"data" : {
"amount_users" : 4,
"mac_address" : "02:42:ac:11:00:02",
"machine_type" : NULL,
"memory" : NULL,
"mirror_timestamp" : "#52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015",
"os_distro" : "Ubuntu 16.04 LTS",
"os_kernel" : "3.16.0-38-generic",
"os_type" : "Linux",
"processor" : "Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz",
...
},
"error" : {
"memory" : "failed to open '/proc/meminfo'",
"machine_type" : "servname not supported for ai_socktype" // actual error i'm getting on ubuntu, not a clue what it means rs
}
}