Xymon Mailing List Archive search

Suggestion: make config or make init targets

13 messages in this thread

list Sebastian Auriol · Thu, 24 Feb 2011 19:35:06 -0000 ·
Hi,
 
It would be nice if there was a way to install particularly the init script
automatically.  For example, on Redhat, one has to (copied and pasted from
another page - I did something similar for the version I got from
subversion, where I was just compiling and installing the client):
 
# cp -p /usr/local/src/xymon-4.2.3/rpm/hobbit-init.d /etc/rc.d/init.d/xymon
# chown root:root /etc/rc.d/init.d/xymon
# chmod 755 /etc/rc.d/init.d/xymon
# chkconfig xymon on
 
One has to also edit /etc/rc.d/init.d/xymon change the DAEMON to point to
one's actual path (which the configure script already has).
 
The above steps need to be done for xymon-client too.
 
Then you need to copy /path/to/source/xymon-client.default to
/etc/default/xymon-client.  You need to edit it and add the Xymon server IP
address, which again, you already entered in the configure script...
 
There are several steps here which could be automated, and it would make
installing the client on machines quicker and less error prone, and many of
us have to do this on many machines.
 
I suggest the above could be accomplished with a "make config" or "make
init" target from the source directory, logged in as root.
 
If you are using e.g. Debian instead of Redhat, this would be automatically
detected and the debian init scripts would be installed instead.
 
Unfortunately, I'm no shell script wizz and can't really do this myself.

Kind regards, 

Sebastian  A
list Buchan Milne · Fri, 25 Feb 2011 06:46:22 +0200 ·
quoted from Sebastian Auriol
On Thursday, 24 February 2011 21:35:06 SebA wrote:
Hi,

It would be nice if there was a way to install particularly the init script
automatically.  For example, on Redhat, one has to (copied and pasted from
another page - I did something similar for the version I got from
subversion, where I was just compiling and installing the client):

# cp -p /usr/local/src/xymon-4.2.3/rpm/hobbit-init.d /etc/rc.d/init.d/xymon
# chown root:root /etc/rc.d/init.d/xymon
# chmod 755 /etc/rc.d/init.d/xymon
# chkconfig xymon on

One has to also edit /etc/rc.d/init.d/xymon change the DAEMON to point to
one's actual path (which the configure script already has).

The above steps need to be done for xymon-client too.

Then you need to copy /path/to/source/xymon-client.default to
/etc/default/xymon-client.  You need to edit it and add the Xymon server IP
address, which again, you already entered in the configure script...

There are several steps here which could be automated, and it would make
installing the client on machines quicker and less error prone, and many of
us have to do this on many machines.
None of these steps are necessary if you use the packages that are already 
available (e.g. in Mandriva, or for RHEL/CentOS/OEL at 
http://staff.telkomsa.net/packages/
quoted from Sebastian Auriol
I suggest the above could be accomplished with a "make config" or "make
init" target from the source directory, logged in as root.

If you are using e.g. Debian instead of Redhat, this would be automatically
detected and the debian init scripts would be installed instead.

Unfortunately, I'm no shell script wizz and can't really do this myself.
Wouldn't you want a package instead?

I will try and makde 'rpm -ta xymon-4.3.0.tar.gz' work for final 4.3.0 
release.

Regards,
Buchan
list Sebastian Auriol · Fri, 25 Feb 2011 12:26:57 -0000 ·
quoted from Buchan Milne
Buchan Milne wrote:
On Thursday, 24 February 2011 21:35:06 SebA wrote:
<snip>
Wouldn't you want a package instead?

I will try and makde 'rpm -ta xymon-4.3.0.tar.gz' work for final 4.3.0
release.

Regards,
Buchan
Well,
(a) I am impatient and wanted the latest features and fixes faster than
4.3.0 was going to be released, let alone waiting for an RPM to be built
(although I appreciate your effort here - thanks), but
(b) and more critically on this occasion, although this is a redhat
derivative I was compiling the client on, it does not use RPMs, it uses
Conary instead. This is rPath Linux. So an RPM is not going to help me on
these machines. (Although I also do have plenty of servers that do use RPMs,
and I would be pleased to use your RPM on those once it becomes available.
On those machines I probably used one of your old RPMs a while back.) No
package exists for rPath Linux. I spent a while trying to find one. I even
looked into writing one. But then I realised that compiling the client was
pretty painless these days (it used to fail on some 'dependency' that was
not actually required for the client). The only thing that is still annoying
is the init script.

Kind regards,

Sebastian A
list Sebastian Auriol · Fri, 25 Feb 2011 12:38:56 -0000 ·
quoted from Sebastian Auriol
xymon-bounces at xymon.com wrote:
Buchan Milne wrote:
On Thursday, 24 February 2011 21:35:06 SebA wrote: <snip>
Wouldn't you want a package instead?

I will try and makde 'rpm -ta xymon-4.3.0.tar.gz' work for final
4.3.0 release. 

Regards,
Buchan
Well,
(a) I am impatient and wanted the latest features and fixes
faster than
4.3.0 was going to be released, let alone waiting for an RPM
to be built
And I was also keen to test the latest svn version at around the RC stage to
check for any bugs in production so they could be fixed before the final
release.

Kind regards,

Sebastian A
list Marco Avvisano · Sat, 26 Feb 2011 13:02:37 +0100 ·
Hi,
i'm tryng to use soap to test a web service, using xml file (xymon 4.3.0 
rc1 on red-hat 6 es)
I have this response :
env:Clientorg.xml.sax.SAXParseException: The markup in the document 
following the root element must be well-formed.

This is entry in my host.cfg:

soap=webtest;http://my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml;

any suggestion ?
thanks,
Marco

Il 25/02/2011 13.38, SebA ha scritto:
xymon-bounces at xymon.com wrote:
   
Buchan Milne wrote:
     
On Thursday, 24 February 2011 21:35:06 SebA wrote:<snip>
quoted from Sebastian Auriol
       
     
Wouldn't you want a package instead?

I will try and makde 'rpm -ta xymon-4.3.0.tar.gz' work for final
4.3.0 release.

Regards,
Buchan
       
Well,
(a) I am impatient and wanted the latest features and fixes
faster than
4.3.0 was going to be released, let alone waiting for an RPM
to be built
     
And I was also keen to test the latest svn version at around the RC stage to
check for any bugs in production so they could be fixed before the final
release.

Kind regards,

Sebastian A

list Marco Avvisano · Thu, 03 Mar 2011 11:44:35 +0100 ·
Risolto cambiando le istruzioni nel file xml.

In the response from the server I have 3 alarm levels OK | WARNING | CRITICAL
It's possible in 4.3.0 rc1 manage these three states using cont tag ?

thanks for your suggestions,

Marco
quoted from Marco Avvisano


Il 26/02/2011 13.02, Marco Avvisano ha scritto:
Hi,
i'm tryng to use soap to test a web service, using xml file (xymon 4.3.0 rc1 on red-hat 6 es)
I have this response :
env:Clientorg.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.

This is entry in my host.cfg:

soap=webtest;http://my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml; 

any suggestion ?
thanks,
Marco
list Henrik Størner · Thu, 03 Mar 2011 12:20:12 +0100 ·
On Thu, 03 Mar 2011 11:44:35 +0100, Marco Avvisano
quoted from Marco Avvisano
<user-e09c0f3f8c70@xymon.invalid> wrote:
Risolto cambiando le istruzioni nel file xml.

In the response from the server I have 3 alarm levels OK | WARNING | 
CRITICAL
It's possible in 4.3.0 rc1 manage these three states using cont tag ?
if I understand correctly, you would like the status to be green when
the response says OK, yellow when it says "warning" and red when it
says "critical" ?

It makes sense, but unfortunately the soap (and other content checks)
only support a red or yellow status.


Regards,
Henrik
list Marco Avvisano · Thu, 03 Mar 2011 12:36:27 +0100 ·
Sorry, write in italian ..

I solved changing xml, but not work if use https:

soap=webtest;https:/cert.pem@/my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml; 

error message is:


  Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
signature


In the response from the server I have 3 alarm levels OK | WARNING | CRITICAL
It's possible in 4.3.0 rc1 manage these three states using cont tag ?

thanks for your suggestions,

Marco

quoted from Marco Avvisano
Il 03/03/2011 11.44, Marco Avvisano ha scritto:
Risolto cambiando le istruzioni nel file xml.

In the response from the server I have 3 alarm levels OK | WARNING | CRITICAL
It's possible in 4.3.0 rc1 manage these three states using cont tag ?

thanks for your suggestions,

Marco


Il 26/02/2011 13.02, Marco Avvisano ha scritto:
Hi,
i'm tryng to use soap to test a web service, using xml file (xymon 4.3.0 rc1 on red-hat 6 es)
I have this response :
env:Clientorg.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.

This is entry in my host.cfg:

soap=webtest;http://my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml; 

any suggestion ?
thanks,
Marco
list Marco Avvisano · Thu, 03 Mar 2011 13:21:09 +0100 ·
Hi,

someone has developed something similar to old deadcat script sla-report.sh?

In xymon 4.3.0 rc1 there are cgi to get similar results ?

Marco
list Buchan Milne · Thu, 3 Mar 2011 15:02:11 +0200 (SAST) ·
----- "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid> wrote:
Hi,

someone has developed something similar to old deadcat script
sla-report.sh?
We have a local version running on Xymon 4.2.3. But, I'm not quite currently happy to make it public, I still need to review some changes and results.

The main use we have for it is to provide a service-based availability. However, since service-based presentation is important for more than just ad-hoc availability reporting, I don't think this is the right strategy in the long run.

I would have considered using combotests to represent services, and just use the built-in availability report, but we don't have 6 months of combotest data for these services.
In xymon 4.3.0 rc1 there are cgi to get similar results ?
Besides the built-in Availability report?

What does it not do for you that you need?

Or, is your need similar to ours?

Regards,
Buchan
list Marco Avvisano · Thu, 03 Mar 2011 14:19:06 +0100 ·

Il 03/03/2011 13.57, Ralph Mitchell ha scritto:
On Thu, Mar 3, 2011 at 6:36 AM, Marco Avvisano 
<user-e09c0f3f8c70@xymon.invalid 
quoted from Marco Avvisano
<mailto:user-e09c0f3f8c70@xymon.invalid>> wrote:

    Sorry, write in italian ..

    I solved changing xml, but not work if use https:

    soap=webtest;https:/cert.pem@/my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml;


    error message is:


      Bad Request

    Your browser sent a request that this server could not understand.
    Reason: You're speaking plain HTTP to an SSL-enabled server port.
    Instead use the HTTPS scheme to access this URL, please.


I got the above message recently too.  In my case it was because I had 
compiled Xymon without openssl.  It didn't have the necessary 
libraries to be able to setup the secure connection.

Ralph Mitchell
thanks, I checked and actually miss those libraries:
/opt/xymon/server/bin/xymonnet --version

xymonnet version 4.3.0-0.20110123.rc1

I'll try to recompile it

Marco
list Marco Avvisano · Fri, 04 Mar 2011 09:56:08 +0100 ·

Il 03/03/2011 14.37, Ralph Mitchell ha scritto:
On Thu, Mar 3, 2011 at 8:19 AM, Marco Avvisano 
quoted from Marco Avvisano
<user-e09c0f3f8c70@xymon.invalid 
<mailto:user-e09c0f3f8c70@xymon.invalid>> wrote:


    Il 03/03/2011 13.57, Ralph Mitchell ha scritto:
    On Thu, Mar 3, 2011 at 6:36 AM, Marco Avvisano
    <user-e09c0f3f8c70@xymon.invalid
    <mailto:user-e09c0f3f8c70@xymon.invalid>> wrote:

        Sorry, write in italian ..

        I solved changing xml, but not work if use https:

        soap=webtest;https:/cert.pem@/my.server/MonitoredService/MonitorService;file:/opt/xymon/server/xml/MonitoredService.xml;


        error message is:


          Bad Request

        Your browser sent a request that this server could not
        understand.
        Reason: You're speaking plain HTTP to an SSL-enabled server port.
        Instead use the HTTPS scheme to access this URL, please.


    I got the above message recently too.  In my case it was because
    I had compiled Xymon without openssl.  It didn't have the
    necessary libraries to be able to setup the secure connection.

    Ralph Mitchell
    thanks, I checked and actually miss those libraries:
    /opt/xymon/server/bin/xymonnet --version

    xymonnet version 4.3.0-0.20110123.rc1


In Fedora 14 I get:

$ /home/xymon/server/bin/xymonnet --version
xymonnet version 4.3.0-0.20110123.rc1
SSL library : OpenSSL 1.0.0d 8 Feb 2011
LDAP library: OpenLDAP 20423

I had to install the openssl-devel rpm to get the openssl headers and 
whatever else comes in the devel package.  You'll need to remove the 
Makefile, then rerun ./configure, do 'make clean' then recompile and 
reinstall.

Ralph Mitchell
Solved recompiling xymon after i have installed openssl-devel and 
openldap-devel
thanks Ralph for your suggestions
Marco
list Marco Avvisano · Fri, 04 Mar 2011 10:59:21 +0100 ·
quoted from Henrik Størner

Il 03/03/2011 12.20, user-ce4a2c883f75@xymon.invalid ha scritto:
On Thu, 03 Mar 2011 11:44:35 +0100, Marco Avvisano
<user-e09c0f3f8c70@xymon.invalid>  wrote:
   
Risolto cambiando le istruzioni nel file xml.

In the response from the server I have 3 alarm levels OK | WARNING |
CRITICAL
It's possible in 4.3.0 rc1 manage these three states using cont tag ?
     
if I understand correctly, you would like the status to be green when
the response says OK, yellow when it says "warning" and red when it
says "critical" ?

   
Correct, it will be great to have 3 status levels ..
quoted from Henrik Størner
It makes sense, but unfortunately the soap (and other content checks)
only support a red or yellow status.

   
The yellow status is when http status is red ?
I see in 4.3.0 rc1 is possible to controll the httpstatus code. Also for 
this tag is possible to have only 2 levels (green/red) ?

Marco

Regards,
Henrik