I want to monitor a netstat command as follows:
# netstat -Aan|grep 4800|grep LISTEN
f1000e0017a12bb8 tcp4 0 0 *.4800 *.* LISTEN
So I want the script to run this and if there is a return of "LISTEN" do nothing..
If it returns nothing email alert to recipients.
So if:
# netstat -Aan|grep 4800|grep LISTEN
f1000e0017a12bb8 tcp4 0 0 *.4800 *.* LISTEN (Do Nothing)
#
#netstat -Aan|grep 4800|grep LISTEN (email recipients)
#
Any help would be appreciated...
# netstat -Aan|grep 4800|grep LISTEN
f1000e0017a12bb8 tcp4 0 0 *.4800 *.* LISTEN
So I want the script to run this and if there is a return of "LISTEN" do nothing..
If it returns nothing email alert to recipients.
So if:
# netstat -Aan|grep 4800|grep LISTEN
f1000e0017a12bb8 tcp4 0 0 *.4800 *.* LISTEN (Do Nothing)
#
#netstat -Aan|grep 4800|grep LISTEN (email recipients)
#
Any help would be appreciated...