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
88232
Files:
FileDescription
check_hastats.plPlugin file.
check_hastats.phpTemplate File for 4 Slaves
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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..