1 |
<? |
<? |
2 |
|
include('include/config.inc.php'); |
3 |
include('include/basesql.php'); |
include('include/basesql.php'); |
4 |
session_start(); |
session_start(); |
5 |
session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc'); |
session_register('alx_sort_krit'); session_register('alx_sort_onfirst'); session_register('alx_sort_loc'); |
27 |
global $comps; |
global $comps; |
28 |
if(!isset($comps[$dat['serial']])) return false; |
if(!isset($comps[$dat['serial']])) return false; |
29 |
|
|
30 |
//passthru("/bin/ping -I eth0 -c 1 -W 1 -q ".$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval); |
passthru($pingcmd.$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval); |
|
passthru("/usr/sbin/fping -c 1 -t 50 -q ".$dat['ip']." &> /dev/null && exit 0 || exit 1",$retval); |
|
31 |
if($retval==0) |
if($retval==0) |
32 |
{ |
{ |
33 |
$comps[$dat['serial']]['online'] = true; |
$comps[$dat['serial']]['online'] = true; |