Solved

nagios3 and HP switch  ports monitoring

Posted on 2013-12-22
3
477 Views
Last Modified: 2014-01-13
I have a NAgios 3 under debian linux.
I want to monitor my main HP Switch ports.But i very new with NAGIOS.

can some one help me to configure HP switch ports monitor?
step guide preciate
Thanks
0
Comment
Question by:apollo-13
  • 2
3 Comments
 
LVL 10

Expert Comment

by:acbxyz
Comment Utility
Is your HP switch snmp capable? That would be the easiest way to check.
What do you want to monitor? Just link yes/no, the interface speed and duplex setting? Or the real throughput.

In the latter case I'd advice nagios is just an ok/warning/critical-system and something like http://oss.oetiker.ch/mrtg/ would be the better choice.
0
 

Author Comment

by:apollo-13
Comment Utility
Is your HP switch snmp capable? -yes
What do you want to monitor? --HP switch uplinks want to monitor
0
 
LVL 10

Accepted Solution

by:
acbxyz earned 500 total points
Comment Utility
Here are some configuration snippets from our configuration:
# commands.cfg
define command{
    command_name    check_snmp          ;
    command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -P 1 -C $ARG1$ -o $ARG2$ $ARG3$
}

define host{
    use                     switch-rz               ;
    host_name               switch00-61             ;
    alias                   My Switch alias     ;
    address                 10.1.1.61              ;
}

define service{
    use                     switch-snmp-link        ;
    host_name               switch00-61             ;
    service_description     port47_link             ;
    check_command           check_snmp!public!.1.3.6.1.2.1.2.2.1.8.47!-c 1
}
define service{
    use                     switch-snmp-link        ;
    host_name               switch00-61             ;
    service_description     port48_link             ;
    check_command           check_snmp!public!.1.3.6.1.2.1.2.2.1.8.48!-c 1
}

Open in new window


switch-rz is a host template to consolidate some settings for multiple host definitions,
see below. Same for switch-snmp-link
The host_name in service-commands can take a comma separated list of multiple host names. This line can be combined or replaced by a hostgroup_name, taking one or more hostgroups.

1.3.6.1.2.1.2.2.1.8 is the snmp od for operational state. It is 1 if up and 2 if down. With -c 1 the plugin returns critical if the result is greater than 1, means down.

Here are some additional configuration parts, not really necessary for the question, but maybe useful. If you c&p the "use ..." above, you need these, too.
define hostgroup{
    hostgroup_name          switch-rz               ;
}

define host{
    use                     generic-host            ;
    name                    switch-rz               ;
    register                0                       ;
    icon_image_alt          Switch                  ;
    icon_image              logo/switch.png         ;
    statusmap_image         logo/switch.png         ;
    hostgroups              switch-rz               ;
}

define servicegroup{
    servicegroup_name       switch-snmp
}

define servicegroup{
    servicegroup_name       switch-link
}

define service{
    use                     generic-service         ;
    name                    switch-snmp-link        ;
    register                0                       ;
    servicegroups           switch-link,switch-snmp ;
}

Open in new window


PS: the semicolon at the end of most lines are for auto-indent in my editor, you can omit them if you want.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now