On 8/30/11 11:13 AM, Nygren, Ray wrote:
> Version 3.2.3 nagios debian linux and plugins 1.4.15
> Micorsoft puts a $ in the SQL server services but your code truncates
> the service registry name after the $
> check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS
> returns service not found MSSQL$
> Is there any solution? I tried single quotes, double quotes, \ and
> back tick with same error
> I even renamed the service without $ and still no go.(Not display name
> but registry name)
Try double $$. $ is a special character for both Nagios, and most
likely, your shell. So, you should escape it for Nagios, by adding a
second dollar sign. You should also include the whole last bit in
check_command check_nt!SERVICESTATE!-d SHOWALL -l 'MSSQL$HEMS'
Get latest updates about Open Source Projects, Conferences and News.