Module that provides basic function to interact to the ntop http 
  server and to get info on the ntop state.
  Others exposed functions allows to cycle through all the hosts 
  currently monitored by ntop.
    |  |  | 
    |  | 
        
          | returnHTTPnotImplemented() send http message code 501  back to the client
 |  |  | 
    |  | 
        
          | returnHTTPversionServerError() send http message code 500  back to the client
 |  |  | 
    |  | 
        
          | printHTMLHeader(title,
        sectionTitle,
        refresh) print the standard ntop header opening an html page to be filled with
      data
 |  |  | 
    |  | 
        
          | printHTMLFooter() print the standard ntop footer closing an html page
 |  |  | 
    |  | 
        
          | sendString(msg) send back to the client the message passed
 |  |  | 
    |  | 
        
          | printFlagedWarning(msg) print a warning message and an image to instruct the users about the 
      problem encountered
 |  |  | 
    | int | 
        
          | getFirstHost(actualDeviceId) retrieve the first host of the list of hosts currently monitored by 
      ntop
 |  |  | 
    | int | 
        
          | getNextHost(actualDeviceId) retrieve the next host of the list of hosts currently monitored by 
      ntop if no first host was previously retrieved get the first host of 
      the list
 |  |  | 
    |  | 
        
          | findHostByNumIP(hostIpAddress,
        vlanId,
        actualDeviceId) retrieve the host corresponding to the parameters passed (if any)
 |  |  | 
    | string @return the current version of ntop | 
        
          | version() retrieve the version of this ntop release
 |  |  | 
    | string @return the name of the OS | 
        
          | os() retrieve the operative system in witch ntop was build
 |  |  | 
    | string @return the time from witch ntop started sniffing | 
        
          | uptime() the current uptime of ntop
 |  |  | 
    | string or None |  | 
    |  | 
        
          | setPreference(key,
        value) set a preference in ntop, as if the user insert a new preference in 
      the html interface
 |  |  | 
    | string | 
        
          | getDBPath() get the current dbPath defined in ntop
 |  |  | 
    | string |  | 
    |  | 
        
          | updateRRDCounter() update the counter of the RRDDatabase specified with the value passed
 |  |  | 
    |  | 
        
          | updateRRDGauge() update the gauge of the RRDDatabase specified with the value passed
 |  |  |