#!/bin/bash

export STY=1

Log_file=/opt/nf-observability/remediations/logs

#Logging to syslog

/usr/bin/logger  -t $0 "Montool Disk clean auto-remediation initiated on $1"

> $Log_file/$1-diskclean

nohup /root/bin/montool diskclean -f  $1 > $Log_file/$1-diskclean 2>&1 &

echo "Initiated the montool diskclean on $1 with PID $!, progess can be tracked on $Log_file"

exit
