Empty Status Information in Nagios graphic interface

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Empty Status Information in Nagios graphic interface

Postby ssm_mon » Mon Jul 09, 2018 6:12 am

Hello,

We use «Nagios Core 4.2.4», plugin «check_nrpe 3.0.1» (in this case, with «check_eventlog» command) and «NSClient++ 0.5.0.62», on Windows servers, to check these servers System and Application Logs.

The issue is the following: in some situations, Status Information (in Nagios graphic interface) appears completely empty, as seen in Picture1 (at the end of this topic), that shows the result of a Nagios Availability Report.

We found that this happens when Nagios has to display a Windows System or Application Log event that contains at least one word with cedilla characters - ç - and/or characters with accent marks (acute, grave, circumflex accents or tilde) - like «á», «à», «ê», «ã», etc.

Here is an example (obtained from the command line) where the characters that cause the issue are «ç» and «ã» in the word «invocação» (highlighted in bold red):

# ./check_nrpe -H <hostname> -c check_eventlog -a "filter=level in ('error','critical') AND source IN ('SAPIntegrationServices') AND id IN (370)" "warn=count ge 1" "crit=count ge 1" "perf-config=*(ignored:true)" "empty-syntax=%(status): Eventlog check" "detail-syntax= ---INICIO--- log=%(log), level=%(level), source=%(source), eventid=%(id), written=%(written), message=%(message)(%(count))" log=system log=application "scan-range=-21h"

CRITICAL: 1 message(s) ---INICIO--- log=Application, level=error, source=SAPIntegrationServices, eventid=370, written=20:35, message=Internal errors: Erro na invoca▒▒o na logica SAP (...)

Can someone help us please?
Thanks in advance.

Picture1.png
Picture1 - Nagios Availability Report
ssm_mon
 
Posts: 17
Joined: Tue Feb 24, 2015 11:37 am

Re: Empty Status Information in Nagios graphic interface

Postby mcapra » Tue Jul 10, 2018 9:46 am

Try leveraging the encoding parameter in your NSClient++ configuration:
https://docs.nsclient.org/reference/client/NRPEServer/#nrpe-payload-encoding

Set it to whatever encoding is being used on your Nagios Core machine.

An alternative would be to leverage some sort of wrapper script with either check_nrpe or the check_eventlog command to strip out problematic characters, but that's kinda lazy.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3313
Joined: Thu May 05, 2016 3:54 pm

Re: Empty Status Information in Nagios graphic interface

Postby scottwilkerson » Tue Jul 10, 2018 3:50 pm

mcapra wrote:Try leveraging the encoding parameter in your NSClient++ configuration:
https://docs.nsclient.org/reference/client/NRPEServer/#nrpe-payload-encoding

Set it to whatever encoding is being used on your Nagios Core machine.

An alternative would be to leverage some sort of wrapper script with either check_nrpe or the check_eventlog command to strip out problematic characters, but that's kinda lazy.


Thanks @mcapra
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Empty Status Information in Nagios graphic interface

Postby ssm_mon » Wed Jul 11, 2018 4:52 am

Hi mcapra!
Thanks a lot for your answer!
As soon as possible, we will create the conditions to try the solutions you suggested.
ssm_mon
 
Posts: 17
Joined: Tue Feb 24, 2015 11:37 am

Re: Empty Status Information in Nagios graphic interface

Postby scottwilkerson » Wed Jul 11, 2018 8:42 am

ssm_mon wrote:Hi mcapra!
Thanks a lot for your answer!
As soon as possible, we will create the conditions to try the solutions you suggested.


Let us know how it turns out
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Empty Status Information in Nagios graphic interface

Postby ssm_mon » Fri Jul 13, 2018 4:49 am

Hi mcapra!
We are very grateful for your help.
We have tried your first suggestion («Try leveraging the encoding parameter in your NSClient++ configuration: (…) Set it to whatever encoding is being used on your Nagios Core machine») and it worked fully!

Since UTF8 is the Nagios Core machine encoding (LANG=en_US.UTF-8), we added the following entry in the nsclient.ini file of a Windows machine with accented characters in its Application log events:

[/settings/default]
; NRPE PAYLOAD ENCODING
encoding = utf8

After restarting NSClient++ service on that Windows machine, Nagios began showing Status Information with accented characters instead of an empty one.

Thanks a lot again!
ssm_mon
 
Posts: 17
Joined: Tue Feb 24, 2015 11:37 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 14 guests