Page 2 of 3
Re: no performance graph (history) for check_selenium
Posted: Tue Jul 05, 2016 2:14 pm
by dlukinski
tgriep wrote:Nagios version is good and there are not any errors that pertain to this issue.
One more thing to try, can you delete the xml and rrd files for that check and see if that fixes the issue?
They will be recreated and should be populated with data in about 20 minutes after deleting them if they were corrupted before.
alright, deleted all SELENUM checks in question / let's wait
Re: no performance graph (history) for check_selenium
Posted: Tue Jul 05, 2016 2:30 pm
by bwallace
Cool - we'll be watching for an update!
Re: no performance graph (history) for check_selenium
Posted: Tue Jul 05, 2016 3:07 pm
by dlukinski
tgriep wrote:Nagios version is good and there are not any errors that pertain to this issue.
One more thing to try, can you delete the xml and rrd files for that check and see if that fixes the issue?
They will be recreated and should be populated with data in about 20 minutes after deleting them if they were corrupted before.
Same problem with these SELENIUM checks "no data to display"
Other checks, including those created/activated after configuring SELENIUM got the history normally.
What to do next?
Re: no performance graph (history) for check_selenium
Posted: Tue Jul 05, 2016 4:26 pm
by tgriep
Can you post the xml and rrd files here so we can look at the contents of them?
Can you run the check from a command line and post the output here to we can see it again?
Re: no performance graph (history) for check_selenium
Posted: Thu Jul 07, 2016 11:50 am
by dlukinski
tgriep wrote:Can you post the xml and rrd files here so we can look at the contents of them?
Can you run the check from a command line and post the output here to we can see it again?
Commands & files (re-created multiple times)
Code: Select all
[root@fikc-nagxidev01 login.microsoftonline.com]# cat /usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_selenium</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>ALL</NAME>
<LABEL>ALL</LABEL>
<UNIT>s</UNIT>
<ACT>32.969</ACT>
<WARN>60</WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT>90</CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN>0</MIN>
<MAX>120</MAX>
</DATASOURCE>
<RRD>
<RC>0</RC>
<TXT>just created</TXT>
</RRD>
<NAGIOS_AUTH_HOSTNAME>login.microsoftonline.com</NAGIOS_AUTH_HOSTNAME>
<NAGIOS_AUTH_SERVICEDESC>MsPORTAL-SELENIUM-Login</NAGIOS_AUTH_SERVICEDESC>
<NAGIOS_CHECK_COMMAND>check_selenium!msportal-1.pl!!!!!!!</NAGIOS_CHECK_COMMAND>
<NAGIOS_DATATYPE>SERVICEPERFDATA</NAGIOS_DATATYPE>
<NAGIOS_DISP_HOSTNAME>login.microsoftonline.com</NAGIOS_DISP_HOSTNAME>
<NAGIOS_DISP_SERVICEDESC>MsPORTAL-SELENIUM-Login</NAGIOS_DISP_SERVICEDESC>
<NAGIOS_HOSTNAME>login.microsoftonline.com</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
<NAGIOS_PERFDATA>ALL=32.969s;60;90;0;120 </NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.rrd</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>check_selenium!msportal-1.pl!!!!!!!</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>MsPORTAL-SELENIUM-Login</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEOUTPUT>OK: Processes completed after 32.969 of page loading.</NAGIOS_SERVICEOUTPUT>
<NAGIOS_SERVICEPERFDATA>ALL=32.969s;60;90;0;120</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>OK</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1467906784</NAGIOS_TIMET>
<NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.xml</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
Code: Select all
[root@fikc-nagxidev01 login.microsoftonline.com]# rrdtool info /usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.rrd | grep ds
ds[1].type = "GAUGE"
ds[1].minimal_heartbeat = 8460
ds[1].min = NaN
ds[1].max = NaN
ds[1].last_ds = "U"
ds[1].value = 0.0000000000e+00
ds[1].unknown_sec = 4
[root@fikc-nagxidev01 login.microsoftonline.com]#
Re: no performance graph (history) for check_selenium
Posted: Thu Jul 07, 2016 12:20 pm
by tgriep
I looked at those rrd files and they have noting in them for performance data except NaN's. NaN's mean unknown data.
Possible caused are invalid performance data. If you look at this log file for those checks and see if that is the case.
Code: Select all
/usr/local/nagios/var/perfdata.log
There could be a problem with the rrdtool and or it's version.
Can you run the following and post the output?
Code: Select all
rrdtool -v
yum list installed rrdtool-perl
Also, can you post the service check's configuration so we can view it?
Re: no performance graph (history) for check_selenium
Posted: Thu Jul 07, 2016 3:12 pm
by dlukinski
tgriep wrote:I looked at those rrd files and they have noting in them for performance data except NaN's. NaN's mean unknown data.
Possible caused are invalid performance data. If you look at this log file for those checks and see if that is the case.
Code: Select all
/usr/local/nagios/var/perfdata.log
- not in the log.
There could be a problem with the rrdtool and or it's version.
Can you run the following and post the output?
Code: Select all
rrdtool -v
yum list installed rrdtool-perl
Also, can you post the service check's configuration so we can view it?
Code: Select all
[root@fikc-nagxidev01 var]# rrdtool -v
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <[email protected]>
Compiled Apr 3 2014 13:07:03
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
[root@fikc-nagxidev01 var]# yum list installed rrdtool-perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 24 kB 00:00
* base: mirror.one.com
* epel: mirror.logol.ru
* extras: mirror.one.com
* rpmforge: fr2.rpmfind.net
* updates: ftp.klid.dk
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:06
Installed Packages
rrdtool-perl.x86_64 1.3.8-7.el6 @base
[root@fikc-nagxidev01 var]#
Re: no performance graph (history) for check_selenium
Posted: Thu Jul 07, 2016 3:17 pm
by tgriep
The rrd versions look correct.
Can you post how the service check's command is configured in XI so we can view it?
Can you upload these files so we can view them?
Code: Select all
/usr/local/nagios/var/perfdata.log
/usr/local/nagios/var/npcd.log
Re: no performance graph (history) for check_selenium
Posted: Wed Jul 20, 2016 8:39 am
by dlukinski

))))))))))))))))
Somehow during configuration all Selenium checks became passive (I do not understand why or how) / believed it had to be this way until now.
Made them active as they simply did not run (helps with history)
Re: no performance graph (history) for check_selenium
Posted: Wed Jul 20, 2016 9:18 am
by mcapra
Did switching them to active give you the performance data you were looking for? Is it alright if we mark this as resolved?