We are using check_by_ssh to monitor all remote Linux servers. Commands execute successfully, but when the status returned to the nagios server from the remote server it looks like this:
OK - check_by_ssh: Remote command ‘/usr/local/nagios/libexec/check_disk -m -w 5% -c 3% -p /’ returned status 0
Same Information is written to the log file and displayed in Status Information on the web page.
If I execute the same command on the remote server I get the actual numbers: free and used disk space.
How do we get check_by_ssh to return actual data instaed of just the status and the command that was being executed.