I was using the nagios plugin for haproxy
http://cvs.orion.education.fr/viewvc/viewvc.cgi/nagios-plugins-perl/trunk/plugins/check_haproxy.pl?revision=135&view=markup
my nagios installation version is Nagios Core 3.2.0
in my host config i have declared the service as
define service {
use default-service
host_name server1
service_description HAProxy
check_command check_haproxy!http://url/admin?stats;csv'!user!pass
servicegroups linux}
and my checkcommand.cfg is
# command 'check_haproxy health'
define command {
command_name check_haproxy
command_line perl /etc/nagios3/libexec/check_haproxy.pl -u $ARG1$ -U $ARG2$ -P $ARG3$
}
i have copied the check_haproxy.pl from my download folder to the path mentioned in the checkcommand
on my nagios admin console i see
Current Status: CRITICAL (for 0d 1h 4m 44s)
Status Information: (null)
Performance Data:
and an alert is sent to my email even though the load balancing is working fine,
i am able to run the command from the command line
perl /etc/nagios3/libexec/check_haproxy.pl -u 'http://url/ain?stats;csv' -U user -P pass
HAPROXY OK - din_https (Active: 2/2) wbclus (Active: 2/2) | t=0.135153s;2;10;0; sess_din_https=0sessions;;;0;2000 sess_wbclus=0sessions;;;0;2000
please let me know if i am missing something Received on 2011/05/03 00:23
This archive was generated by hypermail 2.2.0 : 2011/05/03 00:30 CEST