Page 1 of 1

Error using SSH_Proxy wizard

Posted: Wed Jan 04, 2012 2:56 am
by nagiostool
Hi i have installed SSH_Proxy monitorign wizard and monitored one linux host but i'm getting warning with the services , i have the screenshot attached please take a look at it

when i have run the following command from Nagios server I'm getting correct output, but through configuration wizard its throwing error.

/usr/loca/nagios/libexec/chech_by_ssh -H 192.168.3.1 -C uptime
11:28:19 up 109 days, 20:41, 5 users, load average: 1.28, 1.11, 1.03

With wizard only there is only provision to check three services , can i add other service if so how and where can i find them and there usage ?

Re: Error using SSH_Proxy wizard

Posted: Wed Jan 04, 2012 11:05 am
by scottwilkerson
I think you missed one critical step in the documentation, that is
Install Nagios plugins and/or monitoring scripts

The test works because the command you are executing (after the -C ) is just uptime. This means you have the connection working properly. The wizard is passing the "Remote Command" field via ssh to the machine you are monitoring, the plugins need to put on the machine you are monitoring so they can be executed.

You can find some standard plugins on the Nagios server in the /usr/local/nagios/libexec folder and on the Nagios Exchange

Also, it will help to know what parameters need to be passed for each plugin ( they also go in the "Remote Command" field) which you can do from the commandline with a -h, ie.

Code: Select all

# /usr/local/nagios/libexec/check_load -h

Re: Error using SSH_Proxy wizard

Posted: Thu Jan 05, 2012 5:19 am
by nagiostool
scottwilkerson wrote:I think you missed one critical step in the documentation, that is
Install Nagios plugins and/or monitoring scripts

The test works because the command you are executing (after the -C ) is just uptime. This means you have the connection working properly. The wizard is passing the "Remote Command" field via ssh to the machine you are monitoring, the plugins need to put on the machine you are monitoring so they can be executed.

You can find some standard plugins on the Nagios server in the /usr/local/nagios/libexec folder and on the Nagios Exchange

Also, it will help to know what parameters need to be passed for each plugin ( they also go in the "Remote Command" field) which you can do from the commandline with a -h, ie.

Code: Select all

# /usr/local/nagios/libexec/check_load -h
Thanks a lot you where right i have missed out nagios-plugin

One thing can i get any help in writing custom plugins ?

Re: Error using SSH_Proxy wizard

Posted: Thu Jan 05, 2012 10:32 am
by scottwilkerson
nagiostool wrote:Thanks a lot you where right i have missed out nagios-plugin
no problem.
nagiostool wrote: One thing can i get any help in writing custom plugins ?
I can point you in the right direction...
http://nagios.sourceforge.net/docs/3_0/plugins.html
http://nagiosplug.sourceforge.net/devel ... lines.html
and then once they work :roll:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf