Adding Router Alarms

My initial step after installing Zabbix was to start monitoring on of the most important checkpoints of the network. The routers.
First I created three new groups.

Host Groups

Configuration->Hosts->(Choose) Host Groups->Create Group


Then I created two templates, the second nested in the other.

Templates


Configuration->Hosts->(Choose) Templates->Create Template


I created a simple item for basic connectivity checking. What I don’t document, I left as it was.

Items


Configuration->Items->(Choose) Router (Template)->New Item

Description: Simple Ping
Type: Simple Check
Key: icmpping
Type of information: Numeric (64bit)
Update Interval: 180 # Every three minutes will do I think.
Keep history (in days): 20
Keep trends (in days): 356


Screenshot (Click to Enlarge)
zabbix_routers_setupsimple_ping.png

Now the triggers. I initially created two

Triggers

Configuration->Triggers->(Choose) Router (Template)->New Trigger
Description: Router Connection Lost
Expression: {Router:icmpping.last(0)}<1
Severity: High

(Choose) Router.Critical (Template)->New Trigger
Description: Critical Router lost connectivity
Expression: {Router.Critical:icmpping.last(0)}<1
Severity: Disaster

I created an extra trigger for the critical routers specificaly which I’ll use to send Windows Messenger PopUp messages but I only wanted them for severe cases.
zabbix_routers_setuptriggers.png
Now I created a host for each router. The Hosts were IP based and had a descriptive name in the form Router_[Address] where [Adress] was the address of the building the router resided.

Hosts


Configuration->Hosts->(Choose) Hosts->Create Host

Name: Router_Address
Group: Routers # Plus Inodes group or Critical_Routers group depending.
Use IP Address: Check
IP Address: xxx.xxx.xxx.xxx
Link with template: Router # Or Router.Critical


(Screenshot removed temporarily for legal reasons) I also created a test enry pointing to a simple Desktop that I used to test the triggers and actions.
This is what the Overview monitor for the Routers looked like at this point

And Finally I created the actions that would send me an email or WinPopUp each time we lost connection with a router.

Actions


Configuration->Actions->Create Action

Action type: Send Message
Source: Trigger
Conditions: Host group <> “Critical Routers” # The critical routers have their own message
Trigger value = “ON”
Trigger description like “Router Connection Lost” # Important. Don’t use the Trigger= condition, even if the end result looks correct. It uses the specific trigger only so even if the one you chose was the template’s it will not activate when the router goes down.
Send Message to: User Group
Group: Network Administrators
Subject: Lost connection with router {IPADDRESS}
Message: Connection with {HOSTNAME} ({IPADDRESS}) has been lost!

Action type: Send Message
Source: Trigger
Conditions: Trigger description like “Critical Router Lost Connectivity”
Trigger value = “ON”
Send Message to: User Group
Group: Network Administrators
Subject: Attention! Lost connection with Critical Router ({IPADDRESS})
Message: {HOSTNAME} does not respond to ping

Action type: Send Message
Source: Trigger
Conditions: Trigger description like “Router Connection Lost”
Trigger value = “OFF”
Send Message to: User Group
Group: Network Administrators
Subject: Connection restored.
Message: Connection with {HOSTNAME} ({IPADDRESS}) has been restored

zabbix_routers_setupactions.png

You should also create a user for each network administrator and add his email media.

Media


Configuration->General->(Choose) Media Types->New Media

Description: Email
Type: Email
SMTP Server: [Your.SMTP.server]
SMTP Helo: [Your.SMTP.server]
SMTP email: zabbix@yourcompany.com # I used this but you will possibly want to choose you own domain


User Media


(If you haven’t done it before: Configuration->Users->(Choose) Users->New user
OK, this is pretty easy, I’m not going to describe it)

Click on the new users MEDIA link and press Create Media

Type: Email
Send To: [Your@email.address]
Use if Severity: [Choose whatever is appropriate for you]

Finally add this user to the Network Administrators user group if you want him to receive mail from our previous actions.

Done. Now this user will receive mail when Zabbix fails to ping a non-critical router or when the connection is restored. This is what my email looked like this morning. It seems the VPN connections had some problems overnight.
(Screenshot removed temporarily for legal reasons)

Now to set up those WinPopUps

If you liked what you just read, take a chair, grab an  RSS feed and leave a comment. Thanks!


Comments: Comments

Jump to comment form | comments rss [?] | trackback uri [?]

My comments elsewhere

  • Get A Move On Google! (AtheismBeliefGeneral)
    Created Sep 3 last 3 comments, out of 3 Db0 says: Sep 3 at 07:25 AM Sandeep, as it's Open Source I'm certain their license will allow it ;)Adrian, try using a VM Db0 says: Sep 3 at 16:30 PM I was abo. […]
  • Vjack (www.haloscan.com)
    Created Sep 1 last 1 comments, out of 2 Db0 says: Sep 1 at 13:57 PM best of luck mate! add comment
  • αλλαγές στο elkosmas.gr (elkosmas)
    Created Sep 1 last 2 comments, out of 2 Db0 says: Sep 1 at 14:15 PM Ευχαριστώ για το trackback Κοσμά και ελπίζω να σου φαίνεται καλύτερο το hosting. […]
  • Reddit & Readership (AtheismBeliefGeneral)
    Created Aug 25 last 2 comments, out of 8 Db0 says: Aug 28 at 14:02 PM @ThungurKnifur If Adrian is such a spammer, it wouldn't be difficult to figure out who he is in SU from seeing who submitted most. […]
  • Starfish (Waldheri.com)
    Created Aug 31 last 1 comments, out of 1 Db0 says: Aug 31 at 13:51 PM Sounds quite interesting. I may check it out. add comment

Zoulapia

  • 28.08 Quote of the Day: Science contribution

    Quoth Matthew Cob and Jerry Coyne

    You suggest that science may bring about “advances in theological thinking”. In reality, the only contribution that science can make to the ideas of religion is atheism.

    (h/t Pharyngula)

  • 21.08 Quote of the Day: Walking

    Quoth Pat Condell

    Because you see I’m not in the market for a car, any car. I decided to walk. That’s going to take me where I’m going because I’m going where it takes me. And I’ll be happy to get there. In fact, I already am.

    As always it was another excellent vid from Pat, but this particular quote was just brilliant.

  • 15.08 Quote of the Day: Vulnerabilities

    Quoth Anonymous

    The Bible exploits unpatched vulnerabilities in the human mind.

    :D