I am using the check_pgsql plugin to check my postgres database on a
remote server. My postgres password has special characters "$" and
"#". It works fine from the command line when I parse my password
using the "\" escape sequence. But I tried from Nagios configuration
file and it says "Password authentication failed." commands.cfg has
define command{
command_name check_postgres
command_line $USER1$/check_pgsql -H $HOSTADDRESS$ -l $ARG1$ -p
$ARG2$ -d $ARG3$
}
unix.cfg
define service{
use generic-service
host_name server1
service_description Postgres Database Engine
check_command
check_postgres!nagios!pa$$w#rd!database_name
}
In commands.cfg I have tried putting the password directly with escape
sequence and double quotes, with no luck.
Can anyone please help me resolve this issue?
Thanks.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null