trouble with check_mysql and USER macros

Aleksey Tsalolikhin aleksey.tsalolikhin at gmail.com
Fri Dec 2 01:22:43 CET 2005


On 11/30/05, Hugo van der Kooij <hvdkooij at vanderkooij.org> wrote:
> On Wed, 30 Nov 2005, Aleksey Tsalolikhin wrote:
>
> >         [In check_mysql definition in checkcommands.cfg:]
> >         command_line    $USER1$/check_mysql -H $ARG1$ -d $ARG2$ -u
> > $ARG3$ -p $ARG4$
>
> Why not use $USER4$ here?

My consideration was that then I'd only be able to check one database,
the one that password fits.
But I only HAVE one database right now, so this works; thank you.

> I think not all files will support variables the way you think. But this
> time you have passed a password named $USER4$ instead of the variable.

Yup.  I am not going to ask why $USER4$ works in checkcommands.cfg but
not in services.cfg. :)
Looking at http://nagios.sourceforge.net/docs/1_0/macros.html it seems
like the $USERn$ macros should work across the board, but I guess it
refers to Nagios internal processes rather than configuration files.

Thanks!

Now on to add more modules...

Happily,
-at


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list