Nagios XI Diagnostic Profile: A Support File Worth Opening

Picture of Salamon Anzel
Salamon Anzel

Technical Support Engineer

Fix It Yourself. Troubleshoot Like Support. What's Inside Your Nagios XI Diagnostic Profile

The Nagios XI diagnostic profile contains valuable troubleshooting information. This article explains the key configuration files and logs inside it and how they can help you resolve issues yourself or work more effectively with Nagios Support.

When something goes wrong in Nagios XI, Support may ask you for a diagnostic profile. You download it, attach the your Nagios XI diagnostic profile to your case, and wait for someone to dig through it, but you can open it too! The same information that helps support investigate an issue can help you understand what your system is doing. You don’t need to understand what every file is, just knowing where to look is a good start.

How to Generate a Nagios XI Diagnostic Profile

To generate a Nagios XI diagnostic profile, run the following commands on your Nagios XI server:

wget -O XI_DiagnosticProfile.sh https://assets.nagios.com/downloads/support/XI_DiagnosticProfile.sh
chown root XI_DiagnosticProfile.sh
chmod 700 XI_DiagnosticProfile.sh
./XI_DiagnosticProfile.sh Support

Once finished, your diagnostic profile is saved as profile.zip and can typically be found in the /usr/local/nagiosxi/var/components/profile/ directory. You can move this file onto your local computer or you can extract its contents by running:

unzip profile.zip

After extracting the profile.zip file, you will find a base folder named something like profile-xxxxxxxxxx, where xxxxxxxxxx is the Unix timestamp of when the profile was generated.

The Nagios XI diagnostic profile contains sensitive information about your system, including configuration files, user accounts, and network details. Store it securely, don’t share it publicly, and delete extracted copies when you’re done. If you’re uploading a diagnostic profile to a Support Case, please know you have the option to retract any confidential data. All attachments to a case, including the diagnostic profiles are deleted after cases are closed.

Take a Look Inside the Profile

Here’s what you will find inside a Nagios XI diagnostic profile.

Monitoring Configuration

One of the most useful files in the profile is the profile-xxxxxxxxxx/objects.cache file. Instead of clicking around from screen to screen to see how your hosts or services are configured, you can look at one flat text file showing your monitoring object definitions such as:

  • hosts
  • services
  • host groups
  • service groups
  • contacts
  • contact groups
  • timeperiods
  • command definitions

To learn more about how these objects work together, explore the Nagios Doc Hub.

Database Health

The profile-xxxxxxxxxx/DB/ folder provides information about your database. Check files such as database_errors.txt, mysql_db_table_crash.txt, and check_table.txt to see if your database is in need of repairs.

Web Interface and PHP Errors

The profile-xxxxxxxxxx/Apache-php folder contains diagnostic information for the web server and PHP components that power the Nagios XI interface. Logs such as error_log.txt and others can help troubleshoot such issues as pages failing to load, authentication errors, and reports exceeding PHP memory or execution limits.

Operating System Logs

The profile-xxxxxxxxxx/logs/ directory contains operating system defined log files, such as the messages log. They can help identify service failures, resource problems, or other system events around the incident in question.

Nagios Monitoring Logs

The profile-xxxxxxxxxx/nagios/ folder contains collected Nagios logs. Start here when investigating such things as host and service state changes, notifications, or monitoring engine events.

Performance and Resource Usage

For performance issues, files like profile-xxxxxxxxxx/memorybyprocess.txt and profile-xxxxxxxxxx/top.txt can show which processes are consuming the most resources.

Third-Party Security Software

The profile-xxxxxxxxxx/security_agents_installed.txt informs support of any third-party security processes that could potentially interfere. See our Important Information about Security Hardening and Third-Party Software on Nagios Systems for more information.

Common Issues You Can Fix Yourself

The fixes below make changes to your system, so take a backup or snapshot of your Nagios XI server before you start.

Expired Nagios User Password

Nagios Support often finds that the Nagios user’s password has expired on customer’s XI servers. You can double check yourself by looking at the profile-xxxxxxxxxx/nagios-user-status.txt file. If it is expired, then you can fix it by running:

passwd --delete nagios
chage -I -1 -m 0 -M 99999 -E -1 nagios
systemctl restart crond

Incorrect umask Settings

Nagios Support also finds that the umask can be off. Check out profile-xxxxxxxxxx/umask.txt to confirm that it’s set to 0022 for both the nagios and root users. If not, then you can run the following commands:

Log in as the root user and run:

umask 0022

Then log in as the nagios user and run:

umask 0022

License and API Connection Problems

Problems with updating your license or your license falsely showing as expired can sometimes be caused by issues connecting to our API. Check out the profile-xxxxxxxxxx/api-connectivity.txt file to confirm if your Nagios XI can successfully communicate with our API.

Additional Assistance

If you would like any assistance fixing an issue on an actively licensed Nagios system, feel free to open a Support Case by logging into the Nagios Customer Support Portal. Be sure to attach your Nagios XI diagnostic profile.

For questions on systems without an active license, or to learn from the Nagios Community, visit the Nagios Support Forum. Share specific log excerpts there rather than your full diagnostic profile, since it contains sensitive information about your system.

Share: