Opmanager as a Linux service

by 
 on 11-Jan-2005 12:36 PM.
  in  OpManager 
Hi,

is it possible to start opmanager as a service under Linux OS (e.g.: using /etc/init.d/xxx start - stop - status)? I need a useful function to start Opmanager at boot time...

Thank you in advance
  • No status

Re: Opmanager as a Linux service

by 
 on 11-Jan-2005 01:29 PM
Yes, you can do that.

Follow the steps as mentioned below to install OpManager as a service on a linux box.

1. Copy the attached opmanager.txt file to /etc/init.d directory as opmanager
mv /etc/init.d/opmanager.txt /etc/init.d/opmanager

2. Edit the MDIR variable in this file which should point to the bin folder of OpManager Installation directory. Typically, the default installation folder on a Linux box will be /opt/AdventNet/ME/OpManager. Hence the value for MDIR will be

MDIR=/opt/AdventNet/ME/OpManager/bin

3. Provide executable permissions for this script using

chmod 755 /etc/init.d/opmanager

4. Use chkconfig command to add opmanager as a service

chkconfig --add opmanager


Hope this helps.

-Kevin-
Attachments

Re: Opmanager as a Linux service

by 
 on 11-Jan-2005 01:43 PM
Please note that all the above-mentioned commands are to be executed as the root user.

Re: Opmanager as a Linux service

by 
 on 13-Feb-2005 09:47 AM
Hi folks,

I used the method mentioned in this topic that works with Fedora Core 2, but give error with Core 3 installation.
Reboot of the Core 3 will show the following message:
"Feb 5 11:43:21 netmon opmanager: execvp: No such file or directory
Feb 5 11:43:21 netmon rc: Starting opmanager: failed"

Please shed some light on this matter or pointer that will enable to solve this issue.

Regards,

Kevin Chen

Re: Opmanager as a Linux service

by 
 on 13-Feb-2005 07:11 PM
Hi Kevin,

Please check if /etc/init.d/opmanager file exists. Also, check if the link to the file exists in the correct location. It would be helpful if you could send the /var/log/opmanager.log and /var/log/opmanager1.log for analysis to support@opmanager.com

Regards
Support Team

Re: Opmanager as a Linux service

by 
 on 18-Jul-2005 04:23 AM
has tis be solved...because I'am getting the same error...file not found in etc/init.d

Re: Opmanager as a Linux service

by 
 on 18-Jul-2005 11:31 PM
The error should be due to the presence of CTRL-M characters in the file. You can remove the CTRL-M characters from the above file using the script attached with this post.

[ download the file and rename it as .sh and provide executable permissions to this file using "chmod 755 rmcntrlm.sh"]

-Kevin
Attachments

Re: Opmanager as a Linux service

by 
 on 19-Jul-2005 03:51 AM
where do I run this file after I've made the changes...am I runing it from /rtc/initi.d dir or from opamager dir?

thanks

Re: Opmanager as a Linux service

by 
 on 19-Jul-2005 03:32 PM
You can download the opmanager.txt file and give executable permissions to it. Download the rmcntrlm.txt file and rename it as rmcntrlm.sh file and copy to the same directory where opmanager.txt is present. Give executable permissions to this script file as well. Execute the script as

# sh rmcntrlm.sh opmanager

You can later on copy this opmanager script to the /etc/init.d directory.

Revert to me for further clarifications.

Re: Opmanager as a Linux service

by 
 on 04-Aug-2005 03:05 PM
The above solution doesnt work on fedora core 4, does anyone tried opmanager to start as a service on FC4?

Re: Opmanager as a Linux service

by 
 on 04-Aug-2005 03:08 PM
error on FC4 while executing the rmcntrlm.sh script

sh rmcntrlm.sh opmanager
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do

Re: Opmanager as a Linux service

by 
 on 05-Aug-2005 02:32 AM
Execute the following command before running the script.

# chmod 755 rmcntrlm.sh

(ie., you should give executable permission for the script).

Re: Opmanager as a Linux service

by 
 on 05-Aug-2005 04:20 PM
I did that, still the same result.

Re: Opmanager as a Linux service

by 
 on 08-Aug-2005 07:46 PM
I did the same thing and still got the same thing.

[root@fedora init.d]# sh rmcntrlm.sh
: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do

please help

arbarnes@reamsasset.com

Re: Opmanager as a Linux service

by 
 on 08-Aug-2005 09:00 PM
Try using the vim replace command to remove the control-M characters. this worked for me. The command is

:%s/^M//g

Execute this command from the Vim editor. To get the ^M character, press CTRL+V,CTRL+M simultaneously.

-Partha-

Re: Opmanager as a Linux service

by 
 on 28-Dec-2005 11:25 PM
Found the problem. In line 15:

DIR=

should be

MDIR

As the variable refers to $MDIR. I would also recommend using VIM and copy the file over to native linux format.

After that it worked.

Re: Opmanager as a Linux service

by 
 on 29-Dec-2005 11:50 PM
Found the problem. In line 15:

DIR=

should be

MDIR

As the variable refers to $MDIR. I would also recommend using VIM and copy the file over to native linux format.

After that it worked.
help

Re: Opmanager as a Linux service

by 
 on 08-Jan-2006 11:16 AM
please, I can not run opmanager as a linux service, my error is:

#sh rmcntrlm.sh opmanager

: command not found:
: command not found:
'mcntrlm.sh: line 10: syntax error near unexpected token `do
'mcntrlm.sh: line 10: ` do

I tried typing
# chmod 755 rmcntrlm.sh

but the result is the same.

I am using red hat enterprise edition, please help.

Re: Opmanager as a Linux service

by 
 on 15-Feb-2006 09:34 PM
Hi,

Make sure that you remove the CTRL+M characters. To check the CTRL+M characters execute the command

vim -b opmanager


After removing the character you should be able to start OpManager Service.

With Regards

Ramesh
OpManager Support

Re: Opmanager as a Linux service

by 
 on 29-Mar-2006 10:40 PM
Is there a way to shutdown the server from this script without requiring the admin password be stored in insecure clear text?

Re: Opmanager as a Linux service

by 
 on 04-Apr-2006 03:05 PM
Hi,

It is not allowed to shutdown the OpManager Server without the admin password.

Thanks
Sam
OpManager Support Team
Post Actions
Statistics
  • 20
     Replies
  • 12173
     Views
  • 0
     Followers
Tags for the post
No tags available for this topic.
© 2009 Corp. All rights reserved. Trademarks | Privacy Policy | Site Map | Contact Us | Careers

Edit Link Delete Link

Edit Link Delete Link

LoadingImage