FW: Uptime on Linux Servers
Richard Santiago
rsantiago at rcm.upr.edu
Fri Jun 10 20:04:18 CEST 2005
Thanks to all specifically to Mr. Joseph Petrucci.
Got it working perfectly with check_by_ssh.
I'm sharing his e-mail with all of you.
Richard Santiago
OSI - Administración de Sistemas
UPR - Recinto de Ciencias Médicas
phone: 787.758.2525 x. 2934
e-mail: rsantiago at rcm.upr.edu <mailto:rsantiago at rcm.upr.edu>
________________________________
From: Petrucci, Joseph [mailto:Joseph.Petrucci at ddiworld.com]
Sent: Thursday, June 09, 2005 3:08 PM
To: Richard Santiago
Subject: RE: [Nagios-users] Uptime on Linux Servers
Try this
ssh implements the RSA authentication protocol automatically. The user
creates his/her RSA key pair by running ssh-keygen(1). This stores the
private key in $HOME/.ssh/identity and the public key in
$HOME/.ssh/identity.pub in the userâs home directory. The user should
then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, though the
lines can be very long). After this, the user can log in without giving
the password. RSA authentication is much more secure than rhosts authen-
tication.
-----Original Message-----
From: Richard Santiago [mailto:rsantiago at rcm.upr.edu]
Sent: Thursday, June 09, 2005 2:34 PM
To: Petrucci, Joseph
Subject: RE: [Nagios-users] Uptime on Linux Servers
Joe,
Thanks for your help man.
Richard Santiago
OSI - Administración de Sistemas
UPR - Recinto de Ciencias Médicas
phone: 787.758.2525 x. 2934
e-mail: rsantiago at rcm.upr.edu <mailto:rsantiago at rcm.upr.edu>
________________________________
From: Petrucci, Joseph [mailto:Joseph.Petrucci at ddiworld.com]
Sent: Thursday, June 09, 2005 2:31 PM
To: Richard Santiago
Subject: RE: [Nagios-users] Uptime on Linux Servers
IN ssh you can setup a trust so that the nagios ID only needs the key file and a pasword is not asked for. I will ask the SA that set it up for me how to and get back to you.
-----Original Message-----
From: Richard Santiago [mailto:rsantiago at rcm.upr.edu]
Sent: Thursday, June 09, 2005 2:22 PM
To: Petrucci, Joseph
Subject: RE: [Nagios-users] Uptime on Linux Servers
Hey Joe,
Sorry but what's done with the password part?. Just create an acoount with no password?
Thanks.
Richard Santiago
OSI - Administración de Sistemas
UPR - Recinto de Ciencias Médicas
phone: 787.758.2525 x. 2934
e-mail: rsantiago at rcm.upr.edu <mailto:rsantiago at rcm.upr.edu>
________________________________
From: Petrucci, Joseph [mailto:Joseph.Petrucci at ddiworld.com]
Sent: Thursday, June 09, 2005 1:52 PM
To: Richard Santiago; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Uptime on Linux Servers
I wrote a plugin that basically used
ssh <host> -l nagios /usr/bin/uptime
and parsed the information i needed. I also used the same approach for load average.
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Richard Santiago
Sent: Thursday, June 09, 2005 1:38 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Uptime on Linux Servers
Hi,
I'm tring to pull the uptime for all Linux servers into Nagios. Besides using check_snmp (which I found nowhere and it's used by check_uptime) is there another solution for this?.
Thanks.
Richard Santiago
OSI - Administración de Sistemas
UPR - Recinto de Ciencias Médicas
phone: 787.758.2525 x. 2934
e-mail: rsantiago at rcm.upr.edu <mailto:rsantiago at rcm.upr.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050610/8b5d9972/attachment.html>
More information about the Users
mailing list