Operaton Center shows Alert Notification duration in -ve

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Operaton Center shows Alert Notification duration in -ve

Post by jyoti22 »

Hi Support,
My Nagios XI was working fine. But from few hours accidently its showing alert notification duration is -ve values ie (-4seconds). I have not made any configuration changes on the server. Can anyone please suggest how to fix this issue..

Thanks,
Jyoti
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Operaton Center shows Alert Notification duration in -ve

Post by rkennedy »

When you navigate to Admin -> System Profile -> Show Profile, what is the PHP Time and System Time set to? They will need to be in sync.

Additionally, what is the result of df -h?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Operaton Center shows Alert Notification duration in -ve

Post by jyoti22 »

Hi Please find the output
Date/Time
PHP Timezone: America/Los_Angeles
PHP Time: Tue, 19 Jan 2016 07:10:33 -0800
System Time: Tue, 19 Jan 2016 07:10:33 -0800

[root@nagios etc]# cat /etc/sysconfig/clock
ZONE="America/Los_Angeles"


[root@nagios etc]# date
Tue Jan 19 07:10:02 PST 2016


[root@nagios ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root
50G 426M 47G 1% /
tmpfs 7.7G 0 7.7G 0% /dev/shm
/dev/sda2 477M 72M 380M 16% /boot
/dev/sda1 200M 264K 200M 1% /boot/efi
/dev/mapper/vg_root-lv_home
23G 44M 22G 1% /home
/dev/mapper/vg_root-lv_store
59G 591M 56G 2% /store
/dev/mapper/vg_root-lv_tmp
9.8G 23M 9.2G 1% /tmp
/dev/mapper/vg_root-lv_usr
99G 4.2G 90G 5% /usr
/dev/mapper/vg_root-lv_var
50G 834M 46G 2% /var
/dev/mapper/vg_root-lv_log
32G 563M 30G 2% /var/log
/dev/mapper/vg_root-lv_audit
12G 57M 12G 1% /var/log/audit
You have new mail in /var/spool/mail/root
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Operaton Center shows Alert Notification duration in -ve

Post by hsmith »

What version of the Operation Center are you running? You can find this under the Admin --> System Extensions --> Manage Components menu.
Former Nagios Employee.
me.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Operaton Center shows Alert Notification duration in -ve

Post by jyoti22 »

Operation centers version is 1.0.2.
This issue is not just with Operations center, Home -> Details ->Service details and Home -> Details ->host details also shows time duration in -Ve value.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Operaton Center shows Alert Notification duration in -ve

Post by hsmith »

Let's see these three commands ran around the same time:

Code: Select all

date
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
php -r "echo date('r').PHP_EOL;"
Former Nagios Employee.
me.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Operaton Center shows Alert Notification duration in -ve

Post by jyoti22 »

[root@nagios~]# date
Tue Jan 19 09:57:16 PST 2016
[root@nagios~]# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
ERROR 1045 (28000): Access denied for user 'nagiosxi'@'localhost' (using password: YES)
[root@nagios~]# php -r "echo date('r').PHP_EOL;"
Tue, 19 Jan 2016 09:58:11 -0800

Few days back we have offloaded the DB to remote server. is this issue due to this offloading?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Operaton Center shows Alert Notification duration in -ve

Post by hsmith »

It's certainly a possibility. is there a lot of latency between the two locations?
Former Nagios Employee.
me.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Operaton Center shows Alert Notification duration in -ve

Post by jyoti22 »

How can I check the latency between these 2 locations?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Operaton Center shows Alert Notification duration in -ve

Post by hsmith »

With the ping command.
Former Nagios Employee.
me.
Locked