I managed to solve the issue.
Environment PATH variable is different in xinet.d respect ssh session, it doesn’t load “/etc/profile” nor root .bash_profile. So the agent don’t know that qmail-qstats is under /var/qmail/bin path which is set in “/etc/profile”.
Possible solutions are:
create a symlink of /var/qmail/bin/qmail-qstats under /usr/local/bin
edit PATH variable into agent (/usr/bin/check_mk_agent) adding the path to your qmail-qstats
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.