Viewing File server/web/node.edit.php of 1.02.4b
|
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: $iconList=GetIcons(); 292: foreach($iconList as $icon) 293: echo ""; 294: //echo " [ Show Icons ]"; 295: echo " [ Show/Hide Icons ]"; 296: echo " |
"; 299: echo ""; 300: echo " | |
304: Node Enabled 305: : | "; 306: if ($row['nodeenabled']==1) $s=" checked"; 307: else $s=""; 308: echo ""; 309: echo " ".hlink("Node:Enabled"); 310: echo " |
313: Test Schedule 314: : | "; 315: echo "316: echo ""; 317: $sq="SELECT scheduleid,schedulename FROM fnschedule"; 318: $sr=$NATS->DB->Query($sq); 319: while ($sched=$NATS->DB->Fetch_Array($sr)) 320: { 321: if ($sched['scheduleid']==$row['scheduleid']) $s.=" selected"; 322: else $s=""; 323: echo ""; 324: } 325: echo ""; 326: $NATS->DB->Free($sr); 327: echo " ".hlink("Schedule"); 328: echo " |
331: Test Interval 332: : | "; 333: echo " "; 334: echo "Minutes ".hlink("Node:TestInterval"); 335: echo " |
339: Test Due 340: : | ";
341: if ($row['nextrunx']>0) echo nicedt($row['nextrunx']);
342: else echo "Now";
343: echo " "; 344: echo nicenextx($row['nextrunx']); 345: echo " Check ASAP "; 346: echo hlink("Node:CheckASAP",12); 347: echo " |
350: Alerts Active 351: : | "; 352: if ($row['nodealert']==1) $s=" checked"; 353: else $s=""; 354: echo ""; 355: echo " ".hlink("Node:AlertActive"); 356: echo " |
361: Ping Test 362: : | "; 363: if ($row['pingtest']==1) $s=" checked"; 364: else $s=""; 365: echo ""; 366: echo " ".hlink("Node:PingTest"); 367: echo " |
370: Require Ping 371: : | "; 372: if ($row['pingfatal']==1) $s=" checked"; 373: else $s=""; 374: echo ""; 375: echo " ".hlink("Node:RequirePing"); 376: echo " |
381: Node-Side Testing 382: : | "; 383: if ($row['nsenabled']==1) $nodeside=true; 384: else $nodeside=false; 385: if ($nodeside) $s=" checked"; 386: else $s=""; 387: echo ""; 388: echo " ".hlink("Nodeside"); 389: echo " |
Node Key : | "; 395: echo ""; 396: echo " ".hlink("Nodeside:Key"); 397: echo " |
Pull Enabled : | "; 400: if ($row['nspullenabled']==1) $s=" checked"; 401: else $s=""; 402: echo ""; 403: echo hlink("Nodeside:PullEnabled"); 404: echo " |
Pull URL : | "; 407: echo ""; 408: if ($row['nsurl']!="") 409: { 410: $uri=$row['nsurl']."?nodekey=".$row['nskey']."&noupdates=1"; 411: echo " Debug Raw Output"; 412: } 413: echo " ".hlink("Nodeside:URL"); 414: echo " |
Pull Interval : | "; 417: echo ""; 418: echo " Minutes ".hlink("Nodeside:Interval"); 419: echo " |
Push Enabled : | "; 422: if ($row['nspushenabled']==1) $s=" checked"; 423: else $s=""; 424: echo ""; 425: echo hlink("Nodeside:PushEnabled"); 426: echo " |
Push IP : | "; 429: echo ""; 430: echo " ".hlink("Nodeside:URL"); 431: echo " |
Last Data : | "; 434: echo nicedt($row['nslastx'])." - ".dtago($row['nslastx'])." |
Next Pull Due : | "; 439: if ($row['nsnextx']>0) echo nicedt($row['nsnextx'])." - ".nicenextx($row['nsnextx']); 440: else echo "Now"; 441: echo " |
Catalogue : | "; 445: $nsq="SELECT COUNT(nstestid) FROM fnnstest WHERE nodeid=\"".ss($_REQUEST['nodeid'])."\""; 446: $nsr=$NATS->DB->Query($nsq); 447: if ($nsrow=$NATS->DB->Fetch_Array($nsr)) 448: { 449: echo $nsrow['COUNT(nstestid)']." Node-Side Monitors"; 450: } 451: $NATS->DB->Free($nsr); 452: echo " |
Refresh Now : | "; 455: if ($row['nspullenabled']==1) echo "Refresh (Pull) Now"; 456: else echo "Pull Method Disabled"; 457: echo " |
";
464: echo " Cancel Changes";
465: echo " "; 466: echo " |
"; 493: 494: echo ""; 495: if (strlen($row['testparam'])>10) $tp=substr($row['testparam'],0,8).".."; 496: else $tp=$row['testparam']; 497: if ($row['testname']=="") echo lText($row['testtype'])." (".$tp.")"; 498: else echo $row['testname']; 499: echo ""; 500: echo " | "; 501: 502: echo ""; 503: echo " "; 504: echo ""; 505: echo ""; 506: 507: echo " Last Tested: ".dtago($row['lastrunx']).""; 508: echo " |
"; 518: 519: echo ""; 520: if ($row['testname']=="") echo $row['testdesc']; 521: else echo $row['testname']; 522: echo ""; 523: echo " | "; 524: 525: echo ""; 526: echo " "; 527: echo ""; 528: echo ""; 529: 530: echo " Last Tested: ".dtago($row['lastrunx']).""; 531: echo " |
| |
Add Test : | "; 540: echo ""; 555: 556: // one day will do fancy JS option here but for now moved to the edit 557: //echo " "; 558: echo ""; 559: echo ""; 560: 561: echo ""; 562: echo " |
Add Node-side Monitor : | "; 569: echo ""; 579: echo " "; 580: echo " |