Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_hastats

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2011-12-01
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
License
GPL
Hits
87898
Files:
FileDescription
check_hastats.plPlugin file.
check_hastats.phpTemplate File for 4 Slaves
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin checks the HA Proxy Node Statistics and provides performance values...
The plugin is created with PERL and requires that you know your HAproxy configurations. The check_hastats can read the HAProxy Stats and provide performance output accordingly. First, modify the $specific_line variable by providing the name of the haproxy Web-farm name. (For Example: In the following haproxy.cfg listen section, the tomcatfarm is the Web-farm name)
listen tomcatfarm www.mywebsite.com:80

The plugin reads the haproxy status information in csv format.. You may need to enable a http listener port in order to read HA.Proxy stats..

The Syntax for the plugin is as follows...
check_hastats.pl [servername]:[port] [warn] [critical]

[servername] - The IP address or domain of the HAproxy
[port] - The port number its listening on (works on if enabled)
[warn] - The warning level for the concurrent connections.
[critical] - The critical level for the concurrent connections.

The plugin writes to the /tmp/inha.stats and deletes it soon after. Appreciate your feedback..