Is it possible to change the output path of the PDF report generated by Resin's health function?

 
It is possible.
Please stop Resin, perform the following [Countermeasures], and then start it again.
Please refer to the following document for how to stop/start Resin. 
■intra-mart Accel Platform Setup Guide
 6. Start / Stop Web Application Server 
https://document.intra-mart.jp/library/iap/public/setup/iap_setup_guide/texts/start_end/index.html
[Countermeasures]
There is a setting of <health:PdfReport> in health.xml of Resin.

health.xml is located in the following path. 
<Linux path>
 ・ Default installation path
    /etc/resin/health.xml
 ・ When the installation path is specified
    %RESIN_HOME%/conf/health.xml
<Windows path>
  %RESIN_HOME%/conf/health.xml

For this setting,<log-directory> you can set the directory to output the PDF report by adding. 
After updating this file, it is necessary to restart resin.

▼Setting example (This is just an example, so please set it according to your requirements.) 
----------------------------------------------------------------------------------------------------------------------
<health:PdfReport>
<path>${resin.root}/doc/admin/pdf-gen.php</path>
<report>Summary</report>
<period>7D</period>
<log-directory>${resin.root}/pdf_report</log-directory>
<snapshot/>
<snapshot-jmx>${health_snapshot_jmx}</snapshot-jmx>
<mail-to>${email}</mail-to>
<mail-from>${email_from}</mail-from>
<!-- <profile-time>60s</profile-time> -->

<health:IfCron value="0 0 * * 0"/>
  </health:PdfReport>
  </resin:if>
<health:PdfReport>
    <path>${resin.root}/doc/admin/pdf-gen.php<;/path>
    <report>Restart</report>
    <period>2h</period>
    <mail-to>${email}</mail-to>
    <mail-from>${email_from}</mail-from>
    <log-directory>${resin.root}/pdf_report</log-directory>;
    <health:OnRestart/>
  </health:PdfReport>
----------------------------------------------------------------------------------------------------------------------

For details, please refer to the following documents. 
■intra-mart Accel Platform Setting file reference
 Health action - <health:PdfReport>
https://document.intra-mart.jp/library/iap/public/configuration/im_configuration_reference/texts/resin/health/health-check/actions.html#<health:pdfreport>
-- Target ------------------------------------------------------------------------
iAP/Accel Platform/All Updates
--------------------------------------------------------------------------------



FAQID:1153
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk