Adding year details to timestamp

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
ananthna
Posts: 1
Joined: Thu Apr 12, 2012 9:09 am

Adding year details to timestamp

Post by ananthna »

Hi,

please let me know where is the format of the alert defined. Currently the alert timestamp is like MM DD hh:mm:ss, there is no year can we add the year with time.

Jun 19 09:46:52 10.203.75.186 [user.info] nagios: SERVICE NOTIFICATION: scm-unixadmins;scmibm01;Unix_Total_Process;CRITICAL;notify-service-by-email;PROCS CRITICAL: 500 processes

please assist we have nagios 2.9 and nagios core.

Regards,
Ananth Nag.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Adding year details to timestamp

Post by agriffin »

In the main config file (nagios.cfg), there a date_format option which may help.
Locked