Page 1 of 1
web site conten monitoring
Posted: Tue Jun 17, 2014 3:21 am
by cklayus
I am monitoring websites with specific content expression. the site is in hebrew i have noticed that nagios is unable to handle hebrew expressions. is something that can be resolved?
Re: web site conten monitoring
Posted: Tue Jun 17, 2014 9:29 am
by mmiltchev
It will depend on the plugin or wizard are you using to match the content expression. Could you please confirm what plugins/wizards you are having issues with?
Re: web site conten monitoring
Posted: Wed Jun 18, 2014 8:07 am
by cklayus
I am using the standard expression check configured using the monitoring wizard
Re: web site conten monitoring
Posted: Wed Jun 18, 2014 9:19 am
by tmcdonald
Hebrew might have some problems with UTF-8:
http://wordpress.org/support/topic/hebrew-encoding
Can you run the check form the command line and see if the output is still broken?
Code: Select all
/usr/local/nagios/libexec/check_http -H <host address> -s <string in Hebrew>
Please post the output here.
Re: web site conten monitoring
Posted: Thu Jun 19, 2014 5:11 am
by cklayus
[root@monitor nagiosxi]# /usr/local/nagios/libexec/check_http -H
www.idi.org.il -s "על המכון"
HTTP OK: HTTP/1.1 200 OK - 94168 bytes in 4.499 second response time |time=4.498622s;;;0.000000 size=94168B;;;0
the check is ok. but on the nagios web interface the result is different
HTTP CRITICAL: HTTP/1.1 200 OK - string '?? ?????' not found on '
http://www.idi.org.il:80/' - 94168 bytes in 4.262 second response time
it looks like nagios is seeing the hebrew string as a bunch of question marks
Re: web site conten monitoring
Posted: Thu Jun 19, 2014 9:02 am
by tmcdonald
So it's not a problem in Core. In your XI web interface, please go to Configure -> Core Configuration Manager, and find the service under Services. Click the name and post a screenshot of the page. It should look similar to this:
2014-06-19 08_59_14-Nagios XI - Configuration.png
The check seems to be working for me - I removed a letter and it came back as this:
2014-06-19 09_01_02-Nagios XI.png
Also what version of Nagios XI is this?
Re: web site conten monitoring
Posted: Sun Jun 22, 2014 4:12 am
by cklayus
its the latest
as you can see I have question marks instead of the hebrew string. I tried to manually change it to hebrew, no good.
Re: web site conten monitoring
Posted: Mon Jun 23, 2014 9:13 am
by tmcdonald
I just tested this on a fresh 2014R1.1 system and I am seeing the same issues you are, so it must have been fixed in a later version. I will update this post when I know more.
UPDATE: 2014R1.2 fixes this issue and will be released some time tomorrow.
Re: web site conten monitoring
Posted: Thu Jun 26, 2014 6:19 am
by cklayus
YES the update did the job.
thnx