cacti.log date format

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Wirthmueller
Cacti User
Posts: 60
Joined: Wed Mar 02, 2011 9:02 am

cacti.log date format

Post by Wirthmueller »

I have a strange problem in the cacti log file. most of the log entries are in date/time format YYYY-MM-DD hh:mm:ss with the correct system time wich ist Europe/Zurich:

Code: Select all

2023-03-01 14:32:05 - SPINE: Poller[Main Poller] PID[20633] PT[139922212460096] Device[uRadMonitor AC3] HT[1] DS[FH.....
But entries linked to plugins are in the format DD-MM-YYYY hh:mm:ss with the time set to UTC:

Code: Select all

01-03-2023 13:32:24 - SYSTEM MONITOR STATS: Time:0.01 Reboots:0 DownDevices:0 Notifications:0 Purges:0 
Any help to this?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: cacti.log date format

Post by TheWitness »

You will have to be specific and log for each plugin. As I know, cacti_log() function does this but there may be some idosyncracies.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests