Hi
I use check_by_ssh to monitoring my remote agent hosts. when I try to read my remote agent hosts memory using check_mem.pl it returning value of my local master host memory.
Please show us how you are telling this service check to use check_by_ssh:
that is not shown in the detail you provided so far.
What is the difference between this check (which returns results from the
master) and another check (you say you are using check_by_ssh for other things
as well) which returns results from the remote machine.
You didn’t post the templates you’re using for these objects (‘generic-service’ & ‘generic-host’), but assuming they’re nothing special and probably close to the defaults, you’re not telling ICINGA anywhere to use check_by_ssh.
The configuration you posted suggests, that you’re just telling the satellite (or master), to which the host ‘qzz001’ is bound to, to run the check_command ‘memory’, which is just check_mem.pl in the end.
Instead you have to tell the satellite (or master) to run check_by_ssh with the target machine being the host ‘qzz001’ (or any other host you want to run the check against).
You’ll see, that the check_command used in that example is different from yours.
Also, consider just using ICINGA agent on the target node, if it’s possible. Check_by_ssh is only meant to be used, if installing/running ICINGA agent is not possible.