Comments (7)
Hi, use 5,10,15.... seems its not allowed yet to use wildcards :(
from pandorafms.
ยกHi!
From official DokuWiki:
You need put command
in another line with module_exec
, full example:
module_begin
module_name crontab_test
module_type generic_data
module_exec script.sh
module_crontab * 12-15 * * 1
module_end
from pandorafms.
Tried but didn't work:
Incorrect cron syntax '*/5 * * * *'. This module (module Database_events) will be executed always
This is the module
module_begin
module_name Database_events
module_type generic_data
module_exec sqlite3 ****etc etc
module_condition > 60 systemctl restart easycounter.service; systemctl restart webinterface.service; systemctl restart nginx.service
module_group Database
module_description Check the presence of line events; returns the number of minutes since last line event. It restarts the service in case of critical condition
module_min_warning 30
module_max_warning 59
module_min_critical 60
module_max_critical 1440
module_max 1440
module_min 0
module_crontab */5 * * * *
module_end
from pandorafms.
(๐ค Interesting Sqlite3 example: module_exec sqlite3 temp.db "SELECT abs(random() % 1440);"
).
module_crontab */5 * * * *
Step values are not documented... but default time for agents is 300 seconds, maybe you do not need module_crontab
command.
from pandorafms.
(๐ค Interesting Sqlite3 example:
module_exec sqlite3 temp.db "SELECT abs(random() % 1440);"
).
๐
Step values are not documented...
Do you mean I cannot use it?
but default time for agents is 300 seconds, maybe you do not need
module_crontab
command.
What if my default agent time is 30 seconds but I need this module to run every 300secs?
What I'm trying to achieve is running this module every 5 minutes (regardless the default agent time) from 10am to 12am and from 3pm to 8pm.
from pandorafms.
Hi!
Is there any syntax reference for crontab expression in PandoraFMS?
Thanks
from pandorafms.
thank you @fbsanchez, I'll stick with the list!
from pandorafms.
Related Issues (20)
- no Update button in Custom reports -> Item editor -- Pandora 7.0 756 HOT 4
- Pandora FMS v7.0NG.757 - OUM 757 - MR 49 - Config.pm reset issue HOT 1
- Error to import pandoradb.sql HOT 5
- Potential security issue HOT 1
- Scheduled Downtime Agent FIlter
- 2FA not working HOT 1
- Pandora FMS API Bugs and Security Issues HOT 3
- Fresh install: Error Loading database schema HOT 9
- Fresh install in Ubuntu 22.04.1: Error OS version, Ubuntu 22.04 is expected HOT 13
- Fresh install Ubuntu 22.04.01: Cannot launch again. Aborting. HOT 3
- PandoraFMS install on CentOS 9 HOT 4
- Generated (console) config.php during install has config.inc.php below the newly generated data.. HOT 3
- Pandora FMS 767 with PHP 8.x breaks some API access HOT 1
- Problems in the display of alerts. HOT 1
- Docker Pandora FMS full stack based on Centos 8 does not start HOT 7
- Alerts Action eMail not saving properly
- Module critical treshold max value
- Problema configuracion umbrales de warning y alarma
- Custom default home screen not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandorafms.