Немножко багует на некоторых моделях. Опишу на выходных.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu#!/bin/bash
res=`ping -c 1 -W 1000 $1 | awk '/time=/{print $7}' | sed 's/time=//g'`
if [ "$res" > "0" ]
then echo $res
else
echo "0"
fi
QuoteExternalParameter = Ping(*):sh /usr/scripts/ping.sh $1
QuoteCannot get current parameter value: Communication failure
Quotesnmpwalk -v 1 -c syslog 192.168.1.200 .1 > c:\ubi.txt
QuoteНе разрешается событие падения автоматически.
[12.11.2012 10:30:28] **** Poll request sent to server ****
[12.11.2012 10:30:28] Poll request accepted
[12.11.2012 10:30:28] Starting status poll for node N_Omskaya_64_3p
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/2
[12.11.2012 10:30:28] Finished status poll on interface 1/1
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/1
[12.11.2012 10:30:28] Checking SNMP agent connectivity
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/4
[12.11.2012 10:30:28] Starting status poll on interface 1/5
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/4
[12.11.2012 10:30:28] Finished status poll on interface 1/3
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/3
[12.11.2012 10:30:28] Finished status poll on interface 1/2
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/5
[12.11.2012 10:30:28] Starting status poll on interface 1/6
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/7
[12.11.2012 10:30:28] Finished status poll on interface 1/6
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Finished status poll on interface 1/7
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/9
[12.11.2012 10:30:28] Finished status poll on interface 1/8
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Starting status poll on interface 1/8
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/9
[12.11.2012 10:30:28] Starting status poll on interface 1/10
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/10
[12.11.2012 10:30:28] Starting status poll on interface 1/11
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/11
[12.11.2012 10:30:28] Starting status poll on interface 1/12
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/12
[12.11.2012 10:30:28] Starting status poll on interface 1/13
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/13
[12.11.2012 10:30:28] Starting status poll on interface 1/14
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/14
[12.11.2012 10:30:28] Starting status poll on interface 1/15
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/15
[12.11.2012 10:30:28] Starting status poll on interface 1/16
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/16
[12.11.2012 10:30:28] Starting status poll on interface 1/17
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:28] Retrieving interface status from SNMP agent
[12.11.2012 10:30:28] Interface status retrieved from SNMP agent
[12.11.2012 10:30:28] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:28] Interface status after poll is NORMAL
[12.11.2012 10:30:28] Finished status poll on interface 1/17
[12.11.2012 10:30:28] Starting status poll on interface 1/18
[12.11.2012 10:30:28] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/18
[12.11.2012 10:30:29] Starting status poll on interface 1/19
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/19
[12.11.2012 10:30:29] Starting status poll on interface 1/20
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/20
[12.11.2012 10:30:29] Starting status poll on interface 1/21
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/21
[12.11.2012 10:30:29] Starting status poll on interface 1/22
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/22
[12.11.2012 10:30:29] Starting status poll on interface 1/23
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/23
[12.11.2012 10:30:29] Starting status poll on interface 1/24
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/24
[12.11.2012 10:30:29] Starting status poll on interface 1/25
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/25
[12.11.2012 10:30:29] Starting status poll on interface 1/26
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/26
[12.11.2012 10:30:29] Starting status poll on interface 1/27
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/27
[12.11.2012 10:30:29] Starting status poll on interface 1/28
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
[12.11.2012 10:30:29] Finished status poll on interface 1/28
[12.11.2012 10:30:29] Starting status poll on interface 802.1Q Encapsulation Tag 0001
[12.11.2012 10:30:29] Current interface status is NORMAL
[12.11.2012 10:30:29] Retrieving interface status from SNMP agent
[12.11.2012 10:30:29] Interface status retrieved from SNMP agent
[12.11.2012 10:30:29] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:29] Interface status after poll is NORMAL
...
[12.11.2012 10:30:33] Starting status poll on interface System
[12.11.2012 10:30:33] Current interface status is NORMAL
[12.11.2012 10:30:33] Retrieving interface status from SNMP agent
[12.11.2012 10:30:33] Interface status retrieved from SNMP agent
[12.11.2012 10:30:33] Interface is NORMAL for 16 polls (1 poll required for status change)
[12.11.2012 10:30:33] Interface status after poll is NORMAL
[12.11.2012 10:30:33] Finished status poll on interface System
[12.11.2012 10:30:33] Node is connected
[12.11.2012 10:30:33] Finished status poll for node N_Omskaya_64_3p
[12.11.2012 10:30:33] Node status after poll is CRITICAL
[12.11.2012 10:30:33] **** Poll completed successfully ****
Quote[Normal] N_Industrialnaya_14_str11 MAC notification. (1.3.6.1.4)вывод в traps log
Quote24.10.2012 11:27:04 192.168.7.9 N_Industrialnaya_14_str11 .1.3.6.1.4.1.171.11.63.6.2.20.0.2 .1.3.6.1.2.1.1.3.0 == '89024'; .1.3.6.1.6.3.1.1.4.1.0 == '.1.3.6.1.4.1.171.11.63.6.2.20.0.2'; .1.3.6.1.4.1.171.11.63.6.2.20.2.1 == '1.3.6.1.4'вывод в traps log с varbind conversation 1
Quote17.10.2012 16:12:59 192.168.7.9 N_Industrialnaya_14_str11 .1.3.6.1.4.1.171.11.63.6.2.20.0.2 .1.3.6.1.2.1.1.3.0 == '5461878'; .1.3.6.1.6.3.1.1.4.1.0 == '.1.3.6.1.4.1.171.11.63.6.2.20.0.2'; .1.3.6.1.4.1.171.11.63.6.2.20.2.1 == '01 31 2E 33 2E 36 2E 31 2E 34 '
//
Quotesyntax error, unexpected '/', expecting $endхотя на
/* В конце*/