Blog
- Home
- Blog
This article covers how to resolve Two Factor Authentication error in Nagios.
To Reset nagiosadmin account Password:
1. Open an SSH or direct console session to your Nagios XI host and execute the following command:
/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=newpassword
Note: If you would like to use special characters in your password, you should escape them with "\".
For example, if you want to set your new password to be "$new password#", then you can run:
/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=\$new\ password\#
This article covers methods to resolve WordPress error "Sorry this file type is not permitted for security reasons". Basically, "Sorry this file type is not permitted for security reasons" in WordPress occurs when we try to upload a document to the WordPress library.
As we explained above, WordPress default configuration limits the types of files that you can upload to your site for security reasons.
To Fix "Sorry, This File Type Is Not Permitted for Security Reasons" Error in WordPress, Try to Use the Free WP Extra File Types Plugin:
1. If you'd prefer not to edit your wp-config.php file and/or you want more control over exactly which file types can be uploaded to your site, you can use the free WP Extra File Types plugin at WordPress.org
2. Once you install and activate the plugin, go to Settings → Extra File Types in your WordPress dashboard.
3. There, you'll see a lengthy list of file types. Check the box next to the file type(s) that you want to be able to upload and then click Save Changes at the bottom.
4. If you don't see the file type that you'd like to upload on the list, you can also add your own custom file types at the bottom of the plugin's settings list.
This article covers Nagios SNMP MIB Upload Problems.
This issue happens while uploading SNMP MIB files and it could be as a result of insufficient permissions on the SNMP MIB files.
Execute the following commands to reset the permissions and ownership on the Nagios SNMP MIB files:
# chmod -R ug+rw /usr/share/snmp/mibs
# chown -R root:nagios /usr/share/snmp/mibs
After executing those commands you should be able to upload the MIB file that previously did not work.
This article covers methods to fix "Cannot find module" errors in Nagios.
Basically, SNMPTT Service generates "Cannot find module" errors in Nagios when a MIB file contains spaces in the filename.
The MIB files are located in the /usr/share/snmp/mibs/ folder.
This was identified as an issue and resolved in Nagios XI 5.4.0. As of version 5.4.0, when you upload MIBs via the Manage MIBs page the filename will have any spaces replaced with an underscore.
This article covers how to Reset Upgrade Status In Nagios Web Interface.
When upgrading Nagios XI using the web interface the upgrade progress may stall with the message "Upgrade in progress".
Sometimes you will need to clear this message manually due to unforeseen circumstances, this guide explains how to clear the message.
To Reset Upgrade Status in Nagios:
The following command will reset the upgrade status on Nagios XI (using the default username and password listed above):
For MySQL/MariaDB:
mysql -u'nagiosxi' -p'n@gweb' nagiosxi -e "update xi_commands set status_code = '2' where command = '1120';"
This article covers methods to fix WordPress error "The site is experiencing technical difficulties".
Most of the time, this error is the result of a plugin or theme conflict. Due to WordPress open-source nature, many different developers with various coding backgrounds and styles create extensions that users can add on to the platform.
Unfortunately, this means that sometimes plugins and themes from different developers don’t play nicely with one another. When two tools with conflicting code are both installed on a WordPress site, it can lead to a wide range of issues.
To fix this WordPress error,
1. Troubleshoot for a Plugin or Theme Conflict
It's important to note that, while you're working in recovery mode, the fatal error will persist for other users and your site's visitors. Only the user who logged in via the recovery mode link will be able to access the website normally.
2. Ensure That You're Running a Supported Version of PHP
If you're running an outdated version of PHP, you'll need to update it.
3. Enable WordPress Debug Mode
To enable this feature, you'll need to access your wp-config.php file via FTP, and add the following line of code right before "That's all, stop editing! Happy publishing.":
define( 'WP_DEBUG', true );