Zabbix – мониторинг загрузки сети и Интернет-канала

zabbixZabbix очень неплохо умеет мониторить канал, ну и оповещать админов о том, что канальчик то проседает. Ну и такие плюшки, как построение графиков, конечно же мы тоже задействуем.

В Инете сейчас кучи статей о том как подключить сервер к системе мониторинга Zabbix. В своем примере я подключу сервер на основе CentOS 5.3, который смотрит мордой вперед и который сам по себе достаточно мощный, но узким местом которого является Интернет-канал.

Подключение сервера

Конфигурирование начнем с создания новой группы серверов. Идем в Configurations→Host groups и нажимаем на кнопку вверху справа Create host group. Я назову группу DemoServers.


После создания группы,- необходимо создать сам хост. Переходим в раздел Configurations → Hosts. Жмем кнопку Create host. В поле IP address или DNS определите внешний IP или DNS-имя по которому Zabbix Server подключится к хосту для получения данных.


В этом же окне откройте вкладку Templates, чтобы подключить к хосту шаблон, по которому для него автоматически создадутся приложения, триггеры, графики и пр. В моем случае, поскольку на хосте стоит ОС Linux, я выберу шаблон Template OS Linux.


Мониторинг сети

В принципе, после этого можно уже открыть графики и увидеть красивые графики сетевой активности на нашем хосте.


Но нас ведь не просто графики интересуют, а оповещение в случае загрузки канала. Для начала определимся с тем, что именно будем мониторить. Поскольку, хост отдает контент – критичным для нас будет отдача трафика на интерфейсе. Если же вы мониторите офисный шлюз, то критичным будет исходящий трафик на интерфейсе(для шлюза он будет входящим), который смотрит в локальную сеть. Для того, чтобы научить наш Zabbix слать оповещения в случае “проседания канала”, нам необходимо создать триггер. Открываем раздел Configuration→Hosts и напротив нашего SuperServer выбираем Triggers. В открывшемся окне жмем Create trigger и заполняем

Name: Inet Channel Overload Out eth0
Expression: {DemoServers.SuperServer:net.if.out[eth0].last(0)}>9437184
Severity: Disaster


Число 9437184 это 9 Мбит/c. (9437184 = 1024*1024*9)

Вот и все, что требовалось сделать. Теперь если загрузка исходящего трафика на интерфейсе eth0 будет больше 9 Мбит/с – нам придет оповещение. А прочитать, как подключить СМС-оповещение к Zabbix можно тут.

25 комментариев к “Zabbix – мониторинг загрузки сети и Интернет-канала

  1. An impressive share, I simply offered this onto an associate who was doing a little analysis on this. And he in fact acquired me morning meal since I discovered it for him. smile. So let me rephrase that: Thnx for the reward! But yeah Thnkx for spending the moment to review this, I feel highly concerning it as well as enjoy finding out more on this subject. Preferably, as you end up being expertise, would you mind updating your blog with more details? It is very handy for me. Huge thumb up for this article!

  2. The following time I check out a blog site, I really hope that it doesn’t dissatisfy me as high as this. I indicate, I know it was my selection to read, but I in fact believed youd have something fascinating to say. All I listen to is a lot of whining about something that you might take care of if you werent also hectic seeking attention.

  3. Wonderful article. I find out something a lot more challenging on various blogs daily. It will constantly be boosting to check out content from other authors as well as practice a little something from their store. I?d favor to make use of some with the material on my blog site whether you don?t mind. Natually I?ll offer you a link on your web blog. Thanks for sharing.

  4. This is the right blog site for any person that wants to find out about this subject. You recognize so much its practically hard to say with you (not that I actually would want?HaHa). You certainly placed a new spin on a topic thats been written about for many years. Wonderful stuff, just excellent!

  5. Great article. I learn something a lot more tough on different blog sites daily. It will certainly constantly be promoting to check out material from other writers and also practice a little something from their store. I?d favor to use some with the content on my blog whether you don?t mind. Natually I?ll give you a web link on your web blog. Many thanks for sharing.

  6. An outstanding share, I just given this onto a colleague that was doing a little evaluation on this. As well as he as a matter of fact got me breakfast because I discovered it for him. smile. So let me reword that: Thnx for the treat! Yet yeah Thnkx for spending the time to review this, I really feel strongly about it and like reading more on this topic. Preferably, as you come to be knowledge, would you mind updating your blog with even more details? It is highly handy for me. Large thumb up for this post!

  7. Great work! That is the kind of information that are meant to be
    shared around the net. Shame on the seek engines for not positioning this publish upper!
    Come on over and talk over with my site .
    Thanks =)

  8. I’m not sure exactly why but this blog is loading very slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  9. This is the appropriate blog site for anyone that intends to find out about this subject. You understand a lot its nearly difficult to say with you (not that I in fact would want?HaHa). You definitely placed a brand-new spin on a topic thats been discussed for many years. Excellent stuff, simply wonderful!

  10. Aw, this was an actually great article. In suggestion I wish to place in writing such as this furthermore? taking some time and also real effort to make a great article? however what can I claim? I procrastinate alot and also never appear to get something done.

  11. This is the best blog for any person that intends to discover this topic. You realize so much its nearly hard to suggest with you (not that I actually would want?HaHa). You most definitely put a new spin on a topic thats been discussed for many years. Fantastic things, simply excellent!

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *