RE: [Pound Mailing List] poundctl doesn't detect a dead backend until that backend is needed

Joe Gooch <[email protected]>
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Poundctl doesn’t detect anything, poundctl just shows what Pound has detected, and pound only discovers dead backends when it makes a request, or if you are using HAPort functions (with an appropriate helper script) in the pound config.



Joe


From: van Melis Jean-Pierre [mailto:[email protected]]
Sent: Saturday, June 15, 2013 4:25 AM
To: [email protected]
Subject: [Pound Mailing List] poundctl doesn't detect a dead backend until that backend is needed


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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.