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 ?
Error using SSH_Proxy wizard
-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
Error using SSH_Proxy wizard
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error using SSH_Proxy wizard
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.
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-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
Re: Error using SSH_Proxy wizard
Thanks a lot you where right i have missed out nagios-pluginscottwilkerson 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
One thing can i get any help in writing custom plugins ?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error using SSH_Proxy wizard
no problem.nagiostool wrote:Thanks a lot you where right i have missed out nagios-plugin
I can point you in the right direction...nagiostool wrote: One thing can i get any help in writing custom plugins ?
http://nagios.sourceforge.net/docs/3_0/plugins.html
http://nagiosplug.sourceforge.net/devel ... lines.html
and then once they work
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf