• This is a nice script.

    Couple of comments.

    1. I would separate out the size of the log file and the (total) size of the datafiles.

    2. I would avoid using IP addresses at all cost. They should not be considered immutable.