Page 1 of 1

Performance Graph Explorer not appearing

Posted: Tue Aug 18, 2015 3:20 am
by steven.giang
Hi,

Server
Nagios XI Version : 2012R2.9
CentOS release 6.6 (Final)
PHP Version: 5.3.3

I have research around the world on google and could not find a solution yet, hope someone here with their expertise to give a hand
I have run the command to verifies the httpd error

tail -20 /var/log/httpd/error_log

Code: Select all

[Tue Aug 18 18:02:27 2015] [error] [client 192.168.100.188] PHP Notice:  Undefined variable: startdate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://abtg-nag-01.abtgroup.com.au/nagiosxi/includes/components/graphexplorer/
[Tue Aug 18 18:02:27 2015] [error] [client 192.168.100.188] PHP Notice:  Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://abtg-nag-01.abtgroup.com.au/nagiosxi/includes/components/graphexplorer/
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
I have attached a screeshot of what it look like.
Top Alerts Last 24 hours tab show nothing
Host health tab show nothing
service health tab show nothing
Scalable performance graph show host on the left, however no graph
time stacked performance graph show host on the left, however no graph

Are there anywhere else I should look at?

Thanks you,
Steve

Re: Performance Graph Explorer not appearing

Posted: Tue Aug 18, 2015 2:04 pm
by tgriep
Take a look at this link to see if this helps out in the locale messages in the error_log.
http://blog.earth-works.com/2014/02/10/ ... -and-rhel/

Re: Performance Graph Explorer not appearing

Posted: Tue Aug 18, 2015 7:22 pm
by steven.giang
Thanks tgriep, I will give that a try and let you know how it go.

Re: Performance Graph Explorer not appearing

Posted: Wed Aug 19, 2015 12:04 am
by steven.giang
tgriep wrote:Take a look at this link to see if this helps out in the locale messages in the error_log.
http://blog.earth-works.com/2014/02/10/ ... -and-rhel/
I follow the instruction as you provided, however I found there is nothing wrong with the locale. output as below

Code: Select all

[root@ABTG-NAG-01 /]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[root@ABTG-NAG-01 /]# cat /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
[root@ABTG-NAG-01 /]#
This error only prompted when I click on the nagios graph explorer tab, example output as below

Top Alerts Last 24 hours tab show nothing
Host health tab show nothing
service health tab show nothing
httpd error show

Code: Select all

[Wed Aug 19 14:54:00 2015] [error] [client 192.168.100.188] PHP Notice:  Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://abtg-nag-01.abtgroup.com.au/nagiosxi/includes/components/graphexplorer/
Scalable performance graph show host on the left, however no graph
time stacked performance graph show host on the left, however no graph
httpd error show

Code: Select all

sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
Does this got something to do with the setting in NagiosXi?

Regards,

Re: Performance Graph Explorer not appearing

Posted: Wed Aug 19, 2015 2:06 pm
by tgriep
In the Nagios XI GUI, click on Admin > Manage System Config and provide a screen capture of that?
Is the language set correctly?

Are performance graphs working when you check a host or service under the details screen?

Re: Performance Graph Explorer not appearing

Posted: Wed Aug 19, 2015 6:07 pm
by steven.giang
tgriep wrote:In the Nagios XI GUI, click on Admin > Manage System Config and provide a screen capture of that?
Is the language set correctly?
Are performance graphs working when you check a host or service under the details screen?
The language is correct.

After yesterday tweak around the graph explorer, I upgrade the version 2.0 and immediately it able to bring the performance graph from hosts/services (see attached)

After the upgrade of nagios graph explorer, see attached

top alerts last 24hrs is working
Host health is working
Service Health is working
scalable performance graph is NOT working
time stacked is NOT working
Multistacked is NOT working

I did

Code: Select all

 tail -f /var/log/httpd/error_log
and there are no error output when click on those performance tab

Are there anywhere else I should look at?

Re: Performance Graph Explorer not appearing

Posted: Thu Aug 20, 2015 2:24 pm
by tgriep
After the upgrade, did you select a host on the left side of the of the graph and did the screen update?

Something looks wrong for the performance graph for localhost. For some reason it stops collecting data.
Run the following and post the output to debug that.

Code: Select all

tail -50 /usr/local/nagios/var/npcd.log
tail -50 /usr/local/nagios/var/perfdata.log

Re: Performance Graph Explorer not appearing

Posted: Fri Aug 28, 2015 1:26 am
by steven.giang
Hi Tgriep,

I left the machine run over few day and I think it collecting the data as graph explorer all tab is appearing the data correctly.

tail -50 /usr/local/nagios/var/npcd.log

Code: Select all

[08-07-2015 09:51:27] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1438905073.perfdata.host'
[08-07-2015 09:51:27] NPCD: ERROR: Executed command exits with return code '127'
[08-07-2015 09:51:27] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1438905073.perfdata.service'
[08-18-2015 16:49:46] NPCD: WARN: MAX load reached: load 10.390000/10.000000 at i=0
[08-20-2015 17:59:39] NPCD: npcd Daemon (0.4.14) started with PID=1785
[08-20-2015 17:59:39] NPCD: Please have a look at 'npcd -V' to get license information
[08-20-2015 17:59:39] NPCD: HINT: load_threshold is enabled - ('10.000000')
tail -50 /usr/local/nagios/var/perfdata.log

Code: Select all

[root@ABTG-NAG-01 bin]# tail -50 /usr/local/nagios/var/perfdata.log
1440742246||abt-support.abtgroup.com.au||/logs Disk Usage||DISK OK - free space: /logs 12627 MB (79% inode=99%):||/logs=3247MB;15064;15901;0;16738
1440742246||abt-lfe-03.abtgroup.com.au||CPU Usage||CPU Load 0% (5 min average)||5 min avg Load=0%;80;90;0;100
1440742247||abt-dev.abtgroup.com.au||/var Disk Usage||DISK OK - free space: /var 4279 MB (90% inode=99%):||/var=432MB;3971;4467;0;4964
1440742247||abt-support.abtgroup.com.au||/var Disk Usage||DISK OK - free space: /var 1451 MB (78% inode=99%):||/var=403MB;1562;1757;0;1953
1440742247||abt-support.abtgroup.com.au||Informix LiveDBS||OK: 80% used in livedbs (1399 MB of 7000 MB available)||
1440742248||abt-support.abtgroup.com.au||/live Disk Usage||DISK OK - free space: /live 8554 MB (44% inode=99%):||/live=10485MB;15886;17872;0;19858
1440742250||abt-svr05.abtgroup.com.au||Uptime||System Uptime - 28 day(s) 22 hour(s) 21 minute(s)||uptime=41661
1440742250||abt-sqlcs-1.abtgroup.com.au||CPU Usage||CPU Load 2% (5 min average)||5 min avg Load=2%;80;90;0;100
1440742241||abt-led-01.abtgroup.com.au||Drive C: Disk Usage||CRITICAL - Socket timeout after 10 seconds||
1440742251||abt-rnd-web.abtgroup.com.au||Swap Usage||SWAP OK - 100% free (3998 MB out of 3998 MB)||swap=3998MB;0;0;0;3998
1440742251||abt-svr14.abtgroup.com.au||Drive C: Disk Usage||C:\ - total: 99.89 Gb - used: 42.11 Gb (42%) - free 57.78 Gb (58%)||C:\ Used Space=42.11Gb;79.91;94.90;0.00;99.89
1440742252||localhost||SSH||SSH OK - OpenSSH_5.3 (protocol 2.0)||time=0.005761s;;;0.000000;10.000000
1440742253||abt-wk40.abtgroup.com.au||Uptime||System Uptime - 22 day(s) 0 hour(s) 14 minute(s)||uptime=31694
1440742257||abt-rnd.abtgroup.com.au||Load||OK - load average: 0.00, 0.00, 0.00||load1=0.000;15.000;30.000;0; load5=0.000;10.000;20.000;0; load15=0.000;5.000;10.000;0;
1440742258||abt-ss.abtgroup.com.au||CPU Usage||CPU Load 0% (5 min average)||5 min avg Load=0%;80;90;0;100
1440742262||pronto710-test.abtgroup.com.au||/boot Disk Usage||DISK OK - free space: /boot 90 MB (49% inode=99%):||/boot=93MB;154;173;0;193
1440742263||abthsvr02.abtgroup.com.au||Ping||OK - abthsvr02.abtgroup.com.au: rta 0.634ms, lost 0%||rta=0.634ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=1.678ms;;;; rtmin=0.231ms;;;;
[root@ABTG-NAG-01 bin]#
Regards,

Re: Performance Graph Explorer not appearing

Posted: Fri Aug 28, 2015 11:44 am
by lmiltchev
I left the machine run over few day and I think it collecting the data as graph explorer all tab is appearing the data correctly.
Can we mark this issue as "resolved" then? Is it safe to lock this topic? Thanks!

Re: Performance Graph Explorer not appearing

Posted: Wed Feb 24, 2016 6:30 pm
by steven.giang
Hi lmiltchev,

Please mark as resolved, as I tried to implement nagiosgraph third party into Nagios Xi and generate all sort of graph issue.

Removing nagiosgraph and using the built-in nagios xi are working

Thanks again