Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nagios configuration question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Mon Feb 07, 2005 3:52 pm    Post subject: nagios configuration question Reply with quote

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
View user's profile Send private message
tdemarest
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 99
Location: California, USA

PostPosted: Mon Feb 07, 2005 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Mon Feb 07, 2005 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Wed Feb 09, 2005 11:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Mon May 09, 2005 5:12 am    Post subject: check_by_ssh Reply with quote

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
View user's profile Send private message
m4chine
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 271
Location: Ventura, CA, USA

PostPosted: Sun Apr 16, 2006 12:00 am    Post subject: Re: check_by_ssh Reply with quote

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
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Sun Apr 16, 2006 6:20 pm    Post subject: Re: check_by_ssh Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum