środa, 24 grudnia 2008

check_pgpool - nagios plugin for pgpool-II

check_pgpool.rb - simple nagios plugin to check pgpool nodes status with pcp_node_info. Usefull to monitor are all nodes conneted.


define command {
command_name check_pgpool
command_line $USER1$/check_pgpool.rb $ARG1$


define service {
use generic-service
host_name pool.hostname
service_description PGPOOL1
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 960
notification_period 24x7
check_command check_pgpool!1

1 komentarz:

LCF pisze...

Of course hostname can be argument if we got more then one host with pgpool.