Hi,

This error means that the nagios user is not sourcing the /usr/local/nagios/bin/profile script. You need to add it to the nagios user's .profile (or .bash_profile).

The script /usr/local/nagios/installer/set_profile should do the setting for you.

But this should have already been done on your VM - any idea why it was not set?

Ton

On 4 Nov 2010, at 11:13, Natxo Asenjo wrote:

hi,

I have 'solved' it with this changes to /etc/init.d/opsview

nagios:/etc/init.d# diff opsview opsview.bak
253,256c253,256
< # tty > /dev/null 2>&1
< # if [ $? = 0 -a "$OPSVIEW_BASE" != "/usr/local/nagios" ]; then
< #     die "Environment not set - have you run 'su - nagios'?"
< # fi
---
tty > /dev/null 2>&1
if [ $? = 0 -a "$OPSVIEW_BASE" != "/usr/local/nagios" ]; then
   die "Environment not set - have you run 'su - nagios'?"
fi


So I basically do not kill the startup script if that check is not
correct, but I do not think this is the right approach to the problem.
Why is it doing this? The only thing that has changed is: more ram for
the vm and the server has been rebooted.

Any ideas?

Thanks,

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


Ton Voon
Product Architect




Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK

UK:      +44 (0) 845 057 7887
USA:     +1 866 879 9184
Email:    [email protected]
Skype:   tonvoon
Web:     www.opsview.com

This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

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

Reply via email to