rendered paste bodyalias linux {
sockopen linux tecnovm64.com 80
}
on *:sockopen:linux: {
.sockwrite -n $sockname GET /uptime-exec.php HTTP/1.0
.sockwrite -n $sockname Host: tecnovm64.com $+ $crlf $+ $crlf
}
on *:sockread:linux: {
sockread %linux
if (uptime isin %linux) {
var %uptime = $gettok(%linux,6,32)
if (**:** !iswm %uptime) {
var %x = $gettok(%linux,4-6,32) $left($gettok(%linux,7,32),-1)
msg $active Linuxbox Uptime: $+ %x $+ , $gettok(%linux,8-,32)
}
else {
var %x = $gettok(%linux,2-5,32) $left($gettok(%linux,6,32),-1)
msg $active Linuxbox Uptime: $+ %x $+ , $gettok(%linux,7-,32)
}
}
}