Re: how can monitor with check_by_ssh
Posted: Thu Dec 01, 2016 3:52 pm
What's the output of /usr/local/nagios/libexec/check_uptime on the remote server?
Support for Nagios products and services
https://support.nagios.com/forum/
dwhitfield wrote:What's the output of /usr/local/nagios/libexec/check_uptime on the remote server?
Code: Select all
/usr/local/nagios/libexec/check_uptime
Uptime OK: 16 day(s) 23 hour(s) 30 minute(s) | uptime=24450.000000;;;
ruffsense wrote:what are the permissions of check_ssh?
Code: Select all
-rwxr-xr-x. 1 nagios nagios 183476 May 26 2016 /usr/local/nagios/libexec/check_by_ssh
dwhitfield wrote:What user did you run /usr/local/nagios/libexec/check_uptime as on the remote server? Was in nagios? If not, can you try that.
Code: Select all
[nagios@nppptgs root]$ /usr/local/nagios/libexec/check_uptime
Uptime OK: 17 day(s) 0 hour(s) 4 minute(s) | uptime=24484.000000;;;
Code: Select all
[root@nppptgs ~]# /usr/local/nagios/libexec/check_uptime
Uptime OK: 17 day(s) 0 hour(s) 5 minute(s) | uptime=24485.000000;;;
dwhitfield wrote:This is the same server with the NRPE issue, yes? Is that server in production? If not, it might be easier at this point to just start over with that server and go back to NRPE since you have that working on your other servers.
baber wrote:dwhitfield wrote:This is the same server with the NRPE issue, yes? Is that server in production? If not, it might be easier at this point to just start over with that server and go back to NRPE since you have that working on your other servers.
yes this is the same server and this sever is in production site and is so important
sshd config file was ok ?
I think problem is sshd_conf file on remote host for example i said previously can not login with root user directly to server first have to login with user X Then su -
What is your idea??
@baber, we ready to lock this up?-E, --skip-stderr[=n]
Ignore all or (if specified) first n lines on STDERR [optional]