ldap1_connection: add a white space after the port number (389) to avoid ports like "38965" …
This commit is contained in:
parent
41d1aa41bf
commit
204283417d
|
@ -7,13 +7,13 @@
|
|||
# List LDAP connections without:
|
||||
# LISTEN
|
||||
# 129.20.123.1 server
|
||||
ss_cmd=$(ss -laputen | grep ":389" | grep -v 129.20.123.1 | grep -v LISTEN)
|
||||
ss_cmd=$(ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN)
|
||||
|
||||
# email recipient
|
||||
mail_recip="jeremy.gardais@univ-rennes1.fr"
|
||||
|
||||
if [ "${ss_cmd}" ]; then
|
||||
ss -laputen | grep ":389" | grep -v 129.20.123.1 | grep -v LISTEN | mail -s "LDAP1 connections" "${mail_recip}"
|
||||
ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN | mail -s "LDAP1 connections" "${mail_recip}"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue