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):
Code: Select all
ssh nagios@$HOSTADDRESS$ 'bash -s' -- < $USER1$/$ARG1$ $ARG2$
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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at
BanditBBS - Also check out my Nagios stuff on my personal page at
Bandit's Home and at
github