Viewing File server/web/node.edit.php of 1.00.2a
|
262: NodeID 263: : | "; 264: echo $row['nodeid']; 265: echo " |
268: Node Name 269: : | "; 270: echo ""; 271: echo " |
274: Hostname 275: : | "; 276: echo ""; 277: echo " |
280: Description 281: : | "; 282: echo ""; 283: echo " |
286: Node Icon 287: : | "; 288: echo "289: if ($row['nodeicon']!="") echo ""; 290: echo ""; 291: foreach($fnIcons as $icon) 292: echo ""; 293: //echo " [ Show Icons ]"; 294: echo " [ Show/Hide Icons ]"; 295: echo " |
"; 298: echo ""; 299: echo " | |
303: Node Enabled 304: : | "; 305: if ($row['nodeenabled']==1) $s=" checked"; 306: else $s=""; 307: echo ""; 308: echo " ".hlink("Node:Enabled"); 309: echo " |
312: Test Schedule 313: : | "; 314: echo "315: echo ""; 316: $sq="SELECT scheduleid,schedulename FROM fnschedule"; 317: $sr=$NATS->DB->Query($sq); 318: while ($sched=$NATS->DB->Fetch_Array($sr)) 319: { 320: if ($sched['scheduleid']==$row['scheduleid']) $s.=" selected"; 321: else $s=""; 322: echo ""; 323: } 324: echo ""; 325: $NATS->DB->Free($sr); 326: echo " ".hlink("Schedule"); 327: echo " |
330: Test Interval 331: : | "; 332: echo " "; 333: echo "Minutes ".hlink("Node:TestInterval"); 334: echo " |
338: Test Due 339: : | ";
340: if ($row['nextrunx']>0) echo nicedt($row['nextrunx']);
341: else echo "Now";
342: echo " "; 343: echo nicenextx($row['nextrunx']); 344: echo " Check ASAP "; 345: echo hlink("Node:CheckASAP",12); 346: echo " |
349: Alerts Active 350: : | "; 351: if ($row['nodealert']==1) $s=" checked"; 352: else $s=""; 353: echo ""; 354: echo " ".hlink("Node:AlertActive"); 355: echo " |
360: Ping Test 361: : | "; 362: if ($row['pingtest']==1) $s=" checked"; 363: else $s=""; 364: echo ""; 365: echo " ".hlink("Node:PingTest"); 366: echo " |
369: Require Ping 370: : | "; 371: if ($row['pingfatal']==1) $s=" checked"; 372: else $s=""; 373: echo ""; 374: echo " ".hlink("Node:RequirePing"); 375: echo " |
380: Node-Side Testing 381: : | "; 382: if ($row['nsenabled']==1) $nodeside=true; 383: else $nodeside=false; 384: if ($nodeside) $s=" checked"; 385: else $s=""; 386: echo ""; 387: echo " ".hlink("Nodeside"); 388: echo " |
Node Key : | "; 394: echo ""; 395: echo " ".hlink("Nodeside:Key"); 396: echo " |
Pull Enabled : | "; 399: if ($row['nspullenabled']==1) $s=" checked"; 400: else $s=""; 401: echo ""; 402: echo hlink("Nodeside:PullEnabled"); 403: echo " |
Pull URL : | "; 406: echo ""; 407: if ($row['nsurl']!="") 408: { 409: $uri=$row['nsurl']."?nodekey=".$row['nskey']."&noupdates=1"; 410: echo " Debug Raw Output"; 411: } 412: echo " ".hlink("Nodeside:URL"); 413: echo " |
Pull Interval : | "; 416: echo ""; 417: echo " Minutes ".hlink("Nodeside:Interval"); 418: echo " |
Push Enabled : | "; 421: if ($row['nspushenabled']==1) $s=" checked"; 422: else $s=""; 423: echo ""; 424: echo hlink("Nodeside:PushEnabled"); 425: echo " |
Push IP : | "; 428: echo ""; 429: echo " ".hlink("Nodeside:URL"); 430: echo " |
Last Data : | "; 433: echo nicedt($row['nslastx'])." - ".dtago($row['nslastx'])." |
Next Pull Due : | "; 438: if ($row['nsnextx']>0) echo nicedt($row['nsnextx'])." - ".nicenextx($row['nsnextx']); 439: else echo "Now"; 440: echo " |
Catalogue : | "; 444: $nsq="SELECT COUNT(nstestid) FROM fnnstest WHERE nodeid=\"".ss($_REQUEST['nodeid'])."\""; 445: $nsr=$NATS->DB->Query($nsq); 446: if ($nsrow=$NATS->DB->Fetch_Array($nsr)) 447: { 448: echo $nsrow['COUNT(nstestid)']." Node-Side Monitors"; 449: } 450: $NATS->DB->Free($nsr); 451: echo " |
Refresh Now : | "; 454: if ($row['nspullenabled']==1) echo "Refresh (Pull) Now"; 455: else echo "Pull Method Disabled"; 456: echo " |
";
463: echo " Cancel Changes";
464: echo " "; 465: echo " |
"; 492: 493: echo ""; 494: if (strlen($row['testparam'])>10) $tp=substr($row['testparam'],0,8).".."; 495: else $tp=$row['testparam']; 496: if ($row['testname']=="") echo lText($row['testtype'])." (".$tp.")"; 497: else echo $row['testname']; 498: echo ""; 499: echo " | "; 500: 501: echo ""; 502: echo " "; 503: echo ""; 504: echo ""; 505: 506: echo " Last Tested: ".dtago($row['lastrunx']).""; 507: echo " |
"; 517: 518: echo ""; 519: if ($row['testname']=="") echo $row['testdesc']; 520: else echo $row['testname']; 521: echo ""; 522: echo " | "; 523: 524: echo ""; 525: echo " "; 526: echo ""; 527: echo ""; 528: 529: echo " Last Tested: ".dtago($row['lastrunx']).""; 530: echo " |
| |
Add Test : | "; 539: echo ""; 553: 554: // one day will do fancy JS option here but for now moved to the edit 555: //echo " "; 556: echo ""; 557: echo ""; 558: 559: echo ""; 560: echo " |
Add Node-side Monitor : | "; 567: echo ""; 577: echo " "; 578: echo " |