@@ -62,48 +62,41 @@ memusedroundup="$(((memused + 99) / 100 * 100))"
6262# Hardware Property - UA-165287622-3
6363
6464# # Distro.
65- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
6665curl 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
6766curl 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
6867curl 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
6968
7069# # Game Server Name.
71- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
7270curl 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
7371curl 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
7472curl 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
7573
7674# # LinuxGSM Version.
77- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
7875curl 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
7976curl 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
8077curl 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
8178
8279# # CPU usage of a game server.
8380if [ -n " ${cpuusedmhzroundup} " ]; then
84- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
8581 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
8682 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
8783 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
8884fi
8985# # Ram usage of a game server.
9086if [ -n " ${memusedroundup} " ]; then
91- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
9287 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
9388 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
9489 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
9590fi
9691# # Disk usage of a game server.
9792if [ -n " ${serverfilesdu} " ]; then
98- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
9993 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
10094 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
10195 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
10296fi
10397
10498# # CPU Model.
10599if [ -n " ${cpumodel} " ]; then
106- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
107100 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
108101 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
109102 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
112105
113106# # CPU Frequency.
114107if [ -n " ${cpufreqency} " ]; then
115- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
116108 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
117109 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
118110 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
119111fi
120112
121113# # Server RAM.
122114if [ -n " ${physmemtotal} " ]; then
123- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
124115 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
125116 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
126117 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
127118fi
128119
129120# # Server Disk.
130121if [ -n " ${totalspace} " ]; then
131- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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
132122 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
133123 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
134124 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
135125fi
136126
127+ # # Alert Stats.
128+ if [ " ${discordalert} " == " on" ]; then
129+ 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=Discord" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
130+ fi
131+ if [ " ${emailalert} " == " on" ]; then
132+ 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=Email" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
133+ fi
134+ if [ " ${iftttalert} " == " on" ]; then
135+ 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=IFTTT" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
136+ fi
137+ if [ " ${mailgunalert} " == " on" ]; then
138+ 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=Mailgun" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
139+ fi
140+ if [ " ${pushbulletalert} " == " on" ]; then
141+ 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=Pushbullet" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
142+ fi
143+ if [ " ${pushoveralert} " == " on" ]; then
144+ 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=Pushover" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
145+ fi
146+ if [ " ${rocketchatalert} " == " on" ]; then
147+ 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=Rocket Chat" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
148+ fi
149+ if [ " ${slackalert} " == " on" ]; then
150+ 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=Slack" -d " el=${gamename} " -d " v=1" > /dev/null 2>&1
151+ fi
152+ if [ " ${telegramalert} " == " on" ]; then
153+ 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
154+ fi
155+
137156# # Summary Stats
138- curl https://www.google-analytics.com/collect -d " tid=UA-655379-31" -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 " v=1" > /dev/null 2>&1
139- 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 " v=1" > /dev/null 2>&1
140- 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 " v=1" > /dev/null 2>&1
141- 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 " v=1" > /dev/null 2>&1
157+ 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
158+ 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
159+ 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
142160
143161fn_script_log_info " Send LinuxGSM stats"
144162fn_script_log_info " * uuid-${selfname} : ${uuidinstance} "
0 commit comments