SNMP Frontend, fix handling of snmpd down and memory leaks
If snmpd is down, clixon_snmp does not start If snmpd stops, clixon_snmp quits Mem leaks fixed
This commit is contained in:
parent
eb6185c888
commit
6e1c20e873
7 changed files with 269 additions and 108 deletions
|
|
@ -190,6 +190,9 @@ BUSER=clicon
|
|||
|
||||
: ${clixon_snmp_pidfile:="/var/tmp/clixon_snmp.pid"}
|
||||
|
||||
# Temporary debug var, set to trigger remaining snmp errors
|
||||
: ${snmp_debug:=false}
|
||||
|
||||
# Source the site-specific definitions for test script variables, if site.sh
|
||||
# exists. The variables defined in site.sh override any variables of the same
|
||||
# names in the environment in the current execution.
|
||||
|
|
|
|||
|
|
@ -250,7 +250,8 @@ validate_oid $NAME12 $NAME12 "INTEGER" 1
|
|||
new "Get bulk OIDs"
|
||||
expectpart "$($snmpbulkget $OID1)" 0 "$OID2 = INTEGER: -1" "$OID3 = STRING: \"This is not default\"" "$OID4 = Timeticks: (12345) 0:02:03.45" "$OID5 = INTEGER: 48" "$OID6 = Gauge32: 123123123" "$OID7 = INTEGER: 3" "$OID8 = Counter32: 123456" "$OID9 = Counter64: 4294967296" "$OID10 = INTEGER: 1" "$OID11 = Timeticks: (1234567890) 142 days, 21:21:18.90"
|
||||
|
||||
if [ $snmp_debug ]; then
|
||||
snmp_debug=false
|
||||
if $snmp_debug; then
|
||||
new "Test SNMP table netSnmpIETFWGTable"
|
||||
expectpart "$($snmptable $OID13)" 0 "Name1" "Name2"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue