Max check attempts required field is missing issue


Max check attempts required field is missing issue

When you create or modify a host or service, you may see an error if you did not enter anything in the Max Checks Attempt field, in the Check Settings tab. We have seen this on Nagios XI 2024R1.4.2 and XI 2024R1.4.3.

We have made some changes that validate those settings, which in turn is causing the error.

The solution, is to edit the check_settings.php file:

Edit this file:

/usr/local/nagiosxi/html/includes/components/ccm/page_templates/check_settings.php

Change Line 61 from

<input name="tfMaxCheckAttempts" class="form-control required" type="text" id="tfMaxCheckAttempts" value="<?php echo encode_form_val(grab_array_var($FIELDS, 'max_check_attempts', '    ')); ?>">

to

<input name="tfMaxCheckAttempts" class="form-control" type="text" id="tfMaxCheckAttempts" value="<?php echo encode_form_val(grab_array_var($FIELDS, 'max_check_attempts', '    ')); ?>">

Log out and back into XI, or restart Apache  for the fix to take hold.

We expect to fix this issue in an upcoming version of XI.

Please make sure to monitor our change logs for updates: https://www.nagios.com/changelog/



Article ID: 1078
Created On: Thu, May 22, 2025 at 1:41 PM
Last Updated On: Thu, May 22, 2025 at 1:41 PM
Authored by: afried

Online URL: https://support.nagios.com/kb/article/max-check-attempts-required-field-is-missing-issue-1078.html