Another option is to disable the requiretty in visudo, during the setup/upgrade of opsview.
Tomas Kucera wrote:
sudo: sorry, you must have a tty to run sudo

in this step script execute opsview reload

double recheck sudoers configurations
and finaly try on slave as nagios user command
'sudo /etc/somethnig/opsview reload'

without '' ..




Alexander C. Fossa - Xifos Limited píše v Čt 18. 02. 2010 v 15:46 +0000:
Hi,




[nag...@mon1 ~]$ /usr/local/nagios/bin/send2slaves Creating tar file
Processing for london
opsview.tar.1870.gz

100% 22MB 57.1KB/s 06:27 sudo: sorry, you must have a tty to run sudo
Error installing - moving to next server
Errors requiring manual intervention: 1
[nag...@mon1 ~]$



That seems to be alright then on the slave i run the install_slave
file and I get the nmis.conf error as below.


But If I look in the /usr/local/nagios/nmis/conf directory I have


[r...@mon1 nmis]# cd conf/
[r...@mon1 conf]# ls
contacts.csv    escalation.csv  iftypes.csv  locations.csv   logs.csv
   models.csv  nmis.key   outage.dat   scripts       slave.csv
sysinterface.csv  thresholds.csv  users.csv
enterprise.csv  events.csv      links.csv    logrotate.conf
 master.csv  nmis.conf   nodes.csv  privmap.csv  services.csv
 slaves.csv  sysnode.csv       toolset.csv     users.dat
[r...@mon1 conf]#

But the install_slave doesnt seem to be picking it up.


Alex








On 18 Feb 2010, at 15:40, Tomas Kucera wrote:

as nagios user from master server run /usr/local/nagios/bin/send2slaves -t

if it is ok run

/usr/local/nagios/bin/send2slaves
Alexander C. Fossa - Xifos Limited píše v Čt 18. 02. 2010 v 15:09
+0000:
Hi,


I seem to be getting a bit further with my slave install.


However it copies the files to the slave server over SCP fine and
then
I run the install_slave on the slave as root and get the error
below:




[r...@mon1 ~]# cd /usr/local/nagios/tmp && ./install_slave
Can't access neither configuration
file /usr/local/nagios/nmis/bin/../conf/nmis.conf,
nor /etc/nmis/nmis.conf

I'm not using NMIS and I believe it isn't enabled on my master.


Regards,


Alex






On 18 Feb 2010, at 14:01, James Whittington wrote:

First of all normally Opsview will be running as a user other
than
root, most likely user “nagios”.
So you should be trying to do something like this:
r...@opsview-demo:~# ssh [email protected] uname –a

You will need to know the nagios user password to copy.
User nagios will also need a ssh key generated
Here is a good link describing setup of certificated based ssh:
http://www.debian-administration.org/articles/152

Basically you
Create the key
nag...@opsview-demo:~# ssh-keygen -t rsa
Copy the key
nag...@opsview-demo:~# ssh-copy-id -i
~/.ssh/id_rsa.pub [email protected]

Then you should be able to run commands without a password as
user
nagios:
nag...@opsview-demo:~# ssh 131.125.78.45 ls -la

Hope this helps.

James Whittington
VC3, Inc.

From: [email protected]
[mailto:[email protected]] On Behalf Of
Jibran
Sent: Thursday, February 18, 2010 7:54 AM
To: [email protected]
Subject: [opsview-users] Slave setup errors.

Hi every one.

I been trying from long to make slave work.I installed Ubunto
hardy
as a master and ubunto hardy as slave opsview on remote.I
installed
opsview repository and every thing went fine.But I am having
permission errors doing ssh from master to slave.

When I ssh fro master using
r...@opsview-demo:~# ssh 131.125.78.45 ls
-l [email protected]'s password:when I put the password which
is
for opsview.i get error.
Permission denied, please try again.

I cant copy keys and files from master to slave either.

scp /usr/local/nagios/installer/check_reqs
/usr/local/nagios/bin/profile 131.125.78.45:

scp: ./check_reqs: Permission denied

scp: ./profile: Permission denied

I presume permission problem is related to ssh config or
something.Actually I am not expert with linux if some one could
help
me out fixing this problem I bumped my head too much fixing this
problem but all vain..

Thanks for any reponses.


--
This message has been scanned for viruses and dangerous content
by
the Xifos Limited e-mail system. Further information can be found at www.xifos.net
<ATT00001..txt>





--
This message has been scanned for viruses and dangerous content by
the
Xifos Limited e-mail system. Further information can be found at www.xifos.net _______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users
<signature.asc><ATT00001..txt>







--
This message has been scanned for viruses and dangerous content by the
Xifos Limited e-mail system. Further information can be found at www.xifos.net _______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users
------------------------------------------------------------------------

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to