Xymon Mailing List Archive search

External scripts

8 messages in this thread

list David Garaway · Sun, 20 Mar 2005 21:21:15 -0800 ·
Hello all,

I have a question about external scripts. I just moved over to Hobbit from BB and need to run my scripts. I have been using the "snmp" for my netapps and "bb-xsnmp" for my switches. I added an entry to the "hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB scripts?

Thanks,

Dave
list Tim Rotunda · Sun, 20 Mar 2005 23:31:21 -0600 ·
Does the hobbitlaunch.log tell you anything?

This is how I launch my stuff:
[hobbitcentral]
        ENVFILE /users/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/../hobcen/hobcen.sh
        LOGFILE $BBSERVERLOGS/hobcen.log
        INTERVAL 1m

Good luck.
Tim
quoted from David Garaway

-----Original Message-----
From: David Garaway [mailto:user-4528dbd32b26@xymon.invalid] 
Sent: Sunday, March 20, 2005 11:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] External scripts

Hello all,

I have a question about external scripts. I just moved over to Hobbit
from BB and need to run my scripts. I have been using the "snmp" for my
netapps and "bb-xsnmp" for my switches. I added an entry to the
"hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB
scripts?

Thanks,

Dave
list David Garaway · Sun, 20 Mar 2005 21:42:45 -0800 ·
this is all its giving,

2005-03-20 21:40:52 Task bbhistory started with PID 12271
2005-03-20 21:40:52 Task bbenadis started with PID 12273
2005-03-20 21:40:52 Task bbpage started with PID 12274
2005-03-20 21:40:52 Task larrdstatus started with PID 12276
2005-03-20 21:40:52 Task larrddata started with PID 12278
2005-03-20 21:40:52 Task bbdisplay started with PID 12280
2005-03-20 21:40:52 Task bbnet started with PID 12282
2005-03-20 21:40:52 Task bbretest started with PID 12283
2005-03-20 21:40:52 Task larrdcolumn started with PID 12284
2005-03-20 21:40:52 Task infocolumn started with PID 12285
2005-03-20 21:41:51 Task bbxsnmp started with PID 12289
quoted from Tim Rotunda


-----Original Message-----
From: Tim Rotunda [mailto:user-f49ce0a7c125@xymon.invalid]
Sent: Sun 3/20/2005 9:31 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] External scripts
 
Does the hobbitlaunch.log tell you anything?

This is how I launch my stuff:
[hobbitcentral]
        ENVFILE /users/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/../hobcen/hobcen.sh
        LOGFILE $BBSERVERLOGS/hobcen.log
        INTERVAL 1m

Good luck.
Tim

-----Original Message-----
From: David Garaway [mailto:user-4528dbd32b26@xymon.invalid] 
Sent: Sunday, March 20, 2005 11:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] External scripts

Hello all,

I have a question about external scripts. I just moved over to Hobbit
from BB and need to run my scripts. I have been using the "snmp" for my
netapps and "bb-xsnmp" for my switches. I added an entry to the
"hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB
scripts?

Thanks,

Dave
list Brian Lynch · Sun, 20 Mar 2005 21:54:27 -0800 ·
Dave,
  Is the log file being created for the script?  It would also help to
know what the script is doing and what type of log information it is
spitting out.  I have a simple example working with the following
script:

test.pl:
#!/usr/bin/perl

print "TEST\n";

and this entry in hobbitlaunch.cfg:

# TEST Case

[exttest]
        ENVFILE /opt/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/ext/test.pl
        LOGFILE $BBSERVERLOGS/ext_test.log
        INTERVAL 1m


On Sun, 20 Mar 2005 21:42:45 -0800, David Garaway
quoted from David Garaway
<user-4528dbd32b26@xymon.invalid> wrote:
this is all its giving,

2005-03-20 21:40:52 Task bbhistory started with PID 12271
2005-03-20 21:40:52 Task bbenadis started with PID 12273
2005-03-20 21:40:52 Task bbpage started with PID 12274
2005-03-20 21:40:52 Task larrdstatus started with PID 12276
2005-03-20 21:40:52 Task larrddata started with PID 12278
2005-03-20 21:40:52 Task bbdisplay started with PID 12280
2005-03-20 21:40:52 Task bbnet started with PID 12282
2005-03-20 21:40:52 Task bbretest started with PID 12283
2005-03-20 21:40:52 Task larrdcolumn started with PID 12284
2005-03-20 21:40:52 Task infocolumn started with PID 12285
2005-03-20 21:41:51 Task bbxsnmp started with PID 12289


-----Original Message-----
From: Tim Rotunda [mailto:user-f49ce0a7c125@xymon.invalid]
Sent: Sun 3/20/2005 9:31 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] External scripts

Does the hobbitlaunch.log tell you anything?

This is how I launch my stuff:
[hobbitcentral]
        ENVFILE /users/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD $BBHOME/../hobcen/hobcen.sh
        LOGFILE $BBSERVERLOGS/hobcen.log
        INTERVAL 1m

Good luck.
Tim

-----Original Message-----
From: David Garaway [mailto:user-4528dbd32b26@xymon.invalid]
Sent: Sunday, March 20, 2005 11:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] External scripts

Hello all,

I have a question about external scripts. I just moved over to Hobbit
from BB and need to run my scripts. I have been using the "snmp" for my
netapps and "bb-xsnmp" for my switches. I added an entry to the
"hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB
scripts?

Thanks,

Dave

list Henrik Størner · Mon, 21 Mar 2005 10:03:26 +0100 ·
quoted from David Garaway
On Sun, Mar 20, 2005 at 09:21:15PM -0800, David Garaway wrote:
I have a question about external scripts. I just moved over to
 Hobbit from BB and need to run my scripts. I have been using the
 "snmp" for my netapps and "bb-xsnmp" for my switches. I added an
 entry to the "hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB
scripts?
First thing to do is check that logfile you have in
/var/log/hobbit/bb-xsnmp.log and see if it shows any errors.

The most common reason for BB extensions failing with Hobbit is that
some environment variables defined by the BB configuration files are
not setup by Hobbit. Especially if you have added your own custom
settings in bbsys.local.


Regards,
Henrik
list David Garaway · Mon, 21 Mar 2005 09:30:00 -0800 ·
I have 

 
10am...X-XXX-XXX-XXXX...login id: 3256808#.  

 
Dave
list David Garaway · Mon, 21 Mar 2005 09:39:19 -0800 ·
Sorry about this post. Its Monday.

 
Dave 
quoted from David Garaway
 

From: David Garaway [mailto:user-4528dbd32b26@xymon.invalid] Sent: Monday, March 21, 2005 9:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] External Scripts

 
I have 
 
10am...X-XXX-XXX-XXXX...login id: 3256808#.  
 
 
Dave
list David Garaway · Fri, 25 Mar 2005 22:29:03 -0800 ·
I looked at the log file and its empty. When hobbit starts it creates the log file but nothing is ever writen to it. Any ideas what enviornment varables need to be set? I didnt add anything to the bbsys.local on the BB install. I am running other external scripts that work fine.

Thanks,

Dave 
quoted from Henrik Størner


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Mon 3/21/2005 1:03 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] External scripts
 
On Sun, Mar 20, 2005 at 09:21:15PM -0800, David Garaway wrote:
I have a question about external scripts. I just moved over to
 Hobbit from BB and need to run my scripts. I have been using the
 "snmp" for my netapps and "bb-xsnmp" for my switches. I added an
 entry to the "hobbitlaunch.cfg"

[bbxsnmp]
        CMD $BBHOME/ext/bb-xsnmp.pl
        LOGFILE $BBSERVERLOGS/bb-xsnmp.log
        INTERVAL 1m

but it doesnt work. Does anyone have any advice on using these BB
scripts?
First thing to do is check that logfile you have in
/var/log/hobbit/bb-xsnmp.log and see if it shows any errors.

The most common reason for BB extensions failing with Hobbit is that
some environment variables defined by the BB configuration files are
not setup by Hobbit. Especially if you have added your own custom
settings in bbsys.local.


Regards,
Henrik