Options
All
  • Public
  • Public/Protected
  • All
Menu

pinus-monitor

Index

Interfaces

Variables

Functions

Variables

info

info: any

Functions

format

  • format(param: PsParam, data: string, cb: Function): void
  • convert serverInfo to required format, and the callback will handle the serverInfo

    api

    private

    Parameters

    • param: PsParam
    • data: string
    • cb: Function

    Returns void

getBasicInfo

  • getBasicInfo(): object
  • get basic information of operating-system

    api

    private

    Returns object

    result

    • [key: string]: string

getPsInfo

  • getPsInfo(param: PsParam, callback: Function): void
  • get the process information by command 'ps auxw | grep serverId | grep pid'

    api

    public

    Parameters

    • param: PsParam
    • callback: Function

    Returns void

getSysInfo

  • getSysInfo(callback: Function): void
  • get information of operating-system

    api

    public

    Parameters

    • callback: Function

    Returns void