Slack目前支援使用API或是Webhook的方式來發送訊息到指定的Channel中,Cacti只要稍為調整一下tholdhold的程式後,便可以經由Slack來發送告警訊息並且推播到手機中。下面介紹如何透過Slack Webhook的方式來傳送告警訊息。
一、申請好Slack的帳號,在Slack的網站裡面點選進入APP&Custom Integrations ->Build->Make a Custom Integration 新增 Incoming WebHooks,新增想要送的channels,申請完可以取得Webhook URL
(繼續閱讀...)
2018年2月28日
2018年2月2日
Cisco NX-OS CLI - Part2
Cisco IOS CLI | Cisco NX-OS CLI |
---|---|
Configuring a Routed Interface |
interface gigabitethernet 1/1
ip address 192.168.1.1 255.255.255.0
no shutdown
| interface ethernet 1/1
ip address 192.168.1.1/24
no shutdown
|
---|
Configuring a Switched Interface (VLAN 10) |
vlan 10 interface gigabitethernet 1/1
switchport
switchport mode access
switchport access vlan 10
no shutdown
| vlan 10 interface ethernet 1/1
switchport
switchport mode access
switchport access vlan 10
no shutdown
|
---|
Configuring a Switched Virtual Interface (SVI) |
Cisco IOS Software does not have the ability to enable or disable SVI interfaces using the feature command. interface vlan 10
ip address 192.168.1.1 255.255.255.0
no shutdown
| feature interface-vlan interface vlan 10
ip address 192.168.1.1./24
no shutdown
|
---|
Configuring a Switched Trunk Interface |
interface GigabitEthernet 1/1
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 10,20
switchport mode trunk
no shutdown
| interface ethernet 1/1
switchport mode trunk
switchport trunk allowed vlan 10,20
switchport trunk native vlan 2
no shutdown
|
---|
Configuring a Routed Trunk Sub-Interface |
interface gigabitethernet 1/1
no switchport
no shutdown
interface gigabitethernet1/1.10
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0
no shutdown
| interface ethernet 1/1
no switchport
no shutdown
interface ethernet 1/1.10
encapsulation dot1q 10
ip address 192.168.1.1/24
no shutdown
|
---|---|
Cisco NX-OS CLI - Part1
Cisco IOS CLI | Cisco NX-OS CLI |
---|---|
Default User Prompt |
c6500> | n7000# |
---|
Entering Configuration Mode |
c6500# configure terminal | n7000# configure terminal |
---|
Saving the Running Config to the Startup Config (nvram) |
c6500# write memory
or
c6500# copy running-config startup-config
| n7000# copy running-config startup-config |
---|
Erasing the startup config (nvram) |
c6500# write erase | n7000# write erase |
---|
Installing a License |
Cisco IOS Software does not require a license file installation. | n7000# install license bootflash:license_file.lic |
---|
Interface Naming Convention |
interface Ethernet 1/1
interface FastEthernet 1/1
interface GigabitEthernet 1/1
interface TenGigabitEthernet 1/1
| interface Ethernet 1/1 |
---|
Default VRF Configuration (management) |
Cisco IOS Software doesn’t enable VRFs by default. | vrf context management |
---|
Configuring the Software Image Boot Variables |
boot system flash sup-bootdisk:s72033-ipservicesk9_wan-mz.122-33.SXH1.bin | boot kickstart bootflash:/n7000-s1-kickstart.4.0.4.bin sup-1
boot system bootflash:/n7000-s1-dk9.4.0.4.bin sup-1
boot kickstart bootflash:/n7000-s1-kickstart.4.0.4.bin sup-2
boot system bootflash:/n7000-s1-dk9.4.0.4.bin sup-2
|
---|
Enabling Features |
Cisco IOS Software does not have the functionality to enable or disable features. | feature ospf |
---|
Enabling TELNET (SSHv2 is recommended) |
Cisco IOS Software enables TELNET by default. | feature telnet |
---|---|
Configuring the Console Timeout |
line console 0
exec-timeout 15 0
login
| line console
exec-timeout 15
|
---|---|
Configuring the VTY Timeout and Session Limit |
line vty 0 9
session-limit 10
exec-timeout 15 0
login
| line vty
session-limit 10
exec-timeout 15
|
---|
訂閱:
文章 (Atom)