[sort of SOLVED] Script (plugin) not working as expected

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
shirishlnx
Posts: 17
Joined: Mon Mar 19, 2012 5:10 am

Re: [sort of SOLVED] Script (plugin) not working as expected

Post by shirishlnx »

Hello ...

Here am not sure wht you are trying to achieve what s your

Code: Select all

"/usr/opt/something/command"
[/b]
#######
First:
/usr/lib/nagios/plugins/check_by_ssh -H 10.xx.xx.xx -C /usr/opt/something/command

Here you are not passing any user info who to fire this command on remote node ...??
Correct it as:
/usr/lib/nagios/plugins/check_by_ssh -l nagios -H 10.xx.xx.xx -C /usr/opt/something/command
#######
Second:
You need to stablish a password less auth ssh login from you nagios server to Remote server .. Follow below first ...
Step 1> Login to remote host
# create user nagios with some password
Step-2> From NagiosServer: Login as user nagios
# ssh-keygen -t dsa <-- do not pass any pass phrase
# ssh-copy-id -i .ssh/id_dsa.pub nagios@your-remote-server-ip
TEST
# ssh nagios@your-remote-server-ip

#### Now test Below
/usr/lib/nagios/plugins/check_by_ssh -l nagios -H <your-remote-server-ip> -C "uname -a"

#######
Third
Now ensure that what command you are fireying on remote host : user nagios should have proper permission to fire same .

--Shirish Shukla
http://shirishlinux.blogspot.in
darthcolo
Posts: 9
Joined: Thu Feb 09, 2012 12:59 pm

Re: [sort of SOLVED] Script (plugin) not working as expected

Post by darthcolo »

Thanks for your help.
I will check it as soon as I have some spare time.
shirishlnx
Posts: 17
Joined: Mon Mar 19, 2012 5:10 am

Re: [sort of SOLVED] Script (plugin) not working as expected

Post by shirishlnx »

Does your problem got resolved !
Locked