Nagios 3 and SSH
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Nagios 3 and SSH
I am getting a 'connection refused' on my SSH in Nagios. I couldn't find squat on how to configure. Any advice would be helpful. Thanks! Screenshot is attached.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios 3 and SSH
Do you have an ssh daemon running on the local nagios server? Is port 22 open?
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Re: Nagios 3 and SSH
No sir. I am not aware on how to take these steps. Any helpful info would be greatly appreciated.
Re: Nagios 3 and SSH
Depending on your server's OS, you might have to install SSH in a different way. It looks like you are running Debian, so this should work:
Code: Select all
sudo apt-get install opensshFormer Nagios employee
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Re: Nagios 3 and SSH
Thank you! I will try as soon as possible. How do I go about opening port 22? Thanks!
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Re: Nagios 3 and SSH
Tried that command and got a 'cannot find openssh package' error.
Re: Nagios 3 and SSH
Try:
Code: Select all
apt-get install openssh-serverFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Re: Nagios 3 and SSH
Did this and it solved my SSH problem! Thanks! Here is a nice guide on how to configure SSH-Server.
http://www.jonathanmoeller.com/screed/?p=3606
http://www.jonathanmoeller.com/screed/?p=3606
-
Metalliogre
- Posts: 17
- Joined: Mon Jun 02, 2014 6:57 pm
Re: Nagios 3 and SSH
It started refusing my SSH connection again 
Re: Nagios 3 and SSH
It's been a while since my Ubuntu days, forgot about the "-server" part 
Did you change the port like they did in the article? You should probably keep it on port 22, otherwise you will need to edit the Nagios checks to use the new port.
Also, did you open up/disable the firewall? http://www.howtogeek.com/115116/how-to- ... -firewall/
Did you change the port like they did in the article? You should probably keep it on port 22, otherwise you will need to edit the Nagios checks to use the new port.
Also, did you open up/disable the firewall? http://www.howtogeek.com/115116/how-to- ... -firewall/
Former Nagios employee