@ -61,68 +61,33 @@ memusedroundup="$(((memused + 99) / 100 * 100))"
# Install Property - UA-165287622-2
# Install Property - UA-165287622-2
# Hardware Property - UA-165287622-3
# Hardware Property - UA-165287622-3
## Distro.
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=distro" -d " ea= ${ distroname } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=distro" -d " ea= ${ distroname } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=distro" -d " ea= ${ distroname } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
## Game Server Name.
curl -X POST "https://www.google-analytics.com/mp/collect?api_secret=A-OzP02TSMWt4_vHi6ZpUw&measurement_id=G-0CR8V7EMT5" -H "Content-Type: application/json" -d "
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=game" -d " ea= ${ gamename } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
{
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=game" -d " ea= ${ gamename } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" client_id\" : \" ${ uuidinstance } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=game" -d " ea= ${ gamename } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" events\" : [
{
## LinuxGSM Version.
\" name\" : \" LinuxGSM\" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=version" -d " ea= ${ version } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" params\" : {
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=version" -d " ea= ${ version } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" cpuusedmhzroundup\" : \" ${ cpuusedmhzroundup } MHz\" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=version" -d " ea= ${ version } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" memusedroundup\" : \" ${ memusedroundup } MB\" ,
\" serverfilesdu\" : \" ${ serverfilesdu } \" ,
## CPU usage of a game server.
\" uuidhardware\" : \" ${ uuidhardware } \" ,
if [ -n " ${ cpuusedmhzroundup } " ] ; then
\" uuidinstall\" : \" ${ uuidinstall } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=cpuused" -d " ea= ${ cpuusedmhzroundup } MHz " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" uuidinstance\" : \" ${ uuidinstance } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=cpuused" -d " ea= ${ cpuusedmhzroundup } MHz " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" diskused\" : \" ${ serverfilesdu } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=cpuused" -d " ea= ${ cpuusedmhzroundup } MHz " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" distro\" : \" ${ distroname } \" ,
fi
\" game\" : \" ${ gamename } \" ,
## Ram usage of a game server.
\" ramused\" : \" ${ memusedroundup } MB\" ,
if [ -n " ${ memusedroundup } " ] ; then
\" servercpu\" : \" ${ cpumodel } ${ cpucores } cores\" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=ramused" -d " ea= ${ memusedroundup } MB " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" servercpufreq\" : \" ${ cpufreqency } x${ cpucores } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=ramused" -d " ea= ${ memusedroundup } MB " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" serverdisk\" : \" ${ totalspace } \" ,
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=ramused" -d " ea= ${ memusedroundup } MB " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
\" serverram\" : \" ${ physmemtotal } \" ,
fi
\" version\" : \" ${ version } \"
## Disk usage of a game server.
}
if [ -n " ${ serverfilesdu } " ] ; then
}
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=diskused" -d " ea= ${ serverfilesdu } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
]
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=diskused" -d " ea= ${ serverfilesdu } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
} "
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=diskused" -d " ea= ${ serverfilesdu } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
## CPU Model.
if [ -n " ${ cpumodel } " ] ; then
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=servercpu" -d " ea= ${ cpumodel } ${ cpucores } cores " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=servercpu" -d " ea= ${ cpumodel } ${ cpucores } cores " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=servercpu" -d " ea= ${ cpumodel } ${ cpucores } cores " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
## CPU Frequency.
if [ -n " ${ cpufreqency } " ] ; then
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=servercpufreq" -d " ea= ${ cpufreqency } x ${ cpucores } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=servercpufreq" -d " ea= ${ cpufreqency } x ${ cpucores } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=servercpufreq" -d " ea= ${ cpufreqency } x ${ cpucores } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
## Server RAM.
if [ -n " ${ physmemtotal } " ] ; then
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=serverram" -d " ea= ${ physmemtotal } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=serverram" -d " ea= ${ physmemtotal } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=serverram" -d " ea= ${ physmemtotal } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
## Server Disk.
if [ -n " ${ totalspace } " ] ; then
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=serverdisk" -d " ea= ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=serverdisk" -d " ea= ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=serverdisk" -d " ea= ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
## Alert Stats.
## Alert Stats.
if [ " ${ discordalert } " = = "on" ] ; then
if [ " ${ discordalert } " = = "on" ] ; then
@ -153,11 +118,6 @@ if [ "${telegramalert}" == "on" ]; then
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=alert" -d "ea=Telegram" -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=alert" -d "ea=Telegram" -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fi
fi
## Summary Stats
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-1" -d "aip=1" -d " cid= ${ uuidinstance } " -d "t=event" -d "ec=summary" -d " ea=GAME: ${ gamename } | DISTRO: ${ distroname } | CPU MODEL: ${ cpumodel } ${ cpucores } cores | RAM: ${ physmemtotal } | DISK: ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-2" -d "aip=1" -d " cid= ${ uuidinstall } " -d "t=event" -d "ec=summary" -d " ea=GAME: ${ gamename } | DISTRO: ${ distroname } | CPU MODEL: ${ cpumodel } ${ cpucores } cores | RAM: ${ physmemtotal } | DISK: ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
curl https://www.google-analytics.com/collect -d "tid=UA-165287622-3" -d "aip=1" -d " cid= ${ uuidhardware } " -d "t=event" -d "ec=summary" -d " ea=GAME: ${ gamename } | DISTRO: ${ distroname } | CPU MODEL: ${ cpumodel } ${ cpucores } cores | RAM: ${ physmemtotal } | DISK: ${ totalspace } " -d " el= ${ gamename } " -d "v=1" > /dev/null 2>& 1
fn_script_log_info "Send LinuxGSM stats"
fn_script_log_info "Send LinuxGSM stats"
fn_script_log_info " * uuid- ${ selfname } : ${ uuidinstance } "
fn_script_log_info " * uuid- ${ selfname } : ${ uuidinstance } "
fn_script_log_info " * uuid-install: ${ uuidinstall } "
fn_script_log_info " * uuid-install: ${ uuidinstall } "