PingSTAT v2.03 /Linux



1.    
2.    
3.  
4.  
5.  
  5.1. 
  5.2. 
  5.3. 
  5.4. ,  
  5.5.  web-
  5.6.    SNMP
6.  


1.    

 PingSTAT      UDP ,     ("") PING1  PING2  Equicom (http://www.equicom.dp.ua).   web-,           :   (PING1/PING2),    ,    ,    ,   (     ).              ,    . 

               SNMP v1, v2.            ,        SNMP.

      (:     ,     ,     )  ,            .          , ,    log-,    e-mail  SMS   ,     ,  SNMP Trap   ..

     .


2.    

       - ,           .     " ",  Equicom           ,     -          ,     .          .       .


3.  

        :

Linux x32 (  Ubuntu-11.04, Mint-11, openSUSE-11.4)
Linux x64 (  Ubuntu-11.04)
Linux CentOS x32 (  CentOS-5.7)
Linux CentOS x64 (  CentOS-5.7)


4.  

  pinfstat2.02.tar.gz   :

run_pingstat.sh -    
pingstat -       
pingstatd -       
pingstat.conf -  
pingstat.html.tpl -   web-
pingstat.sh - ,      
mailer -       
mailer.txt -    mailer
sms_dead.txt  sms_alive.txt -      mailer
ReadMe_utf-8.txt -     utf-8
ReadMe_KOI-8.txt -     KOI-8
/lib/ -   ,    
/etc/snmp/pingstat.conf -  ,    
                          READ COMMUNITY,     
                            SNMP
/etc/snmp/snmp.conf -  ,    
                       SNMP
pingstat.mib - mib 


5.  

5.1. 

          ,    /lib/   .     /etc/snmp/        /etc/snmp/ (  ,   ).


5.2. 

       pingstat.conf,      .       ,    .       ,        .

      ,    /etc/snmp/pingstat.conf        READ COMMUNITY,        SNMP.       "com2sec"    .

 ,      ,     :

Dst MAC -  MAC    ,     .   PING1  PING2     ARP,      .

Dst IP -  IP  ,     PingSTAT.     IP      Dst MAC,       ,    . ,          Dst MAC     Dst IP.

Src IP -         IP           Dst IP.


5.3. 

     run_pingstat.sh              ,    .    ,    run_pingstat.sh      pingstat (    )   pingstatd (    ).

      -      .        pingstat.conf   . 

 ,    ,     <ctrl>+c.      ,        "killall pingstatd".


5.4. ,  

     (     pingstat.conf):

-  N    ( "Timer")
-        Ping_warning_timeout (
  "Warning")
-        Ping_timeout ( "Dead")
-      ( "Alive")
-    ( "BitX",  X = 0..7)
-     MinTemp ( "MinTempError")
-     -      MinTemp
  ( "MinTempOk")
-     MaxTemp ( "MaxTempError")
-     -      MaxTemp
  ( "MaxTempOk")

      pingstat.sh,   21   -       ,    .      ,        :    ,  log-,   SMS,  SNMP Trap .          .

       ,            "Alive".


5.5.  web-

     web- ping.html,        pingstat.html.tpl.     html  ,         .       css-    :

.bit1 -      
.bit0 -      
.bit_disabled -     
.Live -  ,      
.Warning -  ,       
           ( "Warning")
.Dead    -  ,      
           ( "Dead")
.TemperatureStateOk    -      
.TemperatureStateError -      
.temperature_disabled  -      
                         


5.6.    SNMP

         SNMP v1, v2 ( ).        ,     .     SNMP ,     UDP  161.

   OID    pingstat.mib       iso.org.dod.internet.private.enterprise.equicom.pingstat (1.3.6.1.4.1.35160.2)

      Read Community,     /etc/snmp/pingstat.conf     - public

  OID:

.1.3.6.1.4.1.35160.2.2.0 - numberOfPingers (Integer32)
                              

.1.3.6.1.4.1.35160.2.3.0 - uptimeSeconds (Integer32)
                                

.1.3.6.1.4.1.35160.2.4.0 - programVersion (DisplayString)
                            

   OID: x -   (1..numberOfPingers)

.1.3.6.1.4.1.35160.2.1.1.2.x - ip (IpAddr)
                               IP  

.1.3.6.1.4.1.35160.2.1.1.3.x - address (DisplayString)
                                  ( )

.1.3.6.1.4.1.35160.2.1.1.4.x - description (DisplayString)
                                 

.1.3.6.1.4.1.35160.2.1.1.5.x - state (Unsigned32 (0..2))
                                : 
                               0-OK, 1-Warning, 2-Dead

.1.3.6.1.4.1.35160.2.1.1.6.x - lastTime (Unsigned32)
                                   (  
                                 01.01.1970,    
                                     
                               date -d @<lastTime>).
                                      ,
                               lastTime=0.      
                               ,    SNMP,
                                 .

.1.3.6.1.4.1.35160.2.1.1.7.x - averageTime (Unsigned32)
                                    .

.1.3.6.1.4.1.35160.2.1.1.8.x - ax (Unsigned32 (0..255))
                                 AX (  )
                                 

.1.3.6.1.4.1.35160.2.1.1.9.x - dx (Unsigned32 (0..255))
                                 DX (  )

.1.3.6.1.4.1.35160.2.1.1.10+b.x - bit<b> (Unsigned32 (0..1))
                                   b (0..7)   DX

.1.3.6.1.4.1.35160.2.1.1.18.x - temperature (Integer32)
                                   0,1 ,
                                  AX ( ,  
                                html )

.1.3.6.1.4.1.35160.2.1.1.19.x - temperatureState (Integer32 (0..2))
                                :
                               0: temperature < MinTemp
                               1: MinTemp <= temperature <= MaxTemp
                               2: temperature > MaxTemp


6.  

v2.03
------
     web-      SNMP  1  numberOfPingers (  2.02   0  numberOfPingers-1)


v2.02
------
        SNMP

 ,       

     pingstat.sh   N    ( "Timer")

    21  (  )

    :             - "Alive" (       )


v2.01
------
  pingstat.conf   Log_name

  ping.html.tpl   .temperature_disabled

           

  

   pingstat.conf  pingstat.sh

    mailer


v2.0
------
 

