bug on duration
Posted: Wed Dec 14, 2016 5:45 am
Hi,
Duration field displays negative values (.jpg attached)
Please help me.
Frederic
Duration field displays negative values (.jpg attached)
Please help me.
Frederic
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
Code: Select all
[nagios@nagiosxi root]$ grep "date.timezone" /etc/php.ini
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = America/New_York
You have new mail in /var/spool/mail/root
[nagios@nagiosxi root]$ ls -l /etc/localtime
-rw-r--r--. 1 root root 2945 Dec 1 14:57 /etc/localtime
[nagios@nagiosxi root]$ php -r 'echo date("D M j G:i:s T Y")."\n";'
Thu Dec 15 3:11:28 EST 2016
[nagios@nagiosxi root]$ date
Thu Dec 15 09:11:55 CET 2016
[nagios@nagiosxi root]$ mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
+---------------------+
| NOW() |
+---------------------+
| 2016-12-15 09:12:11 |
+---------------------+
[nagios@nagiosxi root]$
It looks like your timezones are set to EST, and CET, and off quite a bit - you'll want to set all these to be the same timezone, whichever one your prefer. Take a look at this doc for information on how to do so - https://assets.nagios.com/downloads/nag ... 1444063497[nagios@nagiosxi root]$ php -r 'echo date("D M j G:i:s T Y")."\n";'
Thu Dec 15 3:11:28 EST 2016
[nagios@nagiosxi root]$ date
Thu Dec 15 09:11:55 CET 2016
[nagios@nagiosxi root]$ mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
+---------------------+
| NOW() |
+---------------------+
| 2016-12-15 09:12:11 |
+---------------------+
[nagios@nagiosxi root]$
Code: Select all
/usr/local/nagiosxi/scripts/change_timezone.sh --zone Europe/ParisCode: Select all
[root@nagiosxi ~]# /usr/local/nagiosxi/scripts/change_timezone.sh --zone Europe/Paris
Reloading httpd:
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
All timezone configurations updated to "Europe/Paris"
[root@nagiosxi ~]# date
Mon Jan 9 09:56:04 CET 2017
[root@nagiosxi ~]#