check_mysql_health fails when password has exclamation mark

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
utsadmin
Posts: 1
Joined: Wed Nov 08, 2017 6:35 pm

check_mysql_health fails when password has exclamation mark

Post by utsadmin »

Hi

If I run the following command from the commandline on nagios server, it returns OK:

./check_mysql_health --hostname blabhlah.com --username blahuser --password 'blahblah!' --mode slow-queries
OK - 0 slow queries in 20518 seconds (0.00/sec) | slow_queries_rate=0.00%;0.1;1

However, the gui shows a warning and this error:

/bin/sh: -c: line 0: unexpected EOF while looking for matching `''

I have worked around this problem by changing the password to one which does not include an exclamation mark.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_mysql_health fails when password has exclamation m

Post by cdienger »

! is a special character for Nagios. https://support.nagios.com/kb/article/n ... s-580.html covers how you can still use special characters in configs.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked