Solved

nagios3 and HP switch  ports monitoring

Posted on 2013-12-22
3
478 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
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 500 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

919 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

20 Experts available now in Live!

Get 1:1 Help Now