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

4D Server

Current Version
1.0
Last Release Date
2012-03-12
Compatible With
  • Nagios 3.x
Website
License
MIT
Hits
73705
Files:
FileDescription
check_4DServer.phpcheck_4DServer.php
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!
check if 4D Server is alive
for 4D Server v12 or newer (should be compatible with v11, but not tested)

tries to access 4D Server using UDP and checking answer. (correct answer contain computer and database name)

if OK returns as Nagios answer OK + computer and database name

Usage: check_4DServer.php 192.168.0.10 19813
For testing if 4D Server is alive please only use UDP access, not trying TCP (as another Nagios plugin is doing, this may overload the server).

4D Server provides a service for such tests, if it receives a 96 Byte UDP package, with 32 times chr(0), then "4D Server II" (filled up to 32 bytes) and 32 times chr(0), it answers with a 96 Byte package, filling the first last last part with computer name and database name.

This service allows to check if 4D Server is alive and accepting Client connections. If there is no answer or the answer is not correct, this script will return Critical, else OK with the received names.
Reviews (1)
byTera-Two, April 23, 2015
Good job man, it works very well for me on with a 4D V12.5 server.
Do you know how we could modify it to work if the 4D Database is not published ?