summaryrefslogtreecommitdiffstats
path: root/testing/nagios-plugins/001-busybox-tweaks.patch
blob: 4f33c68610cd53bb0c7e0a9b95abb3ab7bc8e9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- ./configure
+++ ./configure
@@ -18517,6 +18517,20 @@
 	{ echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
 echo "${ECHO_T}$ac_cv_ps_command" >&6; }
 
+##########
+# 8/12/10 R. Boisvert added to work with Busybox ps
+elif ps 2>/dev/null | \
+	egrep -i "^PID +USER +TIME +COMMAND" >/dev/null
+then
+	ac_cv_ps_command="$PATH_TO_PS"
+	ac_cv_ps_varlist="&procpid,&procuid,&procpcpu,procprog"
+	ac_cv_ps_format="%d %s %s %s"
+	ac_cv_ps_cols=4
+	{ echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
+echo "${ECHO_T}$ac_cv_ps_command" >&6; }
+# 8/12/10 R. Boisvert added to work with Busybox ps
+##########
+
 elif ps -Al 2>/dev/null | \
 	egrep -i "^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD" >/dev/null
 then
@@ -18750,6 +18764,18 @@
 	{ echo "$as_me:$LINENO: result: $with_ping_command" >&5
 echo "${ECHO_T}$with_ping_command" >&6; }
 
+##########
+# 8/12/10 R. Boisvert added to work with Busybox ping
+elif $PATH_TO_PING -c 1 127.0.0.1 2>/dev/null | \
+	egrep -i "^round-trip|^rtt" >/dev/null
+then
+	with_ping_command="$PATH_TO_PING -c %d %s"
+	ac_cv_ping_packets_first=yes
+	{ echo "$as_me:$LINENO: result: $with_ping_command" >&5
+echo "${ECHO_T}$with_ping_command" >&6; }
+# 8/12/10 R. Boisvert added to work with Busybox ping
+##########
+
 else
 	{ echo "$as_me:$LINENO: WARNING: unable to find usable ping syntax" >&5
 echo "$as_me: WARNING: unable to find usable ping syntax" >&2;}
@@ -19037,7 +19063,12 @@
 	then
 		{ echo "$as_me:$LINENO: checking for nslookup syntax" >&5
 echo $ECHO_N "checking for nslookup syntax... $ECHO_C" >&6; }
-		if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
+##########
+# 8/12/10 R. Boisvert added to work with Busybox nslookup
+# original	if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
+		if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Usage" >/dev/null
+# 8/12/10 R. Boisvert added to work with Busybox nslookup
+##########
 		then
 			ac_cv_nslookup_command="$PATH_TO_NSLOOKUP"
 			{ echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5