Skip to content

Commit

Permalink
fix bad subindent o readme, thanks zepard
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcw committed Apr 22, 2015
1 parent 4f89817 commit 88e3a1a
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ sample outputs :

+ Ok

::
$ check_openbgpd
CHECKBGPCTL OK - All bgp sessions in correct state | 'PEER-1'=529581;;;0
::
$ check_openbgpd
CHECKBGPCTL OK - All bgp sessions in correct state | 'PEER-1'=529581;;;0
Sometimes you have some peer sessions in idle state, and it 's not critical. Typically a session which depends on a slave carp interface. You have an option '--idle-list', the plugin will take care if the session is in this list, and returns an 'OK' state for this session.

Sometimes you have some peer sessions in idle state, and it 's not critical. Typically a session which depends on a slave carp interface. You have an option '--idle-list', the plugin will take care if the session is in this list, and returns an 'OK' state for this session.

::
::
$ check_openbgpd --idle-list PEER-2 OTHER-PEER
CHECKBGPCTL OK - All bgp sessions in correct state | 'PEER-1'=529581;;;0 'PEER-2'=0;;;0 'OTHER-PEER'=0;;;0
Expand All @@ -61,7 +60,7 @@ sample outputs :

+ Critical

Critical state is reached with first idle session not escaped in the optionnal '--idle-list'
Critical state is reached with first idle session not escaped in the optionnal '--idle-list'

::
Expand All @@ -71,28 +70,28 @@ sample outputs :

+ Unknown

if an error occured during the check, the plugin raises a check error, which returns an UNKNOWN state.
f an error occured during the check, the plugin raises a check error, which returns an UNKNOWN state.

typically UNKNOWN causes
+ OpenBGPD is not running
typically UNKNOWN causes

+ OpenBGPD is not running

::
CHECKBGPCTL UNKNOWN - host.domain.tld bgpctl: connect: /var/run/bgpd.sock: No such file or directory

+ you're not in the wheel group, and can't read the bgpctl sosk

::
::
CHECKBGPCTL UNKNOWN - host.domain.tld bgpctl: connect: /var/run/bgpd.sock: Permission denied
CHECKBGPCTL UNKNOWN - host.domain.tld bgpctl: connect: /var/run/bgpd.sock: Permission denied

sudo is your friend to run this plugin with an unprivileged user. A sample config here
sudo is your friend to run this plugin with an unprivileged user. A sample config here

::
icinga ALL = NOPASSWD: /usr/local/bin/check_openbgpd
icinga ALL = NOPASSWD: /usr/local/bin/check_openbgpd


Install
------------
Expand Down

0 comments on commit 88e3a1a

Please sign in to comment.