Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-04-26 Thread Anand Buddhdev

On 26/04/2022 21:05, Kaushal Shriyan wrote:

Hi Kaushal,


Thanks for sharing the link
https://www.unixmen.com/how-to-monitor-filesystem-events-with-incron/.
However I am receiving multiple emails (more than 1 email) while accessing
the /var/www/html/prodsys.cert file. Am i missing something as per the
below incrontab -l output

/var/www/html/prodsys.cert  IN_ALL_EVENTSprintf "Subject: Prod


You've asked incron to inform you of all events, so presumably, your 
"access" triggers multiple filesystem events. You need to be more 
selective about which events you want to be notified about.


Regards,
Anand
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-04-26 Thread Kaushal Shriyan
Hi Lee,

Thanks for sharing the link
https://www.unixmen.com/how-to-monitor-filesystem-events-with-incron/.
However I am receiving multiple emails (more than 1 email) while accessing
the /var/www/html/prodsys.cert file. Am i missing something as per the
below incrontab -l output

/var/www/html/prodsys.cert  IN_ALL_EVENTSprintf "Subject: Prod
Public Certificate file Monitoring\n\n prodsys.cert Certificate file
in /var/www/html/ directory has been accessed in
https://dev.internalcraft.com
 " | /usr/sbin/ssmtp -vvv
u...@x.com >> /tmp/ic.log 2>&1

Please guide me. Thanks in advance.

Best Regards,

Kaushal


On Fri, Mar 25, 2022 at 11:35 AM Thomas Stephen Lee 
wrote:

> On Thu, Mar 24, 2022 at 10:40 PM Kaushal Shriyan
>  wrote:
> >
> > On Thu, Mar 24, 2022 at 2:34 PM Roberto Ragusa 
> > wrote:
> >
> > > On 3/22/22 6:13 AM, Frank Cox wrote:
> > > > On Tue, 22 Mar 2022 10:12:30 +0530
> > > > Kaushal Shriyan wrote:
> > > >
> > > >> Please guide and suggest. Thanks in advance.
> > > >
> > > > man inotify
> > >
> > > and
> > >
> > > man incron
> > >
> > >
> > > --
> > > Roberto Ragusamail at robertoragusa.it
> > > ___
> > > CentOS mailing list
> > > CentOS@centos.org
> > > https://lists.centos.org/mailman/listinfo/centos
> >
> >
> > Thanks Roberto and Frank for the response !!!  Is there a way to notify
> it
> > via email? Any examples? Thanks in advance.
> >
> > Best Regards,
> >
> > Kaushal
>
> https://www.unixmen.com/how-to-monitor-filesystem-events-with-incron/
>
> ---
> Lee
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-03-25 Thread Thomas Stephen Lee
On Thu, Mar 24, 2022 at 10:40 PM Kaushal Shriyan
 wrote:
>
> On Thu, Mar 24, 2022 at 2:34 PM Roberto Ragusa 
> wrote:
>
> > On 3/22/22 6:13 AM, Frank Cox wrote:
> > > On Tue, 22 Mar 2022 10:12:30 +0530
> > > Kaushal Shriyan wrote:
> > >
> > >> Please guide and suggest. Thanks in advance.
> > >
> > > man inotify
> >
> > and
> >
> > man incron
> >
> >
> > --
> > Roberto Ragusamail at robertoragusa.it
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > https://lists.centos.org/mailman/listinfo/centos
>
>
> Thanks Roberto and Frank for the response !!!  Is there a way to notify it
> via email? Any examples? Thanks in advance.
>
> Best Regards,
>
> Kaushal

https://www.unixmen.com/how-to-monitor-filesystem-events-with-incron/

---
Lee
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-03-24 Thread Kaushal Shriyan
On Thu, Mar 24, 2022 at 2:34 PM Roberto Ragusa 
wrote:

> On 3/22/22 6:13 AM, Frank Cox wrote:
> > On Tue, 22 Mar 2022 10:12:30 +0530
> > Kaushal Shriyan wrote:
> >
> >> Please guide and suggest. Thanks in advance.
> >
> > man inotify
>
> and
>
> man incron
>
>
> --
> Roberto Ragusamail at robertoragusa.it
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos


Thanks Roberto and Frank for the response !!!  Is there a way to notify it
via email? Any examples? Thanks in advance.

Best Regards,

Kaushal
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-03-24 Thread Roberto Ragusa

On 3/22/22 6:13 AM, Frank Cox wrote:

On Tue, 22 Mar 2022 10:12:30 +0530
Kaushal Shriyan wrote:


Please guide and suggest. Thanks in advance.


man inotify


and

man incron


--
   Roberto Ragusamail at robertoragusa.it
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Linux Notifications for any changes in files or folders

2022-03-21 Thread Frank Cox
On Tue, 22 Mar 2022 10:12:30 +0530
Kaushal Shriyan wrote:

> Please guide and suggest. Thanks in advance.

man inotify

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS Linux Notifications for any changes in files or folders

2022-03-21 Thread Kaushal Shriyan
Hi,

I am running CentOS Linux release 7.9.2009 (Core). Is there a way to notify
via email if any files or folders have been accessed, modified, or
changed?  Also, if somebody deletes or adds any files in a specific folder
/opt. Sysadmin should be notified via email or Slack channel using an
alerting mechanism.

Please guide and suggest. Thanks in advance.

Best Regards,

Kaushal
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos