Zabbix 3.0 Monitoring Switch (4)-temperature, fan monitoring and configuration trigger

Source: Internet
Author: User
Tags snmp snmp oid

The key to monitoring the CPU and memory of the switch is to find the correct OID, please refer to the following blog post for how to find the OID.

http://tryrus.blog.51cto.com/10914693/1788833

Before looking at this blog post please make sure that you have an understanding of the basic operation of Zabbix, there is no clear place to read my previous blog post.

http://tryrus.blog.51cto.com/10914693/1772271

http://tryrus.blog.51cto.com/10914693/1782062

First, configure the environment

CentOS 7 Linux version 3.10.0-229.el7.x86_64

Zabbix-3.0.1

C2960s-universalk9-mz.122-55.se5.bin

C2960s-universalk9-mz.122-55.se3.bin

C3750e-universalk9-mz.122-55.se5.bin

Second, temperature monitoring and configuration trigger

2.1 oid to be used

Serial number

Oid

Model

Ios

1

.1.3.6.1.4.1.9.9.13.1.3.1.3.1008

Ws-c2960s-48ts-l

2

ws-c2960s-24ts-l

3

.1.3.6.1.4.1.9.9.13.1.3.1.3.1006

Ws-c3750x-24

C3750e-universalk9-mz.122-55.se5.bin

2.2 Create Item

Because the OID of different iOS is slightly different, create the item directly above the switch type template, as shown in.

Name,key these two values can be filled in casually, but it is better to be like me, can be very intuitive to know what this item is monitored

TYPE:SNMP v2 Version

SNMP OID: the corresponding OID

SNMP Community: The corresponding SNMP read group word

Units: Unit of temperature ℃

The other options are default, and the last item description fills in the description when looking up the OID on the Cisco website. Click Add to complete the creation of the item.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/DA/wKiom1dic-mw38mJAAC1xZWDEKY031.jpg "/>

2.3 Create graph

In the switch type template, create graph as shown in.

Fill in the graph's name, add the items you just created in the Items option, click the bottom add, and complete the graph creation.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/82/D9/wKioL1didP6TZ_9WAACbZsOP0_w538.jpg "/>

2.4 Verifying graph

Select a switch in Monitoring-->graphs, and view the temperature Status as shown in.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/DA/wKiom1dic-mjivJnAADL3fEP9Kk372.jpg "/>

2.5 Creating trigger

Also create trigger in the switch type template so that all switches under the same type will add this trigger.

Create the trigger as shown in.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/82/D9/wKioL1didP-Q45NAAAC-RDNK15I617.jpg "/>

What is important here is that the expression, that is, the Zabbix should use the trigger (Trigger) to alert the user, let the user know the switch temperature anomalies. Click Add after expression to add the expressions, as shown in.

Item : Choose Ciscoenvmontemperaturestatusvalue this item here.

Function : Refers to a function, has a drop-down list, and selects an average greater than n from the drop-down list.

Last of (T) : 3m, average in the last three minutes

N : 30 Here fill 30, mean 30 ℃, Celsius can not write.

The last expression is {ws-c2960s-48ts-l:ciscoenvmontemperaturestatusvalue.avg (3m)}>30

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/82/D9/wKioL1did3TR8Qh9AACXxP7qybM425.jpg "title=" TEM5. JPG "alt=" Wkiol1did3tr8qh9aacxxp7qybm425.jpg "/>

Click Add at the bottom of the Create triggers interface to complete the trigger creation.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/82/DA/wKiom1didoSxFh7JAAJrqIjVhCM830.jpg "title=" tem9. JPG "alt=" Wkiom1didosxfh7jaajrqijvhcm830.jpg "/>

You can refer to the following two documents for detailed usage and function of the expression.

Https://www.zabbix.com/documentation/3.0/manual/config/triggers/expression

Https://www.zabbix.com/documentation/3.0/manual/appendix/triggers/functions

2.6 Verify Trigger

Trigger when the configuration is complete, it takes effect immediately. After a minute or so, my email received the OK message as shown, stating that the configuration was correct.

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/82/D9/wKioL1did8XjanspAAC7z5Bf4ZA328.jpg "title=" Tem7. JPG "alt=" Wkiol1did8xjanspaac7z5bf4za328.jpg "/>

Third, fan monitoring and configuration trigger

3.1 the OID to use

1.3.6.1.4.1.9.9.13.1.4.1.3.1007

1.3.6.1.4.1.9.9.13.1.4.1.3.1034

Two types of 2960 switches, the OID of the fan is the same, 3750 of the OID even if the same version of iOS is also different, so the actual test will prevail.

3.2 Create Item

As with the create temperature item, the item is created in the switch type template, but the fan item does not need to be filled in units. The other options are default, and the last item description fills in the description when looking up the OID on the Cisco website. Click Add to complete the creation of the item.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/82/DA/wKiom1diduLQaSOBAAD8Sy-AihM102.jpg "style=" float: none; "Title=" Fan1. JPG "alt=" Wkiom1didulqasobaad8sy-aihm102.jpg "/>

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/82/D9/wKioL1did_exCJCQAAELBm42xe4860.jpg "style=" float: none; "Title=" fan2. JPG "alt=" Wkiol1did_excjcqaaelbm42xe4860.jpg "/>

There are several values for the fan, 1 means the fan is normal, and several others indicate an abnormal condition.

1:normal

2:warning

3:critical

4:shutdown

5:notpresent

6:notfunctioning


3.3 Create graph

In the switch type template, create graph as shown in.

Fill in the graph's name, add the items you just created in the Items option, click the bottom add, and complete the graph creation.

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/82/DA/wKiom1did8TBkrRoAAE690zFzPI662.jpg "title=" fan3. JPG "alt=" Wkiom1did8tbkrroaae690zfzpi662.jpg "/>

3.4 Verifying graph

Select a switch in Monitoring-->graphs, and view the temperature Status as shown in.

The fan is in normal operation, so the value is always 1.

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/82/D9/wKioL1dieQTTkuMVAAMWXmkqUcE768.jpg "title=" Fan4. JPG "alt=" Wkiol1dieqttkumvaamwxmkquce768.jpg "/>

3.5 Creating trigger

Also create trigger in the switch type template so that all switches under the same type will add this trigger.

Create the trigger, and click Add after expression to add expressions, as shown in.

Note that the function is configured with a normal value of 1 and the other case is not 1. When not in normal circumstances, choose to let Zabbix alarm.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/DA/wKiom1dieCmw4ypiAACI0kHlNE4523.jpg "title=" fan5. JPG "alt=" Wkiom1diecmw4ypiaaci0khlne4523.jpg "/>

After adding complete as shown, click on the bottom of add to complete the creation of trigger.

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/82/DA/wKiom1dieE2DEBRCAAE2_eR16Cw263.jpg "title=" fan6. JPG "alt=" Wkiom1diee2debrcaae2_er16cw263.jpg "/>

3.6 Verifying Trigger

Trigger when the configuration is complete, it takes effect immediately. After a minute or so, my email received the OK message as shown, stating that the configuration was correct.

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/82/DA/wKiom1dieIDB6AJoAACaQwsXTK8357.jpg "title=" fan7. JPG "alt=" Wkiom1dieidb6ajoaacaqwsxtk8357.jpg "/>

Thank you for opening this blog post, and always adhere to see here, if you feel helpful, please do not skimp on the lower right corner of the praise.


This article is from the "Bit Technology" blog, please be sure to keep this source http://tryrus.blog.51cto.com/10914693/1790010

Zabbix 3.0 Monitoring Switch (4)-temperature, fan monitoring and configuration trigger

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.