Code Monkey home page Code Monkey logo

fsmon's Introduction

What's this

Script allow monitor changes to files in specified directories. When changes detected, it'll notify administrator by email or/and write logs this changes.

[  modified]    /home/user/www/fs_monitor/fsmon.php       5.1 kb  28.09.2009 23:37
[       new]    /home/user/www/fs_monitor/1/sc.phps       1 kb    28.09.2009 23:09
[   deleted]    /home/user/www/fs_monitor/1/op.phps       2 kb    01.01.1970 03:00

Setup

Make sure .cache file php-writable

touch .cache
chmod g+w ./.cache

Basic Configure

See options in config.php

Run task with cron

crontab -e
0 	3 	* 	* 	* 	/usr/bin/env php -f /home/user/fsmon.php > /dev/null 2>&1 

Описание на русском

fsmon's People

Contributors

rustyj4ck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fsmon's Issues

PHP Notice:  Only variables should be passed by reference in /root/fsmon/fsmon.php on line 89

Здравствуйте. Мне очень понравился ваш скрипт FSMon. При его запуске на PHP 7.3 все работает, но есть "PHP Notice" с содержанием:

PHP Notice:  Only variables should be passed by reference in /root/fsmon/fsmon.php on line 89

Я так понимаю - это из-за не совместимости версии PHP? Подскажите пожалуйста, что нужно исправить?

Not enough memory (128M) error

64.73110| ls /var/www/html/1/upload/content/209
64.77009| ls /var/www/html/1/upload/content/427
64.80677| ls /var/www/html/1/upload/content/279
64.84540| ls /var/www/html/1/upload/content/240
64.88312| ls /var/www/html/1/upload/content/581
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes) in /home/user/fsmon/fsmon.php on line 256

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.