Skip to content

ArnesSI/nagios-bgp-ipv6-cisco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nagios-bgp-ipv6-cisco

Check status of IPv6 BGP peers on a Cisco IOS device

This script will login to a Cisco IOS router return the status of IPv6 BGP peers.

Requirements

If you are using pip, the following command will install all requirements:

pip install netmiko pynag

Command line options

    -H HOST               Host to connect to (default: localhost)
    -l USERNAME           Username to login with
    -p PASSWORD           Password to login with
    --html                Colorize Nagios summary output

This check runs the command show bgp ipv6 unicast neighbors on the router.

Icinga or Nagios configuration

This check needs login credentials to login to a router. It is recommended that you store this info in the resource.cfg file.

Define a check command:

define command {
                command_name                          check_bgp_ipv6_cisco
                command_line                          $USER10$/check_bgp_ipv6_cisco.py -H $ARG1$ -l $USER21$ -p $USER22$ --html
}

Use the command in a service or host definition:

define service {
                host_name               myrouter
                service_description     bgp peers ipv6
                check_command           check_bgp_ipv6_cisco!$HOSTADDRESS$
}

About

Check status of IPv6 BGP peers on a Cisco IOS device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages