Portál AbcLinuxu, 9. srpna 2025 00:01
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
a nepreju si aby mi kazdych 5 minut pribil v logu zaznam:
datum (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
proto jsem zkusil:
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi > /dev/null
Ale bohuzel zaznam v logu je stale :( Nevedel by prosim nekdo kde delam chybu? Diky :)
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi >/dev/null 2>&1
Feb 12 14:30:01 server /USR/SBIN/CRON[10633]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi >/dev/null 2>&1)tak bohuzel ani to nepomohlo...
crond
(tj. nesouvisi s tim, co a jak spoustite)
2. Ty hlasky jdou pres syslog
1. + 2. = nastavte syslog tak, aby hlasky od cron-a zahazoval
/etc/syslog.conf
man syslog.conf
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.