Solved

nagios3 and HP switch  ports monitoring

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

830 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