View previous topic :: View next topic |
Author |
Message |
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Mon Feb 07, 2005 3:52 pm Post subject: nagios configuration question |
|
|
I recently set up nagios and I'm trying to get it more functional. I'd like to use the check_by_ssh module to get information on remote hosts such as disk usage(df -h), and cpu utilization(w) and set notifications based on these paramaters. Does anyone have a working example they could share. |
|
Back to top |
|
|
tdemarest Tux's lil' helper
Joined: 18 Mar 2003 Posts: 99 Location: California, USA
|
Posted: Mon Feb 07, 2005 4:34 pm Post subject: |
|
|
We have a moderately complex nagios setup, but I haven't been using check_by_ssh. We use the nrpe setup, which works quite nicely. |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Mon Feb 07, 2005 4:55 pm Post subject: |
|
|
I would prefer not to have to install anything on the client machines. Also security as a big concern in our network so ssh is desirable. |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Wed Feb 09, 2005 11:14 pm Post subject: |
|
|
In the end I couldn't get the check_by_ssh working properly, so I used nrpe. I would have prefered something with encryption and authentication. |
|
Back to top |
|
|
Mad_Jester Tux's lil' helper
Joined: 08 Jan 2004 Posts: 85
|
Posted: Mon May 09, 2005 5:12 am Post subject: check_by_ssh |
|
|
We use check_by_ssh for all of our local checks. If you are still looking for help or examples I would be happy to help. |
|
Back to top |
|
|
m4chine Apprentice
Joined: 12 Mar 2003 Posts: 271 Location: Ventura, CA, USA
|
Posted: Sun Apr 16, 2006 12:00 am Post subject: Re: check_by_ssh |
|
|
Mad_Jester wrote: | We use check_by_ssh for all of our local checks. If you are still looking for help or examples I would be happy to help. |
I would appreciate some examples of a check_by_ssh implementation. I just installed nagios-2.2 but I can't seem to get check_by_ssh working. I've setup pub_keys for authentication, but in the monitor i see this: "Could not create directory '/dev/null/.ssh'."
Any help would be appreciated. Thanks. _________________ never trust a man who can count to 1023 on his fingers.
-m4chine |
|
Back to top |
|
|
Mad_Jester Tux's lil' helper
Joined: 08 Jan 2004 Posts: 85
|
Posted: Sun Apr 16, 2006 6:20 pm Post subject: Re: check_by_ssh |
|
|
m4chine wrote: |
I would appreciate some examples of a check_by_ssh implementation. I just installed nagios-2.2 but I can't seem to get check_by_ssh working. I've setup pub_keys for authentication, but in the monitor i see this: "Could not create directory '/dev/null/.ssh'." |
First you need to get ssh working between systems for the nagios user. Right now it looks like the nagios user doesn't have a valid home directory, instead just /dev/null. Check the passwd file and set nagios up with a home dir.
Then create nagios users on the remote systems. Verify ssh between nagios users via the IP's rather than the names. Get it all working outside of nagios first. |
|
Back to top |
|
|
|