Checking via SSH
Posted: Thu Jan 02, 2014 10:01 am
We have started checking some servers via ssh, and not the conventional method. we are not using the check_by_ssh method or connecting and running script installed on the remote machine. Instead, we are using this command(with ssh keys set between the servers):
And then we are using some custom scripts to do the basic disk, mem and cpu checks. Is there any issue doing checks using this method that you can think of? The checks have to be a script, can't be a compile program like the default check_mem or check_disk is the biggest issue I can think of, any others?
This group wants to use this method so the scripts don't need copied and/or updated multiple places, just the nagios server.
Code: Select all
ssh nagios@$HOSTADDRESS$ 'bash -s' -- < $USER1$/$ARG1$ $ARG2$
This group wants to use this method so the scripts don't need copied and/or updated multiple places, just the nagios server.