Xymon Mailing List Archive search

adding a custom test in linux client

5 messages in this thread

list Alessandro Tinivelli · Fri, 28 Dec 2018 17:15:36 +0000 ·
Good day,

i was trying to monitor some "health data" of a SAP server running on linux. In particular to monitor some output from the dpmon sap utility.

I run (every 4 minutes) in crontab a script that writes interesting metrics in a file: /tmp/dia.txt  (it was too difficult to run dpmon utility with xymon user)
Then I added in clientlaunch.cfg these lines

[dia]
        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
        CMD $XYMONCLIENTHOME/bin/dia.sh
        LOGFILE $XYMONCLIENTLOGS/dia.log
        INTERVAL 5m

It seems that it runs, because dia.log has this content

Fri Dec 28 17:52:01 CET 2018
DialogProcessesRunning:0
DialogProcessesAvailable:20
Fri Dec 28 17:56:01 CET 2018
DialogProcessesRunning:0
DialogProcessesAvailable:20
Fri Dec 28 18:00:01 CET 2018
DialogProcessesRunning:0
DialogProcessesAvailable:20

It's not clear for me how to let these info appear in xymon web page.
If I look at the clientlog from the xymon web page I don'see these data I'm trying to send from the client.

What's missing? Something on client side or both sides?

Thanks!

Alessandro Tinivelli
list Oliver · Fri, 28 Dec 2018 13:17:35 -0500 ·
Take a look at http://xymon.sourceforge.net/xymon/help/howtograph.html

Does dia.sh read /tmp/dia.txt and send the data to the xymon server?
If so, you should have a 'dia' column on the xymon server for the
client in question

Once that is done, there are two more things to complete
a) edit xymonserver.cfg so it starts populating into an RRD file
(requires a xymon restart)
b) edit graphs.cfg to the graphing works (no restart required)


On Fri, Dec 28, 2018 at 12:45 PM Alessandro Tinivelli
quoted from Alessandro Tinivelli
<user-fdda70e8b835@xymon.invalid> wrote:
Good day,


i was trying to monitor some “health data” of a SAP server running on linux. In particular to monitor some output from the dpmon sap utility.


I run (every 4 minutes) in crontab a script that writes interesting metrics in a file: /tmp/dia.txt  (it was too difficult to run dpmon utility with xymon user)

Then I added in clientlaunch.cfg these lines


[dia]

        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg

        CMD $XYMONCLIENTHOME/bin/dia.sh

        LOGFILE $XYMONCLIENTLOGS/dia.log

        INTERVAL 5m


It seems that it runs, because dia.log has this content


Fri Dec 28 17:52:01 CET 2018

DialogProcessesRunning:0

DialogProcessesAvailable:20

Fri Dec 28 17:56:01 CET 2018

DialogProcessesRunning:0

DialogProcessesAvailable:20

Fri Dec 28 18:00:01 CET 2018

DialogProcessesRunning:0

DialogProcessesAvailable:20


It’s not clear for me how to let these info appear in xymon web page.

If I look at the clientlog from the xymon web page I don’see these data I’m trying to send from the client.


What’s missing? Something on client side or both sides?

Thanks!


Alessandro Tinivelli

list Alessandro Tinivelli · Mon, 31 Dec 2018 11:45:01 +0000 ·
Oliver Wrote
quoted from Oliver
Does dia.sh read /tmp/dia.txt and send the data to the xymon server?
If so, you should have a 'dia' column on the xymon server for the client in question 
Hi Oliver, thanks for answering,

That's the point: I don't know how to tell the script (dia.sh) to send data to the Xymon server, in fact no 'dia' column appears :-\

Alessandro
list Damien Martins · Mon, 31 Dec 2018 15:12:31 +0100 ·
Hi Alessandro,

Did you add "dia" in your host definition (on Xymon server in hosts.cfg file) ?
Did you try to run dia.sh using bash debug mode (bash -x dia.sh) to have all details about what is done ?

Regards
Damien Martins
quoted from Alessandro Tinivelli

Le 31/12/2018 à 12:45, Alessandro Tinivelli a écrit :
Oliver Wrote
Does dia.sh read /tmp/dia.txt and send the data to the xymon server?
If so, you should have a 'dia' column on the xymon server for the client in question
Hi Oliver, thanks for answering,

That's the point: I don't know how to tell the script (dia.sh) to send data to the Xymon server, in fact no 'dia' column appears :-\

Alessandro

list Oliver · Thu, 3 Jan 2019 11:57:11 -0500 ·
Hey Alessandro,

That URL I previously mentioned
(http://xymon.sourceforge.net/xymon/help/howtograph.html) has a
section (Make a script to collect the data) that shows how to get the
data to the Xymon server.

On Mon, Dec 31, 2018 at 6:45 AM Alessandro Tinivelli
quoted from Damien Martins
<user-fdda70e8b835@xymon.invalid> wrote:
Oliver Wrote
Does dia.sh read /tmp/dia.txt and send the data to the xymon server?
If so, you should have a 'dia' column on the xymon server for the client in question
Hi Oliver, thanks for answering,

That's the point: I don't know how to tell the script (dia.sh) to send data to the Xymon server, in fact no 'dia' column appears :-\

Alessandro