Jump to content
Калькуляторы

[РЕШЕНО] Cisco c3750x snmp counters 64bit Не рисует графики выше 100Мбит

РЕШЕНО здесь

 

 

Здравствуйте, имеется:

 

WS-C3750X-12S
12.2(58)SE2

 

Настроено snmp v3, проблема по сабжу. Пробовал snmp v2 - аналогично.

Стата:

 

c3750x#show snmp
Chassis: FDO1629Z1UF
204017 SNMP packets input
   0 Bad SNMP version errors
   86 Unknown community name
   0 Illegal operation for community name supplied
   0 Encoding errors
   255982 Number of requested variables
   0 Number of altered variables
   150970 Get-request PDUs
   10554 Get-next PDUs
   0 Set-request PDUs
   0 Input queue packet drops (Maximum queue size 1000)
203929 SNMP packets output
   0 Too big errors (Maximum packet size 1500)
   0 No such name errors
   0 Bad values errors
   0 General errors
   133 Response PDUs
   0 Trap PDUs
SNMP global trap: disabled

SNMP logging: disabled
SNMP agent enabled

 

Графики в кактусе 64 bit

Edited by a-zazell

Share this post


Link to post
Share on other sites

При создании графиков скорее всего скорость портов была 100 мбит. соответственно кактус создал файл базы с указанием, что данные не могут привышать 100мбит.. и отметает все значения выше, как ошибочные..

Выходов 2:

1)Пересоздать графики с обновлением состояний портов

2)использовать фикс, который меняет скорость портов для уже созданных графиков

Share this post


Link to post
Share on other sites

Графики в кактусе 64 bit

Вы ручками поставили? Если да - верните все в зад, поставьте плагин fix64bit и уже им исправьте ситуацию - он Вам не только исправит шаблон но и rrd файлик подправит.

Share this post


Link to post
Share on other sites

Да, в rrd проблема, на нормальном графике в базе:

 

sh-3.2# rrdtool info c3750x_traffic_in_8575.rrd
...
ds[traffic_in].min = 0,0000000000e+00
ds[traffic_in].max = 1,0000000000e+09
...
ds[traffic_out].min = 0,0000000000e+00
ds[traffic_out].max = 1,0000000000e+09

 

На кривых:

 

ds[traffic_in].min = 0,0000000000e+00
ds[traffic_in].max = 1,0000000000e+07
...
ds[traffic_out].min = 0,0000000000e+00
ds[traffic_out].max = 1,0000000000e+07

 

Пофиксил так:

 

#!/bin/bash

RRASTORE="/usr/share/cacti/site/rra"
MAX="1000000000"
PATTERN="c3750x_traffic"
dsIN="traffic_in"
dsOUT="traffic_out"

ls $RRASTORE | grep $PATTERN | \
while read rrd
do
rrdtool info $rrd | grep traffic | grep max | \
while read ds is value
do
if [ "$value" == "1,0000000000e+07" ];then
rrdtool tune ${RRASTORE}/${rrd} -a ${dsIN}:${MAX}
rrdtool tune ${RRASTORE}/${rrd} -a ${dsOUT}:${MAX}
fi
done
done

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.