Sorry all for forgetting to change the subject line!!!


-----Oorspronkelijk bericht-----
Afzender: van Melis Jean-Pierre <[email protected]>
Verstuurd: Donderdag 13 Juni 2013 17:19
Aan: [email protected]
Onderwerp: AW: [Pound Mailing List] restarting pound with new config and 
session affinity (dynamically add a backend server)

 

Hi All,

I'm monitoring a lot of stuff with Zabbix and recently I thought of monitoring 
my backends of pound.
One can configure Zabbix to call programs on the computer which is running the 
agent, so I'm calling "poundctl" to count the amount of backends and also the 
ones that are dead

/etc/zabbix/zabbix_agentd.conf now contains these lines

UserParameter=pound.backends.active, sudo poundctl -c 
/var/run/pound/poundctl.socket 2>/dev/null | grep -ci 'Backend .* active'
UserParameter=pound.backends.alive, sudo poundctl -c 
/var/run/pound/poundctl.socket 2>/dev/null | grep -ci 'Backend .* active .* 
alive'
UserParameter=pound.backends.dead, sudo poundctl -c 
/var/run/pound/poundctl.socket 2>/dev/null | grep -ci 'Backend .* active .* 
DEAD'
UserParameter=pound.services, sudo poundctl -c /var/run/pound/poundctl.socket 
2>/dev/null | grep -ci 'Service .* active'
UserParameter=pound.listeners, sudo poundctl -c /var/run/pound/poundctl.socket 
2>/dev/null | grep -ci ' Listener '


All the results in my dashboard corresponds with the output of poundctl

I noticed that poundctl doesn't detect a dead backend until pound has to 
actually handle that backend.
Do I need some additional directives in my config to achieve the result I'm 
after or is it not possible?
Maybe I need to do something else to detect a backend that's down?

The command that I expected to use is:

sudo poundctl -c /var/run/pound/poundctl.socket 2>/dev/null | grep -ci 'Backend 
.* active .* DEAD'



This is the header of my config:

cat /etc/pound/pound.cfg

######################################################################

## global options:

User            "www-data"
Group           "www-data"
#RootJail       "/chroot/pound"

## Logging: (goes to syslog by default)
##      0       no logging
##      1       normal
##      2       extended
##      3       Apache-style (common log format)

LogLevel        3

## check backend every X secs:
Alive           30

## use hardware-accelleration card supported by openssl(1):
#SSLEngine      "<hw>"

# poundctl control socket
Control "/var/run/pound/poundctl.socket"



Reply via email to