-L options for sucure password in nagios plugin not working

11 views
Skip to first unread message

raj.p...@cozygames.com

unread,
Oct 26, 2016, 2:39:08 AM10/26/16
to Percona Discussion
Hi,

When I run this

mysql_config_editor set --login-path=bs12 --host=localhost --user=nagios --password

It creates a file in /home/nagios/

But running:
/usr/lib/nagios/plugins/check_mysql -L b12 gives this

Access denied for user 'root'@'localhost' (using password: NO)


Thanks,
Raj

edgar...@gmail.com

unread,
Mar 13, 2017, 8:31:38 AM3/13/17
to Percona Discussion, raj.p...@cozygames.com

Hi, it seems like you forgot "s" in bs12 on the second command

Raj Pandey

unread,
Mar 14, 2017, 7:22:01 AM3/14/17
to edgar...@gmail.com, Percona Discussion
Hello Sir,

It is working now if I run the command manually on the client server but when I am running it from nagios server I am getting the following error

./check_nrpe -H any host -c check_threads_connected,

ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)



Thanks,
Raj
Reply all
Reply to author
Forward
0 new messages