Custom date format

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pavelz
Posts: 1
Joined: Sun Dec 20, 2015 3:30 pm

Custom date format

Post by pavelz »

Hi,

I have installed Nagios Core 3.5.1 and want to set up the date format to this pattern: DD.MM.YYYY HH:MM:SS . However the config file nagios.cfg says that the only valid options are: us, euro,iso8601 and strict-iso8601. The option euro (DD-MM-YYYY HH:MM:SS) is the closest but the I would prefer different date part separator.
Is it possible?

Thanks

Pavel
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom date format

Post by tmcdonald »

You'd need to modify this in source and recompile. Luckily there are only a few areas where this is defined:

https://github.com/NagiosEnterprises/na ... %93&q=euro
Former Nagios employee
Locked