Xymon Mailing List Archive search

Duration for one round of server side module

11 messages in this thread

list Asif Iqbal · Thu, 14 May 2009 14:41:17 -0400 ·
I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

I like to run it only once daily, so I put status+1d for the bb command.

But I need help to find out how long it takes for the script to complete for
my ~300 hosts.

Currently I have it setup just like the setup in the above url, like the
following.

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg info
from 300 servers through client channel
and generate a patch report using the tool pca (
http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU
PROCESS/NLWP
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1% hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL
accordingly. I do not need to
process the client data more than once a day


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Ralph Mitchell · Thu, 14 May 2009 14:09:05 -0500 ·
Maybe I'm missing something, but...  Why not just grab the system date/time
at the start, again at the end, then subtract one from the other??  If you
just print it out, the numbers should go into the log.  Or generate your own
log file by appending the start & end values, then process later.
Ralph Mitchell
quoted from Asif Iqbal


On Thu, May 14, 2009 at 1:41 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

I like to run it only once daily, so I put status+1d for the bb command.

But I need help to find out how long it takes for the script to complete
for my ~300 hosts.

Currently I have it setup just like the setup in the above url, like the
following.

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg info
from 300 servers through client channel
and generate a patch report using the tool pca (
http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU
PROCESS/NLWP
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1%
hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL
accordingly. I do not need to
process the client data more than once a day


--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

list Greg L Hubbard · Thu, 14 May 2009 14:28:32 -0500 ·
Or use the "time" command in front of the command?  This assumes that
you know where Xymon is writing your log...
 
GLH


	From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
	Sent: Thursday, May 14, 2009 2:09 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] Duration for one round of server side
module
quoted from Ralph Mitchell
	
	
	Maybe I'm missing something, but...  Why not just grab the
system date/time at the start, again at the end, then subtract one from
the other??  If you just print it out, the numbers should go into the
log.  Or generate your own log file by appending the start & end values,
then process later. 

	Ralph Mitchell


	On Thu, May 14, 2009 at 1:41 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid>
wrote:
	

		I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

		
		I like to run it only once daily, so I put status+1d for
the bb command. 
		
		But I need help to find out how long it takes for the
script to complete for my ~300 hosts. 
		
		Currently I have it setup just like the setup in the
above url, like the following. 
		
		[pca]
		        ENVFILE
/export/home/hobbit/server/etc/hobbitserver.cfg
		        NEEDS hobbitd
		        CMD hobbitd_channel --channel=client
--log=$BBSERVERLOGS/pca.log $BBHOME
		/ext/pca.pl
		
		And it is taking tons of resources since it receives all
the patch/pkg info from 300 servers through client channel 
		and generate a patch report using the tool pca
(http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
		to find out the patch status for all solaris boxes
		
		Here is an snippet of the top processes sorted by RSS
		
		   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME
CPU PROCESS/NLWP       
		  8687 hobbit   2248M  581M run     39    0   0:02:31
1.1% hobbitd_channel/1
		  8648 hobbit     58M   56M run     39    0   0:07:42
2.5% hobbitd/1
		 10223 hobbit     21M   20M run     20    0   0:00:03
15% perl5.8.5/1
		  7115 devmon     11M   11M sleep   59    0   0:00:44
1.5% devmon/1
		  8689 hobbit   8816K 6968K sleep   59    0   0:07:52
2.7% pca.pl/1
		
		If I can find out how long it takes to run I can then
add an INTERVAL accordingly. I do not need to 
		process the client data more than once a day
		
		
		-- 
		Asif Iqbal
		PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
		A: Because it messes up the order in which people
normally read text.
		Q: Why is top-posting such a bad thing?
list Asif Iqbal · Thu, 14 May 2009 15:37:22 -0400 ·
quoted from Greg L Hubbard
On Thu, May 14, 2009 at 3:28 PM, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid>wrote:
 Or use the "time" command in front of the command?  This assumes that you
know where Xymon is writing your log...

It is getting called like this

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME

The log is going to /var/log/hobbit/pca.log

Where do I put the time here and how do I know when the first round of
hobbit client data have been received in hobbitd_channel
and close the time so I don't count same host twice?
quoted from Greg L Hubbard

GLH

*From:* Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
*Sent:* Thursday, May 14, 2009 2:09 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Duration for one round of server side module

Maybe I'm missing something, but...  Why not just grab the system date/time
at the start, again at the end, then subtract one from the other??  If you
just print it out, the numbers should go into the log.  Or generate your own
log file by appending the start & end values, then process later.
Ralph Mitchell


On Thu, May 14, 2009 at 1:41 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

I like to run it only once daily, so I put status+1d for the bb command.

But I need help to find out how long it takes for the script to complete
for my ~300 hosts.

Currently I have it setup just like the setup in the above url, like the
following.

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg
info from 300 servers through client channel
and generate a patch report using the tool pca (
http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU
PROCESS/NLWP
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1%
hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL
accordingly. I do not need to
process the client data more than once a day


--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Asif Iqbal · Thu, 14 May 2009 15:39:21 -0400 ·
quoted from Ralph Mitchell
On Thu, May 14, 2009 at 3:09 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
Maybe I'm missing something, but...  Why not just grab the system date/time
at the start, again at the end, then subtract one

How do I know the end? The clients are constantly feeding data to
hobbitd_channel and they may not be coming
in sequential order. I may receive data from one host twice who is right
next to hobbit server before I receive
client data for another host which is in different country
quoted from Asif Iqbal

from the other??  If you just print it out, the numbers should go into the
log.  Or generate your own log file by appending the start & end values,
then process later.
Ralph Mitchell


On Thu, May 14, 2009 at 1:41 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

I like to run it only once daily, so I put status+1d for the bb command.

But I need help to find out how long it takes for the script to complete
for my ~300 hosts.

Currently I have it setup just like the setup in the above url, like the
following.

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg
info from 300 servers through client channel
and generate a patch report using the tool pca (
http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU
PROCESS/NLWP
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1%
hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL
accordingly. I do not need to
process the client data more than once a day


--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Ralph Mitchell · Thu, 14 May 2009 17:29:57 -0500 ·
quoted from Asif Iqbal
On Thu, May 14, 2009 at 2:39 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, May 14, 2009 at 3:09 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
Maybe I'm missing something, but...  Why not just grab the system
date/time at the start, again at the end, then subtract one

How do I know the end? The clients are constantly feeding data to
hobbitd_channel and they may not be coming
in sequential order. I may receive data from one host twice who is right
next to hobbit server before I receive
client data for another host which is in different country
Looking at the ssmodule sample program, I think I would pick up the start
and end time in the 'processmessage' routine.  The hostname gets passed
through to that routine, so you could log a timestamp, the hostname and the
duration for each host.

Ralph Mitchell
list Asif Iqbal · Thu, 14 May 2009 18:53:49 -0400 ·
quoted from Ralph Mitchell
On Thu, May 14, 2009 at 6:29 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
On Thu, May 14, 2009 at 2:39 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, May 14, 2009 at 3:09 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
Maybe I'm missing something, but...  Why not just grab the system
date/time at the start, again at the end, then subtract one

How do I know the end? The clients are constantly feeding data to
hobbitd_channel and they may not be coming
in sequential order. I may receive data from one host twice who is right
next to hobbit server before I receive
client data for another host which is in different country
Looking at the ssmodule sample program, I think I would pick up the start
and end time in the 'processmessage' routine.  The hostname gets passed
through to that routine, so you could log a timestamp, the hostname and the
duration for each host.
But that won't still tell the completion of first round of all hosts or if
any hosts' data been feed more than once while another host data has not
arrived yet

I am guessing using clientlog to pull the data would be simpler. That will
give me definite answer of how long it took to collect data of each host (in
miliseconds) and how long it took to rotate through
all the hosts.

I wish I could get those info from this server side perl script, but I doubt
that is logically possible
given this scenario.

Ralph Mitchell
quoted from Asif Iqbal

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list T.J. Yang · Thu, 14 May 2009 19:46:45 -0500 ·
Hi Asif


There are a few questions need to be addressed for non-home deployment.

1.  Do we  want to have  xymon clients to query Sun's patch database file ?
    The answer should be No for a site have big xymon client installations.
2. the pca xymon client module should query internal solaris patch database server(on xymon server).
3. the pca xymon server side EXT module should in sync with Sun's patch database server and download the zip files for internal installation.
4. pca rely on wget and wget rely on other software also, be prepared to deal with pca xymon module for solaris 2.6 and above that doesn't come with wget.


I don't quite understand why you design pca work as server side module

For me, I did it as a client side module and create another column (pca) for each xymon client.

Here is an example of what it looks like so far

http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca

P.S. I interacted with pca author but failed to convince him we (xymon community) can have a "-M" option to send out xymon needed html format.

tj
quoted from Asif Iqbal


From: Asif Iqbal 
Sent: Thursday, May 14, 2009 1:41 PM
To: user-ae9b8668bcde@xymon.invalid 
Subject: [hobbit] Duration for one round of server side module


I implemented a server side perl script using this http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template. 

I like to run it only once daily, so I put status+1d for the bb command. 

But I need help to find out how long it takes for the script to complete for my ~300 hosts. 

Currently I have it setup just like the setup in the above url, like the following. 

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log $BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg info from 300 servers through client channel 
and generate a patch report using the tool pca (http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP       
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1% hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL accordingly. I do not need to 
process the client data more than once a day


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Asif Iqbal · Thu, 14 May 2009 21:22:11 -0400 ·
quoted from T.J. Yang
On Thu, May 14, 2009 at 8:46 PM, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
 Hi Asif


There are a few questions need to be addressed for non-home deployment.

1.  Do we  want to have  xymon clients to query Sun's patch database file ?
    The answer should be No for a site have big xymon client installations.
2. the pca xymon client module should query internal solaris patch database
server(on xymon server).
3. the pca xymon server side EXT module should in sync with Sun's patch
database server and download the zip files for internal installation.
4. pca rely on wget and wget rely on other software also, be prepared to
deal with pca xymon module for solaris 2.6 and above that doesn't come with
wget.
I discussed w/ pca community and server side module works better
Here is the thread.

    http://www.mail-archive.com/user-300bc63e296e@xymon.invalid/msg00939.html

Most of the servers are between sol 8 and sol 10 but that is not a problem
since I am doing it
on the server side and my hobbit server is sol 9

I updated the hobbitclient-sunos.sh file and pushed using clientupdate
method to all the clients.
only the following lines needed to add to the hobbitclient-sunos.sh. That
was enough data
to generate the pca report

echo "[showrev]"
showrev -p
echo "[pkginfo]"
pkginfo -x

right below [ps] section

Also whenever new version pca comes I just need to update the pca on hobbit
server to get my patch report
quoted from T.J. Yang

 I don't quite understand why you design pca work as server side module


For me, I did it as a client side module and create another column (pca)
for each xymon client.

Here is an example of what it looks like so far


http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca

P.S. I interacted with pca author but failed to convince him we (xymon
community) can have a "-M" option to send out xymon needed html format.

You use the `-L ' switch to get html report.

tj


 *From:* Asif Iqbal <user-6f4b51ac2a40@xymon.invalid>
quoted from T.J. Yang
*Sent:* Thursday, May 14, 2009 1:41 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* [hobbit] Duration for one round of server side module


I implemented a server side perl script using this
http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template.

I like to run it only once daily, so I put status+1d for the bb command.

But I need help to find out how long it takes for the script to complete
for my ~300 hosts.

Currently I have it setup just like the setup in the above url, like the
following.

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log
$BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg info
from 300 servers through client channel
and generate a patch report using the tool pca (
http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU
PROCESS/NLWP
  8687 hobbit   2248M  581M run     39    0   0:02:31 1.1%
hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL
accordingly. I do not need to
process the client data more than once a day


--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list T.J. Yang · Fri, 15 May 2009 09:49:53 -0500 ·
Thanks for the info, I documented the differences of these two approaches.

http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/HOWTO#How_to_have_pca_work_with_xymon_.3F

T.J. Yang
quoted from Asif Iqbal


Date: Thu, 14 May 2009 21:22:11 -0400
From: user-6f4b51ac2a40@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Duration for one round of server side module


On Thu, May 14, 2009 at 8:46 PM, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:


Hi Asif
  There are a few questions need to be addressed for non-home deployment.
 1.  Do we  want to have  xymon clients to query Sun's patch database file ?
    The answer should be No for a site have big xymon client installations.
2. the pca xymon client module should query internal solaris patch database server(on xymon server).
3. the pca xymon server side EXT module should in sync with Sun's patch database server and download the zip files for internal installation.
4. pca rely on wget and wget rely on other software also, be prepared to deal with pca xymon module for solaris 2.6 and above that doesn't come with wget.

I discussed w/ pca community and server side module works better
Here is the thread.

    http://www.mail-archive.com/user-300bc63e296e@xymon.invalid/msg00939.html


Most of the servers are between sol 8 and sol 10 but that is not a problem since I am doing it
on the server side and my hobbit server is sol 9

I updated the hobbitclient-sunos.sh file and pushed using clientupdate method to all the clients.

only the following lines needed to add to the hobbitclient-sunos.sh. That was enough data to generate the pca report

echo "[showrev]"
showrev -p
echo "[pkginfo]"
pkginfo -x

right below [ps] section


Also whenever new version pca comes I just need to update the pca on hobbit server to get my patch report

   
I don't quite understand why you design pca work as server side module
 
 For me, I did it as a client side module and create another column (pca) for each xymon client.
 Here is an example of what it looks like so far
 http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca

 P.S. I interacted with pca author but failed to convince him we (xymon community) can have a "-M" option to send out xymon needed html format.
 You use the `-L ' switch to get html report.
 

tj
 

From: Asif Iqbal Sent: Thursday, May 14, 2009 1:41 PM
To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Duration for one round of server side module


I implemented a server side perl script using this http://xymonton.trantor.org/doku.php/tutorials:ssmodule as the template. 
I like to run it only once daily, so I put status+1d for the bb command. 
But I need help to find out how long it takes for the script to complete for my ~300 hosts. 
Currently I have it setup just like the setup in the above url, like the following. 

[pca]
        ENVFILE /export/home/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log $BBHOME
/ext/pca.pl

And it is taking tons of resources since it receives all the patch/pkg info from 300 servers through client channel and generate a patch report using the tool pca (http://www.par.univie.ac.at/solaris/pca/) for each host. It allows us
to find out the patch status for all solaris boxes

Here is an snippet of the top processes sorted by RSS

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP         8687 hobbit   2248M  581M run     39    0   0:02:31 1.1% hobbitd_channel/1
  8648 hobbit     58M   56M run     39    0   0:07:42 2.5% hobbitd/1
 10223 hobbit     21M   20M run     20    0   0:00:03  15% perl5.8.5/1
  7115 devmon     11M   11M sleep   59    0   0:00:44 1.5% devmon/1
  8689 hobbit   8816K 6968K sleep   59    0   0:07:52 2.7% pca.pl/1

If I can find out how long it takes to run I can then add an INTERVAL accordingly. I do not need to process the client data more than once a day

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
list Richard Finegold · Mon, 18 May 2009 05:34:28 -0700 ·
quoted from Asif Iqbal
On Thu, May 14, 2009 at 11:41, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
I like to run it only once daily, so I put status+1d for the bb command.
The default LIFETIME, at 5 minute intervals, forgives 5 misses. +1d
combined with once daily would forgive 0 or fewer misses.
quoted from T.J. Yang
But I need help to find out how long it takes for the script to complete for
my ~300 hosts.