DESCRIPTION
this is CGI::Ajax based script for pinger landmarks webadmin configuration
SYNOPSIS
pinger monitoring configuration webinterface
first virtual page is to see domains and add/remove/update them,
second virtual page is to add/remove/update nodes of the particular domain
third virtual page is to configure ping test parameters for monitoring of the paricular node/domain
every page is Ajaxed, means its interactively updates webpage while you are entering and its not a multi-page
use "Save" button to save new config in file ( it will effectively update landmarks XML )
AUTHORS
Maxim Grigoriev, maxim@fnal.gov 2007
isParam
returns true if argument string among supported pigner test parameters
otherwise returns undef
fromFile
get landmarks from file into the object
returns 0 if ok or dies
displayResponse
storeSESSION
store current session params
saveConfigs
update XML files ( Template for MP and restart MP daemon)
resetit
reset web interface
displayGlobal
prints global view
arguments:
$TOPOLOGY_OBJ - topology objects tree with domains to be monitored from XML template file
return: $html - HTML string
configre node callback id=configureLink<TMPL_VAR NAME=urn>, $urn
displayNode
prints Node view
arguments:
$node - topology objects tree with node
return: $html - HTML string
updateNode
update Domain Node info
callback for dynamic update on "add" "remove" "update" Ajax calls
updateNodeId
updates node id , port id
updateDomainId
updates domain id and everything inside of domain element ( nodes id , ports id )
findNode
find node by domain urn and nodename or urn
loadConfig
load config and return it as hash ref
manage_proc
check daemon pid and kill it if asked and return one, can be used to restart some process