Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/1337f65ac0ddae21f7a7 to your computer and use it in GitHub Desktop.
Save dlangille/1337f65ac0ddae21f7a7 to your computer and use it in GitHub Desktop.
CRITICAL - You need more args!!!
webserver is running in a jail on FreeBSD 9.3-RELEASE-p5
This package was compiled via poudriere.
Building from source in the jail solves the problem.
[dan@webserver:/usr/local/libexec/nagios] $ ldd ./check_ping
./check_ping:
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x800828000)
libthr.so.3 => /lib/libthr.so.3 (0x800a33000)
libc.so.7 => /lib/libc.so.7 (0x800c56000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x800fb1000)
[dan@webserver:/usr/local/libexec/nagios] $ ping google.ca
PING google.ca (74.125.226.55): 56 data bytes
64 bytes from 74.125.226.55: icmp_seq=0 ttl=57 time=14.251 ms
64 bytes from 74.125.226.55: icmp_seq=1 ttl=57 time=15.527 ms
^C
--- google.ca ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 14.251/14.889/15.527/0.638 ms
[dan@webserver:/usr/local/libexec/nagios] $ ./check_ping -H news.freshports.org -w 3000.0,80% -c 5000.0,100% -p 1 -4
CRITICAL - You need more args!!!
Could not open pipe:
[dan@webserver:/usr/local/libexec/nagios] $ pkg info -x nagios
nagios-3.5.1_7
nagios-check_smartmon-20100318_1
nagios-plugins-2.0.3_4,1
[dan@webserver:/usr/local/libexec/nagios] $
[dan@webserver:/usr/local/libexec/nagios] $ pkg info nagios-plugins-2.0.3_4,1
nagios-plugins-2.0.3_4,1
Name : nagios-plugins
Version : 2.0.3_4,1
Installed on : Tue Jan 6 18:24:59 UTC 2015
Origin : net-mgmt/nagios-plugins
Architecture : freebsd:9:x86:64
Prefix : /usr/local
Categories : net-mgmt
Licenses : GPLv3
Maintainer : mat@FreeBSD.org
WWW : https://www.nagios-plugins.org/
Comment : Plugins for Nagios
Options :
DBI : off
DNS_BASE : on
DNS_BIND910 : off
DNS_BIND99 : off
DNS_BINDTOOLS : off
EXTRAOPTS : on
FPING : off
IPV6 : on
JAIL : on
LDAP : off
MYSQL : on
NETSNMP : off
NLS : on
PGSQL : on
QSTAT : off
RADIUS : off
SSH_PORTABLE : off
Shared Libs required:
libssl.so.8
libpq.so.5
libmysqlclient.so.18
libintl.so.8
libcrypto.so.8
Annotations :
repo_type : binary
repository : slocum
Flat size : 2.49MiB
Description :
This is a plugin package for Nagios. Quoting from the
main Nagios package:
Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do. It has been
designed to run under the Linux operating system, but works fine under
most *NIX variants as well. The monitoring daemon runs intermittent
checks on hosts and services you specify using external "plugins"
which return status information to Nagios. When problems are
encountered, the daemon can send notifications out to administrative
contacts in a variety of different ways (email, instant message, SMS,
etc.). Current status information, historical logs, and reports can
all be accessed via a web browser.
WWW: https://www.nagios-plugins.org/
[dan@webserver:/usr/local/libexec/nagios] $
@allanjude
Copy link

Works for me in my jail

./check_ping -H news.freshports.org -w 3000.0,80% -c 5000.0,100% -p 1 -4
PING OK - Packet loss = 0%, RTA = 20.61 ms|rta=20.612000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment