Xymon Mailing List Archive search

Hobbitd settings in hobbitserver.cfg

4 messages in this thread

list Michael Dunne · Mon, 25 Sep 2006 12:43:47 -0400 ·
Greetings,

 Earlier today we added a system to our main hobbit server. Upon adding the
system we received a hobbitd msg of:

Oversize status msg fro xxx. xxxxx:ports truncated (n=294359, limit=262144)

When I looked in the hobbitserver.cfg file to increase the maxmsg_status
setting I did not see a listing  for maxmsg_status. Thinking that I was
being smart, I added a ling to hobbitserver.cfg for maxmsg_client. The line
added was as followed:

MAXMSG_STATUS="768"

I restarted hobbit after adding the line and saw the following message in
the hobbitlaunch.log:

2006-09-25 11:48:12 Loading hostnames
2006-09-25 11:48:12 Loading saved state
2006-09-25 11:48:12 Setting up network listener on 0.0.0.0:1984
2006-09-25 11:48:12 Setting up signal handlers
2006-09-25 11:48:12 Setting up hobbitd channels
2006-09-25 11:48:12 Could not get shm of size 786432: Cannot allocate memory
2006-09-25 11:48:12 Cannot setup client channel
2006-09-25 11:48:12 Task hobbitd terminated, status 1


I removed the line and restarted hobbit, but hobbitd kept failing. I tried
rebooting the system, but hobbitd was still failing.

Ultimately I stopped hobbit, deleted the hobbitd.pid file and restarted
hobbit. All has been well since, excepting the original oversized status
messages. 

My question is, what did I do wrong? Where exactly should I add the
maxmsg_status line (or the maxmsg_client, maxmsg_data, maxmsg_stachg for
that matter)? 

I am running 4.2.0.

Thanks in advance for any assistance.

Mike

Michael Dunne
Network Support Specialist
AccuWeather, Inc. 

~HISTORY, n. An account mostly false, of events mostly unimportant, which
are brought about by rulers mostly knaves, and soldiers mostly fools.

(Ambrose Bierce, "The Devil's Dictionary")~
list Francesco Duranti · Mon, 25 Sep 2006 18:59:02 +0200 ·
You did it right but you also have to change the shared memory
parameters for your system. The location of those parameters change by
OS type.
You can find a solution in this I think :
http://www.hswn.dk/hobbiton/2005/08/msg00183.html

Francesco
quoted from Michael Dunne
-----Original Message-----
From: Michael Dunne [mailto:user-cb942661a22f@xymon.invalid] Sent: Monday, September 25, 2006 6:44 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Hobbitd settings in hobbitserver.cfg

Greetings,

 Earlier today we added a system to our main hobbit server. Upon adding the system we received a hobbitd msg of:

Oversize status msg fro xxx. xxxxx:ports truncated (n=294359, limit=262144)

When I looked in the hobbitserver.cfg file to increase the maxmsg_status setting I did not see a listing  for maxmsg_status. Thinking that I was being smart, I added a ling to hobbitserver.cfg for maxmsg_client. The line added was as followed:

MAXMSG_STATUS="768"

I restarted hobbit after adding the line and saw the following message in the hobbitlaunch.log:

2006-09-25 11:48:12 Loading hostnames
2006-09-25 11:48:12 Loading saved state
2006-09-25 11:48:12 Setting up network listener on 0.0.0.0:1984
2006-09-25 11:48:12 Setting up signal handlers
2006-09-25 11:48:12 Setting up hobbitd channels
2006-09-25 11:48:12 Could not get shm of size 786432: Cannot allocate memory
2006-09-25 11:48:12 Cannot setup client channel
2006-09-25 11:48:12 Task hobbitd terminated, status 1


I removed the line and restarted hobbit, but hobbitd kept failing. I tried rebooting the system, but hobbitd was still failing.

Ultimately I stopped hobbit, deleted the hobbitd.pid file and restarted hobbit. All has been well since, excepting the original oversized status messages. 
My question is, what did I do wrong? Where exactly should I add the maxmsg_status line (or the maxmsg_client, maxmsg_data, maxmsg_stachg for that matter)? 
I am running 4.2.0.

Thanks in advance for any assistance.

Mike

Michael Dunne
Network Support Specialist
AccuWeather, Inc. 
~HISTORY, n. An account mostly false, of events mostly unimportant, which are brought about by rulers mostly knaves, and soldiers mostly fools.

(Ambrose Bierce, "The Devil's Dictionary")~

list Charles Jones · Mon, 25 Sep 2006 10:01:32 -0700 ·
I've had much experience in dealing with this issue, as I have some 
client messages that are simply huge and required me having 
MAXMSG_STATUS=2048 and higher.

The problem you are experiencing is running out of shared memory. Here 
are the settings I have on my hobbit server that has 3.5GB of RAM:

]$ grep kernel.sh /etc/sysctl.conf
kernel.shmmni = 4096
kernel.shmmax = 3758096384

3758096384 is 3.5 * 1024 * 1024 * 1024

Once you edit those values and reboot (or sometimes sysctl -p will do it 
as root), then Hobbit can use more shared memory.

-Charles


The fix is to edit your /etc/sysctl.conf and define the kernel.shmmax to 
a value equal to your full system ram.
quoted from Michael Dunne


Michael Dunne wrote:
Greetings,

 Earlier today we added a system to our main hobbit server. Upon adding the
system we received a hobbitd msg of:

Oversize status msg fro xxx. xxxxx:ports truncated (n=294359, limit=262144)

When I looked in the hobbitserver.cfg file to increase the maxmsg_status
setting I did not see a listing  for maxmsg_status. Thinking that I was
being smart, I added a ling to hobbitserver.cfg for maxmsg_client. The line
added was as followed:

MAXMSG_STATUS="768"

I restarted hobbit after adding the line and saw the following message in
the hobbitlaunch.log:

2006-09-25 11:48:12 Loading hostnames
2006-09-25 11:48:12 Loading saved state
2006-09-25 11:48:12 Setting up network listener on 0.0.0.0:1984
2006-09-25 11:48:12 Setting up signal handlers
2006-09-25 11:48:12 Setting up hobbitd channels
2006-09-25 11:48:12 Could not get shm of size 786432: Cannot allocate memory
2006-09-25 11:48:12 Cannot setup client channel
2006-09-25 11:48:12 Task hobbitd terminated, status 1


I removed the line and restarted hobbit, but hobbitd kept failing. I tried
rebooting the system, but hobbitd was still failing.

Ultimately I stopped hobbit, deleted the hobbitd.pid file and restarted
hobbit. All has been well since, excepting the original oversized status
messages. 

My question is, what did I do wrong? Where exactly should I add the
maxmsg_status line (or the maxmsg_client, maxmsg_data, maxmsg_stachg for
that matter)? 

I am running 4.2.0.

Thanks in advance for any assistance.

Mike

Michael Dunne
Network Support Specialist
AccuWeather, Inc. 

~HISTORY, n. An account mostly false, of events mostly unimportant, which
are brought about by rulers mostly knaves, and soldiers mostly fools.

(Ambrose Bierce, "The Devil's Dictionary")~

list Michael Dunne · Wed, 27 Sep 2006 16:25:19 -0400 ·
Greetings,

 Thanks to all that responded to my query. I increased the amount of shared
memory and that did the trick.

Thanks again.

Mike
quoted from Charles Jones

Greetings,

 Earlier today we added a system to our main hobbit server. Upon adding the
system we received a hobbitd msg of:

Oversize status msg fro xxx. xxxxx:ports truncated (n=294359, limit=262144)

When I looked in the hobbitserver.cfg file to increase the maxmsg_status
setting I did not see a listing  for maxmsg_status. Thinking that I was
being smart, I added a ling to hobbitserver.cfg for maxmsg_client. The line
added was as followed:

MAXMSG_STATUS="768"

I restarted hobbit after adding the line and saw the following message in
the hobbitlaunch.log:

2006-09-25 11:48:12 Loading hostnames
2006-09-25 11:48:12 Loading saved state
2006-09-25 11:48:12 Setting up network listener on 0.0.0.0:1984
2006-09-25 11:48:12 Setting up signal handlers
2006-09-25 11:48:12 Setting up hobbitd channels
2006-09-25 11:48:12 Could not get shm of size 786432: Cannot allocate memory
2006-09-25 11:48:12 Cannot setup client channel
2006-09-25 11:48:12 Task hobbitd terminated, status 1


I removed the line and restarted hobbit, but hobbitd kept failing. I tried
rebooting the system, but hobbitd was still failing.

Ultimately I stopped hobbit, deleted the hobbitd.pid file and restarted
hobbit. All has been well since, excepting the original oversized status
messages. 
My question is, what did I do wrong? Where exactly should I add the
maxmsg_status line (or the maxmsg_client, maxmsg_data, maxmsg_stachg for
that matter)? 
I am running 4.2.0.

Thanks in advance for any assistance.

Mike

Michael Dunne
Network Support Specialist
AccuWeather, Inc.

~HISTORY, n. An account mostly false, of events mostly unimportant, which
are brought about by rulers mostly knaves, and soldiers mostly fools.

(Ambrose Bierce, "The Devil's Dictionary")~

Michael Dunne
Network Support Specialist

AccuWeather, Inc. XXX-XXX-XXXX Ext. XXXX
quoted from Charles Jones

~HISTORY, n. An account mostly false, of events mostly unimportant, which
are brought about by rulers mostly knaves, and soldiers mostly fools.

(Ambrose Bierce, "The Devil's Dictionary")~