Page 1 of 1

Nagios XI Error on Mongodb alerts.

Posted: Tue Oct 01, 2019 8:41 pm
by Srinija544
Hi All,

currently, I am working on Nagios XI. I got an ERROR alert for the below mentioed service related to Mongodb Server.

Error message:
CRITICAL - General MongoDB Error: name must be an instance of basestring

check_Command:
check_mongodb

Command_view:
Moderator Note: Content removed per request

$ARG1$: replication_lag_percent

Plugin script-check_mongodb.py:


What i observed is we can see this error only for secondary servers. Please find the attached screenshot and help me in solving this error.

Re: Nagios XI Error on Mongodb alerts.

Posted: Wed Oct 02, 2019 2:35 pm
by benjaminsmith
Hello,

Take a look at the forum thread below as it is similar to your issue, and a updated plugin was provided (see page 2) to correct the error on secondary nodes.

Error in Mongo DB Replication_Lag_Percentage monitoring

Also, please be sure to make a backup of your serveror the plugin before making any changes.