?
Solved

nagios3 and HP switch  ports monitoring

Posted on 2013-12-22
3
Medium Priority
?
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Expert Comment

by:acbxyz
ID: 39739406
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
ID: 39741340
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 2000 total points
ID: 39763348
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

771 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