ViewPoint Manual
Sample Custom Status Server
ViewPoint Manual—426801-001
D-5
Custom Server Code
--
-------------------------------------------------------------------------------
INT  .EXT Item ( Zvpt^Status^Item^Def );
 Allocate^Item ( 1,       ! index
        "Process Time", ! description
        "PROCESS-TIME", ! ITEM TYPE
        "<Process-Name>",! object name
        100F,     ! value for 100
        "N",      ! use maximum ?
        "N",      ! reverse signify
        0,       ! scale
        0,       ! low threshold
        90,      ! high threshold
        "N", "Y",    ! low/high threshold enabled
        "BT"     ! type (busy-timer or counter-value)
        );
 Allocate^Item ( 2,       ! index
        "Process Count", ! description
        "PROCESS-COUNT", ! ITEM TYPE
        "<Process-Name>",! object name
        100F,     ! value for 100
        "Y",      ! use maximum ?
        "N",      ! reverse signify
        0,       ! scale
        0,       ! low threshold
        100,     ! high threshold
        "N", "N",    ! low/high threshold enabled
        "CV"     ! type (busy-timer or counter-value)
        );
 Allocate^Item ( 3,       ! index
        "File Name",  ! description
        "FILE-USAGE",  ! ITEM TYPE
        "<Filename>",  ! object name
        100F,     ! value for 100
        "Y",      ! use maximum ?
        "N",      ! reverse signify
        0,       ! scale
        0,       ! low threshold
        70,      ! high threshold
        "N", "Y",    ! low/high threshold enabled
        "CV"     ! type (busy-timer or counter-value)
        );
 Allocate^Item ( 4,       ! index
        "Disk Usage",  ! description
        "DISK-USAGE",  ! ITEM TYPE
        "<Disk Name>",  ! object name
        100F,     ! value for 100
        "Y",      ! use maximum ?
        "N",      ! reverse signify
        0,       ! scale
        0,       ! low threshold
        100,     ! high threshold
        "N", "N",    ! low/high threshold enabled
        "CV"     ! type (busy-timer or counter-value)
        );
 Allocate^Item ( 5,       ! index
        "Disk Largest Free Extent", ! description
        "DISK-LARGEST-FREE", ! ITEM TYPE
        "<Disk Name>",  ! object name
        100F,     ! value for 100
        "Y",      ! use maximum ?
        "N",      ! reverse signify
        0,       ! scale
        0,       ! low threshold
        100,     ! high threshold
        "N", "N",    ! low/high threshold enabled
        "CV"     ! type (busy-timer or counter-value)
        );
 Allocate^Item ( 6,       ! index
        "Disk Fragmentation",  ! description
        "DISK-FRAGMENTATION",  ! ITEM TYPE
        "<Disk Name>",  ! object name
        100F,     ! value for 100
        "Y",      ! use maximum ?










