| version 1.1, 2009/11/13 17:55:47 |
version 1.4, 2015/03/25 03:23:07 |
|
|
| check_openbgpd - checks status of OpenBGPd peers |
check_openbgpd - checks status of OpenBGPd peers |
| |
|
| The only real caveat with it is that bgpctl needs rw permission to |
check_openbgpd needs access to run "bgpctl show", this can be accomplished |
| /var/run/bgpd.sock. One way to allow for that is by adding an entry to |
with a restricted socket set up for bgpd(8). |
| /etc/sudoers and then making the check run sudo check_openbgpd. |
|
| |
|
| This is an example of a setup for NRPE. For checks on the machine running |
/etc/rc.conf.local: |
| Nagios, use the _nagios user in /etc/sudoers instead of _nrpe, and of course, |
bgpd_flags="-r /var/www/logs/bgpd.rsock" |
| no ${SYSCONFDIR}/nrpe.cfg. |
|
| |
|
| /etc/sudoers: |
|
| _nrpe ALL=NOPASSWD:${PREFIX}/libexec/nagios/check_openbgpd -w 1000\:300000 -c 100\:500000 -n peer1 peer2 peer3 |
|
| |
|
| ${SYSCONFDIR}/nrpe.cfg: |
${SYSCONFDIR}/nrpe.cfg: |
| command[check_openbgpd]=/usr/bin/sudo ${PREFIX}/libexec/nagios/check_openbgpd -w 1000:300000 -c 100:500000 -n peer1 peer2 peer3 |
command[check_openbgpd]=${PREFIX}/libexec/nagios/check_openbgpd -s /var/www/logs/bgpd.rsock -w 1000:300000 -c 100:500000 -n peer1 peer2 peer3 |
| |
|
| For more information on bgpd(8) see the OpenBSD man page. |
For more information on bgpd(8) see the OpenBSD man page. |
| |
|
| http://www.openbsd.org |
http://www.openbsd.org |
| |
|
| $RedRiver$ |
$AFresh1: README,v 1.2 2009/11/19 18:25:58 andrew Exp $ |