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_hping_syntcp

Rating
0 votes
Favoured:
0
Current Version
0.03
Last Release Date
2019-12-18
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
4002
Files:
FileDescription
check_hping_syntcpcheck_hping_syntcp
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 script sends 3 TCP SYN pings to a host and compares response flags against "SA", "RA", or different.
SYN ACK = OK, RESET ACK = CRITICAL, other = WARNING
SA [SYN ACK] = OK, RA [RESET ACK] = CRITICAL, other = WARNING

Modified the great original check_hping by Whit Blauvelt (copyright Whit Blauvelt 18 Sept. 2012 - GPL3)
copyright Whit Blauvelt 18 Sept. 2012 - GPL3
copyright Alessandro Cardia 18 Dec. 2019 - GPL3

Usage : check_hping_syntcp DestHost TCPport

hping3 must be installed (e.g. "yum install hping").
The user (e.g. "nagios") must have sudoers permission to run hping3
The port may be any used by a TCP service on the host.

Example:

define command{
command_name check_hping_syntcp
command_line $USER1$/check_hping_syntcp $HOSTADDRESS$ $ARG1$
}

define service{
use generic-service
host_name some-host
service_description TCP port 4602
check_command check_hping_syntcp!4602
contact_groups some-contact-group
}