Home‎ > ‎unix/linux‎ > ‎Monitoring / Internet Based Tools‎ > ‎Cacti‎ > ‎Custom Monitoring‎ > ‎

Single new OID to monitor




Create a host like normal, but don't use a host template (since you have not created one yet)



Create a data template


:: Console :: Templates :: Data Template :: Add
! Data Templates:    
    name = Endrun-GPS-stratum
! Data Source:
    Name = [host_description] - stratum
    Data Input Method = Get SNMP Data
    Associated RRA'a = daily, weekly, monthy, yearly
    Step = 300 (sec = 5min)
! Data Source Item: 
    Internal Data Source Name = stratum
    Minimum Value = 0 
    Maximum Value = U
    Data Source Type = GAUGE
    Heartbeat = 600
<create>
! Custom Data: 
    OID = .1.3.6.1.4.1.13827.6.0.10.0
<save>

Create a Host Template

 
:: Console :: Templates :: Host Template :: Add
! host Templates 
    name = Endrun-GPS
<create> 
<save>    


Create a Graph Template: 

Create the basic template


:: Console :: Templates :: Graph Template :: Add
! Template 
    Name = endrun-gps-stratum
! Graph Template 
    Title = [host_description] - Stratum
    Image Format = png
    Height = 150
    Width = 600
    Slope Mode = <check>
    Auto Scale = <check>
    Auto Scale Options = Use --alt-autoscale-max
    Auto Padding = <check>
    Allow Graph Export = <check>
    Lower Limit = 0 
    Base Value = 1000
    Vertical Label = stratum
<save>

Template Items: 


! Graph Template Items: 
    <add>
! Graph Template Items: 
    Data Source: Endrun-GPS-stratum - (stratum)
    Color = AFECED
    Opacity = 100%
    Graph Item Type = LINE1
    Consolidation Function = AVERAGE
    Text Format = Stratum Level
<save>
! Graph Template Items: 
    <add>
! Graph Template Items: 
    Data Source: Endrun-GPS-stratum - (stratum)
    Color = None
    Graph Item Type = GPRINT
    Consolidation Function = LAST
    GPRINT Type = Exact Numbers
    Text Format = Current
<save>
! Graph Template Items: 
    <add>
! Graph Template Items: 
    Data Source: Endrun-GPS-stratum - (stratum)
    Color = None
    Graph Item Type = GPRINT
    Consolidation Function = MAX
    GPRINT Type = Exact Numbers
    Text Format = Max:
<save>

Item Inputs


! Graph Item Inputs: 
    <add>
! Graph Item Inputs: 
    Name = Data Source [stratum] 
    Field Type = Data Source
    Associated Graph Items: Item #1 (AVERAGE), Item #2: GPRINT (LAST), Item #3: GPRINT (MAX)
<save>
! Graph Item Inputs: 
    <add>
! Graph Item Inputs: 
    Name = Legend Color
    Field Type = Color
    Associated Graph Items: Item #1 (AVERAGE)
<save>


Add the New Graph


:: Console :: Create :: New Graphs :: 
! Graph Templates
    Create = endrun-gps-stratum
<create>
! Graph Items
    Legend Color = AFECED
! Data Source
    Name = [host_description] - stratum
! Custom Data
    OID = .1.3.6.1.4.1.13827.6.0.10.0
<create>







Comments