no performance graph (history) for check_selenium
no performance graph (history) for check_selenium
Hello XI Support
We expect to see SELENIUM (Check_selenium) history in seconds or no history if down in GUI, but nothing is there
- could this be fixed somehow?
Thank you
We expect to see SELENIUM (Check_selenium) history in seconds or no history if down in GUI, but nothing is there
- could this be fixed somehow?
Thank you
You do not have the required permissions to view the files attached to this post.
Re: no performance graph (history) for check_selenium
Post the output of your check_selenium plugin run from the CLI of the Nagios XI server. The output should look similar to this with everything following the | character being the performance data.
Can you verify from the CCM that the service configuration is processing performance data? Under the "Check Settings" tab, there should be an option to "Process perf data". Make sure that either the "on" or "skip" options are selected.
Could you also post the contents of your host's perfdata folder? Should be located here judging by the provided screenshot:
Code: Select all
[root@localhost ~]# /usr/local/nagios/libexec/check_selenium --script=/usr/local/nagios/libexec/selenium/test_clean
OK: Processes completed after 13.53 of page loading. | ALL=13.53s;60;90;0;120
Could you also post the contents of your host's perfdata folder? Should be located here judging by the provided screenshot:
Code: Select all
ls -al /usr/local/nagios/share/perfdata/login.microsoftonline.com/
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: no performance graph (history) for check_selenium
Perfdata folder attached, here an output from the CLI (not stable from run to another?):mcapra wrote:Post the output of your check_selenium plugin run from the CLI of the Nagios XI server. The output should look similar to this with everything following the | character being the performance data.
Can you verify from the CCM that the service configuration is processing performance data? Under the "Check Settings" tab, there should be an option to "Process perf data". Make sure that either the "on" or "skip" options are selected.Code: Select all
[root@localhost ~]# /usr/local/nagios/libexec/check_selenium --script=/usr/local/nagios/libexec/selenium/test_clean OK: Processes completed after 13.53 of page loading. | ALL=13.53s;60;90;0;120
Could you also post the contents of your host's perfdata folder? Should be located here judging by the provided screenshot:
Code: Select all
ls -al /usr/local/nagios/share/perfdata/login.microsoftonline.com/
[nagios@fikc-nagxidev01 login.microsoftonline.com]$ /usr/local/nagios/libexec/check_selenium --script=/usr/local/nagios/libexec/msportal-3
ERROR: Element xpath=(//button[@type='button'])[12] not found
[nagios@fikc-nagxidev01 login.microsoftonline.com]$ /usr/local/nagios/libexec/check_selenium --script=/usr/local/nagios/libexec/msportal-4
OK: Processes completed after 46.609 of page loading. | ALL=46.609s;60;90;0;120
[nagios@fikc-nagxidev01 login.microsoftonline.com]$ /usr/local/nagios/libexec/check_selenium --script=/usr/local/nagios/libexec/msportal-3
OK: Processes completed after 35.961 of page loading. | ALL=35.961s;60;90;0;120
[nagios@fikc-nagxidev01 login.microsoftonline.com]$
You do not have the required permissions to view the files attached to this post.
Re: no performance graph (history) for check_selenium
Could you check the MsPortal-SELENIUM-Login service's configuration for the "Process perf data" option? The only way I have been able to replicate this behavior so far is by disabling performance data after the service has been defined. Just to be clear, we want "Process perf data" to be in an "on" state.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: no performance graph (history) for check_selenium
mcapra wrote:Could you check the MsPortal-SELENIUM-Login service's configuration for the "Process perf data" option? The only way I have been able to replicate this behavior so far is by disabling performance data after the service has been defined. Just to be clear, we want "Process perf data" to be in an "on" state.
Still the same "No data to display"
Re: no performance graph (history) for check_selenium
Please run these commands and post the output:
Are you seeing anything related in your /usr/local/nagios/var/npcd.log, /usr/local/nagios/var/perfdata.log, or /usr/local/nagiosxi/var/perfdataproc.log?
All other services are collecting as normal?
Code: Select all
cat /usr/local/nagios/share/perfdata/localhost/MsPORTAL-SELENIUM-Login.xml
rrdtool info /usr/local/nagios/share/perfdata/localhost/MsPORTAL-SELENIUM-Login.rrd |grep dsAll other services are collecting as normal?
Re: no performance graph (history) for check_selenium
------------------------------------------------------------ssax wrote:Please run these commands and post the output:
Are you seeing anything related in your /usr/local/nagios/var/npcd.log, /usr/local/nagios/var/perfdata.log, or /usr/local/nagiosxi/var/perfdataproc.log?Code: Select all
cat /usr/local/nagios/share/perfdata/localhost/MsPORTAL-SELENIUM-Login.xml rrdtool info /usr/local/nagios/share/perfdata/localhost/MsPORTAL-SELENIUM-Login.rrd |grep ds
All other services are collecting as normal?
Code: Select all
<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>34.033</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>successful updated</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!!!!!!!</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=34.033s;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!!!!!!!</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>MsPORTAL-SELENIUM-Login</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEOUTPUT>OK: Processes completed after 34.033 of page loading.</NAGIOS_SERVICEOUTPUT>
<NAGIOS_SERVICEPERFDATA>ALL=34.033s;60;90;0;120</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>OK</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1467037190</NAGIOS_TIMET>
<NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/login.microsoftonline.com/MsPORTAL-SELENIUM-Login.xml</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
[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 = "34.033"
ds[1].value = NaN
ds[1].unknown_sec = 50
-------------------------------------------------
Yes, other history is OK
Re: no performance graph (history) for check_selenium
What version of Nagios XI are you running?
When you try and view the performance data for that service, do you see any errors in the Apache log files in this folder /var/log/httpd ?
When you try and view the performance data for that service, do you see any errors in the Apache log files in this folder /var/log/httpd ?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: no performance graph (history) for check_selenium
5.2.9 (5.2.7 before that)tgriep wrote:What version of Nagios XI are you running?
When you try and view the performance data for that service, do you see any errors in the Apache log files in this folder /var/log/httpd ?
-----------------------------
Here are some errors
[Sun Jul 03 03:16:02 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 03 03:16:02 2016] [notice] Digest: done
[Sun Jul 03 03:16:02 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips con
figured -- resuming normal operations
[Sun Jul 03 10:59:08 2016] [error] [client 10.104.224.39] PHP Notice: Undefined index: flash_msg in /usr/local
/nagiosxi/html/login.php on line 79, referer: http://10.96.30.40/
[Mon Jul 04 03:27:23 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/itassistant
[Mon Jul 04 03:27:23 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/xmldata
[Mon Jul 04 03:30:46 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/itassistant
[Mon Jul 04 03:30:46 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/xmldata
[Mon Jul 04 12:53:40 2016] [error] [client 10.67.2.96] PHP Notice: Undefined index: flash_msg in /usr/local/na
giosxi/html/login.php on line 79, referer: http://10.96.30.40/
[Tue Jul 05 03:44:56 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/itassistant
[Tue Jul 05 03:44:56 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/xmldata
[Tue Jul 05 12:31:57 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/itassistant
[Tue Jul 05 12:31:58 2016] [error] [client 10.102.35.72] File does not exist: /var/www/html/xmldata
[Tue Jul 05 17:20:53 2016] [error] [client 10.67.2.70] PHP Notice: Undefined index: flash_msg in /usr/local/na
giosxi/html/login.php on line 79, referer: http://10.96.30.40/
Re: no performance graph (history) for check_selenium
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!