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

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
669
Files:
FileDescription
check_hping_syntcpcheck_hping_syntcp
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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
}