Hey Hans,
you should try to include the password via resource.cfg, than it
should not be touched by Icinga.

Cheers
Markus

2013/8/13 Hans Scheffers <hans.scheff...@outlook.com>:
> Hi
>
> We monitor a number of devices and with some we use a eventhandler to
> restart a service.
> I have a problem with a password tahta contains a $ sign, as this is
> interpreted as the start of a variable under linux as expected..
>
> In the icinga docs I read escaping a $ sign is possible with a second $
> sign, but this is not working...  the complete chain of commands used to log
> in a netwerkdevice:
>
> icinga detects a device unreachable
> icinga calls the eventhandler (bash shell script)
> After 3 retries or more the eventhandler calls a  expect script with a
> username / password
> The expect script logs in and resets a networt port.
>
>
> The password containing the $ sign has to be transported along these scripts
> into the expect script...  What would be the way to do this?
>
> icinga: $$ -> $ in the shell script, so the shell script interpretes the
> rest as variable...
>
> Some system stats:
> OpenSuSE 12.2
> Icinga 1.9.3 rpm including ido2db
> MySQL DB
> Hosts Checked: 110
> Services Checked: 2600
>
>
> (i know you shouldn't use a $ sign in passwords... but other people didn't
> ;) )
>
> Hans Scheffers
> AIX / Linux SysAdmin
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/icinga-users
>



-- 
Markus Frosch
mar...@lazyfrosch.de
http://www.lazyfrosch.de

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to