Xymon Mailing List Archive search

Xymon / Devmon Graphs only on trends

5 messages in this thread

list Brandon Dale · Tue, 10 Mar 2015 11:08:46 +0000 ·
I am trying to setup Devmon 0.3.1-beta1 with Xymon 4.3.17. I am currently testing with the generic ups template. I can't work out how to make the graphs appear on the same page as the test. I think I have Devmon setup correctly and I have .rrd files being generated for the tests. If I add the tests to "GRAPHs=.." in xymonserver.cfg they appear on the trends page:

GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,devmon::1,if_load::1,temp,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts,xymongen,xymonnet,xymonproxy,xymond,battery,power,powerin"

The problem is if I add them to TEST2RRD using "devmon" syntax like below they do not display on the test page.

TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,temp=devmon,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts,xymongen,xymonnet,xymonproxy,xymond,battery=devmon,power=devmon,powerin=devmon"

If I remove "=devmon" like below they appear but the .rrd files stop updating.

TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,temp=devmon,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts,xymongen,xymonnet,xymonproxy,xymond,battery,power,powerin "

I cannot work out what I am doing wrong. Is there something in xymon I need to do to make this work?


Separate Question - Is devmon still the best way to do SNMP monitoring with xymon? I can see there is a file called snmpmibs.cfg but a quick google and it looks like this was never fully developed?

Regards,


Brandon
list Jeremy Laidman · Wed, 11 Mar 2015 10:49:56 +1100 ·
quoted from Brandon Dale
On 10 March 2015 at 22:08, Brandon Dale <user-bf8ff8e1cedb@xymon.invalid> wrote:
 I am trying to setup Devmon 0.3.1-beta1 with Xymon 4.3.17. I am
currently testing with the generic ups template. I can’t work out how to
make the graphs appear on the same page as the test. I think I have Devmon
setup correctly and I have .rrd files being generated for the tests.
It shouldn't be difficult to do this.  Xymon has special parsing code for
Devmon status messages.

I don't know about UPS status/graphs, but I can show what I have for
"if_load".

1) I have a graph definition (graphs.cfg) called [if_load]
2) I have GRAPHS set to include "if_load::1" which tells Xymon to show one
line per graph.
3) I have TEST2RRD set to include "if_load=devmon"

That's about it.
quoted from Brandon Dale

 Separate Question - Is devmon still the best way to do SNMP monitoring
with xymon? I can see there is a file called snmpmibs.cfg but a quick
google and it looks like this was never fully developed?
I use Devmon.  Xymon doesn't have SNMP support yet. Henrik started working
on it some years ago, but didn't like what he came up with, and since then
has been focussed on other things like support for IPv6.  See this comment
from Henrik for some context:

http://lists.xymon.com/pipermail/xymon/2011-September/032439.html.

Some people still use MRTG, with bbmrtg.pl to splice into Xymon.  I've
never done this myself, because I find Devmon does what I need.

J
list W.J.M. Nelis · Wed, 11 Mar 2015 08:40:23 +0100 ·
Hi Brandon,
Separate Question - Is devmon still the best way to do SNMP monitoring with xymon? I can see there is a file called snmpmibs.cfg but a quick google and it looks like this was never fully developed?
Devmon is still a good monitoring tool. However, there have been hardly any development the last two years. Two major upgrades people might be waiting for are the support of SNMPv3 and IPv6.

Regards,
   Wim Nelis.
list Brandon Dale · Thu, 12 Mar 2015 05:32:18 +0000 ·
  It shouldn't be difficult to do this.  Xymon has special parsing code for Devmon status messages.

I couldn’t get this to work with the battery,power and powerin test for that ups template. I found this where someone had the same issue: http://lists.xymon.com/pipermail/xymon/2011-April/031424.html

So I did this to fix it:


1.       Copy xymonserver.cfg to xymonserver_devmonfix.cfg

2.       Edit xymonserver_devmonfix.cfg and remove “=devmon” from battery,power,powerin

3.       Edit cgioptions.cfg add this:

# svcstatus.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=/usr/lib/xymon/server/etc/xymonserver_devmonfix.cfg --no-svcid --history=top"
# CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top"

The graphs instantly appeared on the test pages and the rrd files are still being updated. I notice I already have if_load in TEST2RRD so maybe that just works by default. I’m not really sure why that change has fixed it or what other impact that will have..

Regards,


Brandon
list Jeremy Laidman · Thu, 12 Mar 2015 17:40:28 +1100 ·
quoted from Brandon Dale
On 12 March 2015 at 16:32, Brandon Dale <user-bf8ff8e1cedb@xymon.invalid> wrote:
   It shouldn't be difficult to do this.  Xymon has special parsing code
for Devmon status messages.


I couldn’t get this to work with the battery,power and powerin test for
that ups template. I found this where someone had the same issue:
http://lists.xymon.com/pipermail/xymon/2011-April/031424.html
Yeuch, that's an ugly hack.

There's special parsing code within Xymon that looks in status messages for
the string "<!--DEVMON" (10 chars, no space) and I think this triggers it
to look for a graph to display.

Elsewhere, there's a match against "<!--DEVMON RRD: " (16 chars) that
appears to be for remapping the test name to an RRD base filename.

It could be that including one or both of these in your "message" file will
give Xymon the hint that you want the graph displayed.

Actually, I think it's the first.  This is parsed in lib/htmllog.c.  The
logic goes like this:

if a test has a graph
  then if a test starts with "devmon"
    assume that it has no graph
    if the status message has <!--DEVMON
      then assume that it has a graph

So the "devmon=xyz" form causes the code to assume there's no graph.  It's
only if there is a subsequent "<!--DEVMON" string that Xymon will expect a
graph.

J