Contribution -> Server-side login/generic script - Bash Version
list Giovanni - Gestor Redix
Hi everyone!
Attached follows a "login"/generic server-side script made on bash shell-script language.
This script is just like the perl version, just made in a generic way to be easily extensible...
I made this version because i couldn't get the perl version to work on my Gentoo server with perl 5.8.8, not to mention that i know perl as much as i know how to build nuclear submarines ;-)
With best regards,
--
Giovanni M. Frainer
list Sello Tlabela SD
Hi, Thanks a lot for this script is worth having Sello -----Original Message----- From: Giovanni - Gestor Redix [mailto:user-e1d5cb184a81@xymon.invalid] Sent: 30 May 2007 03:50 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Contribution -> Server-side login/generic script - Bash Version
▸
Hi everyone!
Attached follows a "login"/generic server-side script made on bash
shell-script language.
This script is just like the perl version, just made in a generic
way to be easily extensible...
I made this version because i couldn't get the perl version to
work
on my Gentoo server with perl 5.8.8, not to mention that i know perl
as
much as i know how to build nuclear submarines ;-)
With best regards,
--
Giovanni M. Frainer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Sabeer MZ
Good work. Thanks
▸
On 5/30/07, Giovanni - Gestor Redix <user-e1d5cb184a81@xymon.invalid> wrote:
Hi everyone!
Attached follows a "login"/generic server-side script made on bash
shell-script language.
This script is just like the perl version, just made in a generic
way to be easily extensible...
I made this version because i couldn't get the perl version to work
on my Gentoo server with perl 5.8.8, not to mention that i know perl as
much as i know how to build nuclear submarines ;-)
With best regards,
--
Giovanni M. Frainer
--
Thanks
Sabeer MZ
list Jason Altrincham Jones
Thanks for the script....now about the nuclear submarine building, please continue ;)
▸
From: Sabeer MZ [mailto:user-c73a09452f94@xymon.invalid] Sent: 30 May 2007 11:09
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Contribution -> Server-side login/generic script -
Bash Version
Good work.
Thanks
On 5/30/07, Giovanni - Gestor Redix <user-e1d5cb184a81@xymon.invalid> wrote:
Hi everyone!
Attached follows a "login"/generic server-side script made on bash shell-script language.
This script is just like the perl version, just made in a generic
way to be easily extensible...
I made this version because i couldn't get the perl version to work
on my Gentoo server with perl 5.8.8, not to mention that i know perl as
much as i know how to build nuclear submarines ;-)
With best regards,
--
Giovanni M. Frainer
--
Thanks
Sabeer MZ
list Sello Tlabela
Hello,
I am trying to install the scripts on my hobbit server and get the
following error when starting hobbit, below the error is paste of my
config, what could I have made wrong?
2007-05-30 14:13:22 Could not start task rootlogin using command
'hobbitd_channel': No such file or directory
hobbitlaunch.cfg
[rootlogin]
ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD hobbitd_channel --channel=client --log=
$BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh
bb-hosts
165.143.60.206 cntrra02-rh-hids5 # NET:intern ssh syslog-ng
CLIENT:cntrra02-rh-hids5.telkom.co.za login
165.143.145.150 cntrra20-rh-wiki.telkom.co.za # NET:intern ssh login
http://165.143.145.150/
rootlogin.sh attributes
-rwxrwxrwx 1 root root 2935 May 30 11:37 rootlogin.sh
Regards
Sello
▸
On Tue, 2007-05-29 at 22:49 -0300, Giovanni - Gestor Redix wrote:
Hi everyone!
Attached follows a "login"/generic server-side script made on bash
shell-script language.
This script is just like the perl version, just made in a generic
way to be easily extensible...
I made this version because i couldn't get the perl version to work
on my Gentoo server with perl 5.8.8, not to mention that i know perl as
much as i know how to build nuclear submarines ;-)
With best regards,
--
Sello Tlabela <user-68d80b7df288@xymon.invalid>
Telkom SA
▸
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Sabeer MZ
Hi Sello, this is server side script.. there is installation instruction in the beginning of the script. pls follow that .- wrong entry.- ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
▸
On 5/30/07, Sello Tlabela <user-68d80b7df288@xymon.invalid> wrote:
Hello,
I am trying to install the scripts on my hobbit server and get the
following error when starting hobbit, below the error is paste of my config,
what could I have made wrong?
2007-05-30 14:13:22 Could not start task rootlogin using command
'hobbitd_channel': No such file or directory
hobbitlaunch.cfg
[rootlogin]
ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD hobbitd_channel --channel=client
--log=$BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh
bb-hosts
165.143.60.206 cntrra02-rh-hids5 # NET:intern ssh syslog-ng CLIENT:
cntrra02-rh-hids5.telkom.co.za login
▸
165.143.145.150 cntrra20-rh-wiki.telkom.co.za # NET:intern ssh login http://165.143.145.150/ rootlogin.sh attributes -rwxrwxrwx 1 root root 2935 May 30 11:37 rootlogin.sh Regards Sello On Tue, 2007-05-29 at 22:49 -0300, Giovanni - Gestor Redix wrote: Hi everyone! Attached follows a "login"/generic server-side script made on bash shell-script language. This script is just like the perl version, just made in a generic way to be easily extensible... I made this version because i couldn't get the perl version to work on my Gentoo server with perl 5.8.8, not to mention that i know perl as much as i know how to build nuclear submarines ;-) With best regards, -- Sello Tlabela <user-68d80b7df288@xymon.invalid> Telkom SA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Thanks
Sabeer MZ
list Jason Altrincham Jones
ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg <--it's supposed to be hobbitserver.cfg, this is a service side module, not a client external, the client reports who output by default this script just makes it into a hobbit status based on the output it receives via the incoming hobbit data. Thanks, Jason.
▸
From: Sello Tlabela [mailto:user-68d80b7df288@xymon.invalid] Sent: 30 May 2007 13:25 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Contribution -> Server-side login/generic script -Bash Version Hello, I am trying to install the scripts on my hobbit server and get the following error when starting hobbit, below the error is paste of my config, what could I have made wrong? 2007-05-30 14:13:22 Could not start task rootlogin using command 'hobbitd_channel': No such file or directory hobbitlaunch.cfg [rootlogin] ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg NEEDS hobbitd CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh bb-hosts 165.143.60.206 cntrra02-rh-hids5 # NET:intern ssh syslog-ng CLIENT:cntrra02-rh-hids5.telkom.co.za login 165.143.145.150 cntrra20-rh-wiki.telkom.co.za # NET:intern ssh login http://165.143.145.150/ rootlogin.sh attributes -rwxrwxrwx 1 root root 2935 May 30 11:37 rootlogin.sh Regards Sello On Tue, 2007-05-29 at 22:49 -0300, Giovanni - Gestor Redix wrote: Hi everyone! Attached follows a "login"/generic server-side script made on bash shell-script language. This script is just like the perl version, just made in a generic way to be easily extensible... I made this version because i couldn't get the perl version to work on my Gentoo server with perl 5.8.8, not to mention that i know perl as much as i know how to build nuclear submarines ;-) With best regards, -- Sello Tlabela <user-68d80b7df288@xymon.invalid> Telkom SA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Giovanni - Gestor Redix
Hi Sello, have you configured BBHOME to /usr/lib/hobbit/server at your rootlogin.sh ?
Also, your user-945ca2587ff9@xymon.invalid seems to be wrong:
[rootlogin]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh
Look at the ENVFILE.
Regards,
Giovanni M. Frainer
▸
Sello Tlabela wrote:Hello, I am trying to install the scripts on my hobbit server and get the following error when starting hobbit, below the error is paste of my config, what could I have made wrong? 2007-05-30 14:13:22 Could not start task rootlogin using command 'hobbitd_channel': No such file or directory hobbitlaunch.cfg [rootlogin] ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg NEEDS hobbitd CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh bb-hosts 165.143.60.206 cntrra02-rh-hids5 # NET:intern ssh syslog-ng CLIENT:cntrra02-rh-hids5.telkom.co.za login 165.143.145.150 cntrra20-rh-wiki.telkom.co.za # NET:intern ssh login http://165.143.145.150/ rootlogin.sh attributes -rwxrwxrwx 1 root root 2935 May 30 11:37 rootlogin.sh Regards Sello On Tue, 2007-05-29 at 22:49 -0300, Giovanni - Gestor Redix wrote:Hi everyone! Attached follows a "login"/generic server-side script made on bash shell-script language. This script is just like the perl version, just made in a generic way to be easily extensible... I made this version because i couldn't get the perl version to work on my Gentoo server with perl 5.8.8, not to mention that i know perl as much as i know how to build nuclear submarines ;-) With best regards,--
Sello Tlabela <user-68d80b7df288@xymon.invalid <mailto:user-68d80b7df288@xymon.invalid>>
▸
Telkom SA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Sello Tlabela
Hi, Thanks a lot all, the problem was ENVFILE Cheers
▸
On Wed, 2007-05-30 at 09:38 -0300, Giovanni - Gestor Redix wrote:
Hi Sello, have you configured BBHOME to /usr/lib/hobbit/server at your rootlogin.sh ? Also, your user-945ca2587ff9@xymon.invalid seems to be wrong: [rootlogin] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD hobbitd_channel --channel=client --log= $BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.sh Look at the ENVFILE. Regards, Giovanni M. Frainer Sello Tlabela wrote:Hello,I am trying to install the scripts on my hobbit server and get the following error when starting hobbit, below the error is paste of my config, what could I have made wrong? 2007-05-30 14:13:22 Could not start task rootlogin using command'hobbitd_channel': No such file or directoryhobbitlaunch.cfg [rootlogin]ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg NEEDS hobbitd CMD hobbitd_channel --channel=client --log= $BBSERVERLOGS/rootlogin.log $BBHOME/ext/rootlogin.shbb-hosts 165.143.60.206 cntrra02-rh-hids5 # NET:intern ssh syslog-ngCLIENT:cntrra02-rh-hids5.telkom.co.za login 165.143.145.150 cntrra20-rh-wiki.telkom.co.za # NET:intern ssh login http://165.143.145.150/rootlogin.sh attributes-rwxrwxrwx 1 root root 2935 May 30 11:37 rootlogin.shRegards SelloOn Tue, 2007-05-29 at 22:49 -0300, Giovanni - Gestor Redix wrote: > > > Hi everyone! Attached follows a "login"/generic server-side script made on bash > > shell-script language. This script is just like the perl version, just made in a generic > > way to be easily extensible... I made this version because i couldn't get the perl version to work > > on my Gentoo server with perl 5.8.8, not to mention that i know perl as > > much as i know how to build nuclear submarines ;-) With best regards,-- > Sello Tlabela <user-68d80b7df288@xymon.invalid>Telkom SA > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at > http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- Sello Tlabela <user-68d80b7df288@xymon.invalid> Telkom SA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Hobbit User
The msgcache manpage says:
NOTE: When using msgcache, the BBDISP setting for the clients
should be
BBDISP=127.0.0.1 instead of pointing at the real Hobbit server.
Are you supposed to do that via the HOBBITSERVERS setting in
/etc/defaults/hobbit-client? I can't find any doc about setting BBDISP,
but it looks like that's where the hobbit-client init script gets the data
for the BBDISP setting it puts in the runtime config.
list Sello Tlabela SD
Put it in the /usr/lib/hobbit/client/etc/hobbitclient.cfg
▸
-----Original Message----- From: Hobbit User [mailto:user-24d6f8323faa@xymon.invalid] Sent: 30 May 2007 17:19 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] msgcache questions The msgcache manpage says: NOTE: When using msgcache, the BBDISP setting for the clients should be BBDISP=127.0.0.1 instead of pointing at the real Hobbit server. Are you supposed to do that via the HOBBITSERVERS setting in /etc/defaults/hobbit-client? I can't find any doc about setting BBDISP, but it looks like that's where the hobbit-client init script gets the data for the BBDISP setting it puts in the runtime config. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list Ger Maguire
Hi, Where do you set the warn levels within hobbit ? I want to set the time period to 100ms for the conn service so that it shows yellow. Can you set this warn level per device or per group of devices ? Thanks, Ger.
list Henrik Størner
▸
On Sun, Jul 01, 2007 at 11:35:00AM +0100, Ger Maguire wrote:
Where do you set the warn levels within hobbit ? I want to set the time period to 100ms for the conn service so that it shows yellow.
Cannot do that. Hobbit will just check if the host responds to a ping within 5 seconds. Regards, Henrik