We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Nagios archives/ log rotation file syntax

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios archives/ log rotation file syntax

Postby pzkpfw » Tue Apr 26, 2022 2:27 am

When I look in archives/ the files look like this:
Code: Select all
-rw-r--r-- 1 nagios nagios 664K Apr 24 01:58 nagios-04-24-2022-00.log
-rw-r--r-- 1 nagios nagios 664K Apr 25 01:58 nagios-04-25-2022-00.log
-rw-r--r-- 1 nagios nagios 884K Apr 26 01:59 nagios-04-26-2022-00.log

I'd like this date syntax to mirror what I've set in nagios.cfg, i.e. date_format=iso8601

How can I make sure the files are archived with a syntax more like:

Code: Select all

I understand I could just skip Nagios own log rotation and use external log rotation, but I'd like to know if there's an easier way to just set it in Nagios first.
Posts: 1
Joined: Tue Apr 26, 2022 2:22 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 22 guests