Xymon Mailing List Archive search

Critical System Editor Tips.

9 messages in this thread

list Neil Franken · Wed, 9 Jun 2010 09:21:39 +0200 ·
Hi Guys/Gals

I am busy setting up the critical systems and I am running into a brick
wall. For example I add a server called  TUW-x and the svcs to a level
one priority and click search it tell me that there is no record for
this host/service. I then fill out the other details and click the
update record button. When I then search for this record I get the same
error message. How do I know that this record was saved? I am pretty
sure it was not as I check the Config Report(Critical) and get very
empty report with zero hosts.

Any ideas where I can look for errors regarding the critical setup.

Regards
Neil
list Neil Franken · Wed, 9 Jun 2010 10:28:14 +0200 ·
Hi Quick Follow up.

I checked the hobbit-nkview.cfg, hobbit-nkview.cfg.bak files and I found
a  xymon-nkview.cfg.bak. All remain empty and according to the man pages
this is where the critical systems should be written to. SO I think I
have a permissions issue. I checked the permissions of the files and the
hobbit-nkview files belong to root and the group is also root they have
the 664 permissions applied. The xymon-nkview.cfg.bak belongs to root
and the group is apache. I am getting a little confused now and not sure
how to solve this problem. 

Hope someone out there has a idea.

Regards
Neil
quoted from Neil Franken


-----Original Message-----
From: Neil Franken [mailto:user-1689acfc5a3b@xymon.invalid] 
Sent: 09 June 2010 09:22 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Critical System Editor Tips.

Hi Guys/Gals

I am busy setting up the critical systems and I am running into a brick
wall. For example I add a server called  TUW-x and the svcs to a level
one priority and click search it tell me that there is no record for
this host/service. I then fill out the other details and click the
update record button. When I then search for this record I get the same
error message. How do I know that this record was saved? I am pretty
sure it was not as I check the Config Report(Critical) and get very
empty report with zero hosts.

Any ideas where I can look for errors regarding the critical setup.

Regards
Neil
list David Baldwin · Wed, 9 Jun 2010 19:01:04 +1000 ·
quoted from Neil Franken
Neil Franken wrote:
Hi Quick Follow up.

I checked the hobbit-nkview.cfg, hobbit-nkview.cfg.bak files and I found
a  xymon-nkview.cfg.bak. All remain empty and according to the man pages
this is where the critical systems should be written to. SO I think I
have a permissions issue. I checked the permissions of the files and the
hobbit-nkview files belong to root and the group is also root they have
the 664 permissions applied. The xymon-nkview.cfg.bak belongs to root
and the group is apache. I am getting a little confused now and not sure
how to solve this problem. 

Hope someone out there has a idea.

  
On my system those files are writeable by the hobbit user and group. Not
sure if suexec is required in apache to make this work. First pass you
could make permissions 777. Also check your error_log file from apache
and possibly /var/log/hobbit/cgierror.log

David.
quoted from Neil Franken
Regards
Neil


-----Original Message-----
From: Neil Franken [mailto:user-1689acfc5a3b@xymon.invalid] 
Sent: 09 June 2010 09:22 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Critical System Editor Tips.

Hi Guys/Gals

I am busy setting up the critical systems and I am running into a brick
wall. For example I add a server called  TUW-x and the svcs to a level
one priority and click search it tell me that there is no record for
this host/service. I then fill out the other details and click the
update record button. When I then search for this record I get the same
error message. How do I know that this record was saved? I am pretty
sure it was not as I check the Config Report(Critical) and get very
empty report with zero hosts.

Any ideas where I can look for errors regarding the critical setup.

Regards
Neil 

-- 

David Baldwin - IT Unit
Australian Sports Commission          www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          Leverrier Street Bruce ACT 2617


Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
list Neil Franken · Wed, 9 Jun 2010 11:09:01 +0200 ·
Thanks David.

The 777 permissions worked. I am going to change the ownership as well and check that out.

Regards
Neil
quoted from David Baldwin

-----Original Message-----
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] 
Sent: 09 June 2010 11:01 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Critical System Editor Tips.

Neil Franken wrote:
Hi Quick Follow up.

I checked the hobbit-nkview.cfg, hobbit-nkview.cfg.bak files and I found
a  xymon-nkview.cfg.bak. All remain empty and according to the man pages
this is where the critical systems should be written to. SO I think I
have a permissions issue. I checked the permissions of the files and the
hobbit-nkview files belong to root and the group is also root they have
the 664 permissions applied. The xymon-nkview.cfg.bak belongs to root
and the group is apache. I am getting a little confused now and not sure
how to solve this problem. 

Hope someone out there has a idea.

  
On my system those files are writeable by the hobbit user and group. Not
sure if suexec is required in apache to make this work. First pass you
could make permissions 777. Also check your error_log file from apache
and possibly /var/log/hobbit/cgierror.log

David.
Regards
Neil


-----Original Message-----
From: Neil Franken [mailto:user-1689acfc5a3b@xymon.invalid] 
Sent: 09 June 2010 09:22 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Critical System Editor Tips.

Hi Guys/Gals

I am busy setting up the critical systems and I am running into a brick
wall. For example I add a server called  TUW-x and the svcs to a level
one priority and click search it tell me that there is no record for
this host/service. I then fill out the other details and click the
update record button. When I then search for this record I get the same
error message. How do I know that this record was saved? I am pretty
sure it was not as I check the Config Report(Critical) and get very
empty report with zero hosts.

Any ideas where I can look for errors regarding the critical setup.

Regards
Neil 

-- 
David Baldwin - IT Unit
Australian Sports Commission          www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          Leverrier Street Bruce ACT 2617


Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
list Buchan Milne · Wed, 9 Jun 2010 11:04:41 +0100 ·
quoted from David Baldwin
On Wednesday, 9 June 2010 10:01:04 David Baldwin wrote:
Neil Franken wrote:
Hi Quick Follow up.

I checked the hobbit-nkview.cfg, hobbit-nkview.cfg.bak files and I found
a  xymon-nkview.cfg.bak. All remain empty and according to the man pages
this is where the critical systems should be written to. SO I think I
have a permissions issue. I checked the permissions of the files and the
hobbit-nkview files belong to root and the group is also root they have
the 664 permissions applied. The xymon-nkview.cfg.bak belongs to root
and the group is apache. I am getting a little confused now and not sure
how to solve this problem.

Hope someone out there has a idea.
Quite obviously, the user running the CGI needs to be able to write to the 
file. The appropriate permissions fix is one of:

apache:xymon 640
xymon:apache 660
root:apache 664
quoted from Neil Franken
On my system those files are writeable by the hobbit user and group. Not
sure if suexec is required in apache to make this work. First pass you
could make permissions 777.
IMHO, no one should *ever* suggest 777 as a fix ...

Regards,
Buchan
list Neil Franken · Wed, 9 Jun 2010 13:38:17 +0200 ·
Hi All

Yeah I sorted out the membership of the files. I was just wondering when I create a template for the critical systems do I have to add the hosts 1 by 1? Or can I use a wildcard. My client wants all connection problems to be a priority one alert. So now I have to add these servers one by one which is not bad but is it possible to use wildcards there?

Regards
Neil
quoted from Buchan Milne

-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] 
Sent: 09 June 2010 12:05 PM
To: user-ae9b8668bcde@xymon.invalid
Cc: David Baldwin
Subject: Re: [hobbit] Critical System Editor Tips.

On Wednesday, 9 June 2010 10:01:04 David Baldwin wrote:
Neil Franken wrote:
Hi Quick Follow up.

I checked the hobbit-nkview.cfg, hobbit-nkview.cfg.bak files and I found
a  xymon-nkview.cfg.bak. All remain empty and according to the man pages
this is where the critical systems should be written to. SO I think I
have a permissions issue. I checked the permissions of the files and the
hobbit-nkview files belong to root and the group is also root they have
the 664 permissions applied. The xymon-nkview.cfg.bak belongs to root
and the group is apache. I am getting a little confused now and not sure
how to solve this problem.

Hope someone out there has a idea.
Quite obviously, the user running the CGI needs to be able to write to the 
file. The appropriate permissions fix is one of:

apache:xymon 640
xymon:apache 660
root:apache 664
On my system those files are writeable by the hobbit user and group. Not
sure if suexec is required in apache to make this work. First pass you
could make permissions 777.
IMHO, no one should *ever* suggest 777 as a fix ...

Regards,
Buchan
list Jerald Sheets · Wed, 9 Jun 2010 08:04:00 -0400 ·
apache:xymon 640
xymon:apache 660
root:apache 664

From the perspective of the Apache engine, it prefers:

0755 on directories
0644 on files

owned by apache:apache (or www:www, or www-data:www-data, or nobody:nobody).  Whatever your distro uses.

That's more of a protection mechanism than anything.


--j
list Wiskbroom · Wed, 9 Jun 2010 08:22:13 -0400 ·

OK, I am a bit confused, I've gotten almost everything working in my Xymon environment, *except* for the "Critical Systems Editor".  
I *do* get a beautiful editor window, but am not able to see where in that window I can actually add a host.

What make this worst for me is that I am not able to see any errors neither in any of my logs that look like they are related to CGI, nkview anything, etc.

Any help on getting critical systems working would be greatly appreciated.

.vp
quoted from Jerald Sheets
apache:xymon 640
xymon:apache 660
root:apache 664

From the perspective of the Apache engine, it prefers:

0755 on directories
0644 on files

owned by apache:apache (or www:www, or www-data:www-data, or nobody:nobody).  Whatever your distro uses.

That's more of a protection mechanism than anything.
list Neil Franken · Thu, 10 Jun 2010 07:31:30 +0200 ·
Hi 

Did you read the critical system section in the help file? What problems are you experiencing/

Regards
Neil
quoted from Wiskbroom


-----Original Message-----
From: user-ddebaeecde97@xymon.invalid [mailto:user-ddebaeecde97@xymon.invalid] 
Sent: 09 June 2010 02:22 PM
To: user-ae9b8668bcde@xymon.invalid
Cc: user-cbbf693f2c89@xymon.invalid
Subject: RE: [hobbit] Critical System Editor Tips.


OK, I am a bit confused, I've gotten almost everything working in my Xymon environment, *except* for the "Critical Systems Editor".  

I *do* get a beautiful editor window, but am not able to see where in that window I can actually add a host.

What make this worst for me is that I am not able to see any errors neither in any of my logs that look like they are related to CGI, nkview anything, etc.

Any help on getting critical systems working would be greatly appreciated.

.vp
apache:xymon 640
xymon:apache 660
root:apache 664

From the perspective of the Apache engine, it prefers:

0755 on directories
0644 on files

owned by apache:apache (or www:www, or www-data:www-data, or nobody:nobody).  Whatever your distro uses.

That's more of a protection mechanism than anything.