I use inotifywait for event trigger which put file.
 When many files are watched by inotifywait, when max_user_watchesmax_user_watches is exceeded, the following error occurs.
Terminating since out of inotify watches.#012Consider increasing /proc/sys/fs/inotify/max_user_watches
 It is necessary to tune /proc/sys/fs/inotify/max_user_watches/proc/sys/fs/inotify/max_user_watches, but is it possible to check the current file watch number?
Is there a way to check like file-nr in file descriptor?