Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

nagios3 and HP switch  ports monitoring

Posted on 2013-12-22
3
Medium Priority
?
522 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

650 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