Nagios – Change date format


Hello everyone, today a customer asked me to change the default date format for the Nagios web interface since he wanted an international date format instead of the default us date format. I thought I should share the procedure so here is how to do it (I did this on Ubuntu 14.04.2):

This is how the web interface looked before:

nagios_date_format_default

Ok. First open the nagios.cfg file by running the following command:

sudo nano /usr/local/nagios/etc/nagios.cfg

nagios_change_date_format

Next search for “date_format” and change it from:

date_format=us

to:

date_format=iso8601

Save and then restart the Nagios service by running:

sudo service nagios restart

After the Nagios service has successfully restarted your web interface will look like this:

nagios_date_format_iso8601

Well, that´s it. Now all dates will be displayed in the international ISO8601 date format on your Nagios web interface. (Btw this does not change the log file format.)

I hope you liked my today´s post and I hope to see you again next time 🙂

Sources:

http://forums.meulie.net/t/nagios-log-format/2978

Advertisements
Tagged ,

2 thoughts on “Nagios – Change date format

  1. […] everyone, in these last few posts: Nagios – Change date format and Nagios – Use UTC I showed you how you can alter the date format and timezone of your […]

  2. […] (Btw This post has the same prerequisites. So have a look at my posts Nagios – Use UTC and Nagios – Change date format too.) The problem with my previous solution was that you needed either Google Chrome or Mozilla […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: