Xymon Mailing List Archive search

client startup script for Solaris10 or Linux

7 messages in this thread

list Camelia Anghel · Mon, 14 Sep 2009 13:26:31 -0400 ·
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia
list Josh Luthman · Mon, 14 Sep 2009 16:26:31 -0400 ·
Works on all my Linux (Fedora, Centos, Debian) boxes.

http://pastebin.com/m50937662

#!/bin/sh
PATH=$PATH:/bin:/usr/bin                # FOR su
STARTDIR=/home/hobbituser/client
USERNAME=myhobbituser
STARTBIN=runclient.sh

case "$1" in
start)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN start"
        #&SLEEP
        ;;
restart)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN restart"
        #&SLEEP
        ;;
stop)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN stop"
        ;;
*)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle
quoted from Camelia Anghel


On Mon, Sep 14, 2009 at 1:26 PM, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia

list Josh Luthman · Mon, 14 Sep 2009 16:37:44 -0400 ·
It's at the bottom of this.  Just now noticed that the startup script for my
instructions requires a root password from my server.  Obviously not very
helpful to anyone =(  Fixed now, though.

http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Administration_Guide/Compiling_on_CentOS

Script: http://iam8up.com/xymon-initd/hobbit
quoted from Josh Luthman

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Sep 14, 2009 at 4:26 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Works on all my Linux (Fedora, Centos, Debian) boxes.

http://pastebin.com/m50937662

#!/bin/sh
PATH=$PATH:/bin:/usr/bin                # FOR suSTARTDIR=/home/hobbituser/client
quoted from Josh Luthman
USERNAME=myhobbituser
STARTBIN=runclient.sh

case "$1" in
start)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN start"
        #&SLEEP
        ;;
restart)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN restart"
        #&SLEEP
        ;;
stop)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN stop"
        ;;
*)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Sep 14, 2009 at 1:26 PM, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia

list Brian Catlin · Mon, 14 Sep 2009 21:44:44 -0400 (Eastern Daylight Time) ·
Check out:
0
http://xymonton.trantor.org/doku.php/addons:hobbitsmf

This is a set of scripts there to implement the SMF methods for Solaris 10. 
Works fine on the servers I have tried. 

Makes for a consistent command set to start and stop the client when needed.

user-259d6a9a548a@xymon.invalid
quoted from Camelia Anghel
-------Original Message-------
 
From: Camelia Anghel
Date: 09/14/09 16:24:27
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] client startup script for Solaris10 or Linux
 
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia
list Camelia Anghel · Tue, 15 Sep 2009 07:50:58 -0400 ·
  
Thank you all, 
Camelia 
quoted from Brian Catlin
 
-----Original Message-----
From: Brian Catlin [mailto:user-af6e4c377507@xymon.invalid] 
Sent: Monday, September 14, 2009 9:45 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client startup script for Solaris10 or Linux
 
Check out:
0
http://xymonton.trantor.org/doku.php/addons:hobbitsmf
 
This is a set of scripts there to implement the SMF methods for Solaris
10.  Works fine on the servers I have tried. 
 
Makes for a consistent command set to start and stop the client when
needed.
 
user-259d6a9a548a@xymon.invalid
-------Original Message-------
 
From: Camelia Anghel <mailto:user-56034f999072@xymon.invalid> 
Date: 09/14/09 16:24:27
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] client startup script for Solaris10 or Linux
 
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia
list Camelia Anghel · Tue, 15 Sep 2009 08:24:02 -0400 ·
Josh, so where so I run this script from /etc/init.d???
Thanks,
Camelia 
quoted from Josh Luthman
 
-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
Sent: Monday, September 14, 2009 4:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client startup script for Solaris10 or Linux
 
Works on all my Linux (Fedora, Centos, Debian) boxes.

http://pastebin.com/m50937662

#!/bin/sh
PATH=$PATH:/bin:/usr/bin                # FOR su
STARTDIR=/home/hobbituser/client
USERNAME=myhobbituser
STARTBIN=runclient.sh

case "$1" in
start)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN start"
        #&SLEEP
        ;;
restart)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN restart"
        #&SLEEP
        ;;
stop)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN stop"
        ;;
*)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Sep 14, 2009 at 1:26 PM, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:

Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia
list Camelia Anghel · Tue, 15 Sep 2009 09:39:05 -0400 ·
  
Brian,
Sorry to ask, I'm fairly new to this but where are the client.xml and
server.xml files that I'm supposed to copy?
Thanks
quoted from Camelia Anghel
Camelia 
 
-----Original Message-----
From: Brian Catlin [mailto:user-af6e4c377507@xymon.invalid] 
Sent: Monday, September 14, 2009 9:45 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client startup script for Solaris10 or Linux
 
Check out:
0
http://xymonton.trantor.org/doku.php/addons:hobbitsmf
 
This is a set of scripts there to implement the SMF methods for Solaris
10.  Works fine on the servers I have tried. 
 
Makes for a consistent command set to start and stop the client when
needed.
 
user-259d6a9a548a@xymon.invalid
-------Original Message-------
 
From: Camelia Anghel <mailto:user-56034f999072@xymon.invalid> 
Date: 09/14/09 16:24:27
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] client startup script for Solaris10 or Linux
 
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia