Your code is getting rows from the query, but prints "has no mapped drive". So perhaps the string returned for mapped drives under linux doesn't match "\\storage\shared"? If you print the value, you may see another string for mapped drives. (I don't use WMI so I don't know. But what if the reported drive under linux matched the unix path format, and reported something like "//storage/shared"?)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: nrpe + wmi problem
by roboticus
in thread nrpe + wmi problem
by habshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |