Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib64 /
nagios /
plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
eventhandlers
[ DIR ]
drwxr-xr-x
check_clamd
61.13
KB
-rwxr-xr-x
check_dig
56.83
KB
-rwxr-xr-x
check_disk
86.26
KB
-rwxr-xr-x
check_ftp
61.13
KB
-rwxr-xr-x
check_imap
61.13
KB
-rwxr-xr-x
check_jabber
61.13
KB
-rwxr-xr-x
check_load
48.39
KB
-rwxr-xr-x
check_mysql
52.91
KB
-rwxr-xr-x
check_mysql_query
48.71
KB
-rwxr-xr-x
check_nntp
61.13
KB
-rwxr-xr-x
check_nntps
61.13
KB
-rwxr-xr-x
check_pop
61.13
KB
-rwxr-xr-x
check_procs
60.99
KB
-rwxr-xr-x
check_simap
61.13
KB
-rwxr-xr-x
check_smtp
69.23
KB
-rwxr-xr-x
check_spop
61.13
KB
-rwxr-xr-x
check_ssmtp
61.13
KB
-rwxr-xr-x
check_swap
44.33
KB
-rwxr-xr-x
check_tcp
61.13
KB
-rwxr-xr-x
check_udp
61.13
KB
-rwxr-xr-x
negate
40.18
KB
-rwxr-xr-x
urlize
35.97
KB
-rwxr-xr-x
utils.pm
2.05
KB
-rw-r--r--
utils.sh
2.73
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : utils.sh
#! /bin/sh STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4 print_revision() { echo "$1 v$2 (nagios-plugins 2.4.9)" printf '%b' "The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugins under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" } support() { printf '%b' "Send email to help@nagios-plugins.org if you have questions regarding use\nof this software. To submit patches or suggest improvements, send email to\ndevel@nagios-plugins.org. Please include version information with all\ncorrespondence (when possible, use output from the --version option of the\nplugin itself).\n" } # # check_range takes a value and a range string, returning successfully if an # alert should be raised based on the range. Range values are inclusive. # Values may be integers or floats. # # Example usage: # # Generating an exit code of 1: # check_range 5 2:8 # # Generating an exit code of 0: # check_range 1 2:8 # check_range() { local v range yes no err decimal start end cmp match v="$1" range="$2" # whether to raise an alert or not yes=0 no=1 err=2 # regex to match a decimal number decimal="-?([0-9]+\.?[0-9]*|[0-9]*\.[0-9]+)" # compare numbers (including decimals), returning true/false cmp() { awk "BEGIN{ if ($1) exit(0); exit(1)}"; } # returns successfully if the string in the first argument matches the # regex in the second match() { echo "$1" | grep -E -q -- "$2"; } # make sure value is valid if ! match "$v" "^$decimal$"; then echo "${0##*/}: check_range: invalid value" >&2 unset -f cmp match return "$err" fi # make sure range is valid if ! match "$range" "^@?(~|$decimal)(:($decimal)?)?$"; then echo "${0##*/}: check_range: invalid range" >&2 unset -f cmp match return "$err" fi # check for leading @ char, which negates the range if match $range '^@'; then range=${range#@} yes=1 no=0 fi # parse the range string if ! match "$range" ':'; then start=0 end="$range" else start="${range%%:*}" end="${range#*:}" fi # do the comparison, taking positive ("") and negative infinity ("~") # into account if [ "$start" != "~" ] && [ "$end" != "" ]; then if cmp "$start <= $v" && cmp "$v <= $end"; then unset -f cmp match return "$no" else unset -f cmp match return "$yes" fi elif [ "$start" != "~" ] && [ "$end" = "" ]; then if cmp "$start <= $v"; then unset -f cmp match return "$no" else unset -f cmp match return "$yes" fi elif [ "$start" = "~" ] && [ "$end" != "" ]; then if cmp "$v <= $end"; then unset -f cmp match return "$no" else unset -f cmp match return "$yes" fi else unset -f cmp match return "$no" fi }
Close