[Xymon] DS override - can't get to work
John Horne
john.horne at plymouth.ac.uk
Fri May 17 19:20:02 CEST 2019
On Fri, 2019-05-17 at 16:22 +0000, John Horne wrote:
> On Fri, 2019-05-17 at 15:44 +0000, John Horne wrote:
> > On Fri, 2019-05-17 at 14:59 +0000, John Horne wrote:
> > > On Fri, 2019-05-17 at 13:23 +0000, John Horne wrote:
> > > > I'm wondering if the fact that we are using
> > > > 'httpstatus;httpsch://weed.plymouth.ac.uk/;"^[23]";"^[^23]"' for the
> > > > test is causing a problem.
> > > >
> > Okay, so I tried using DS with the 'conn' test, and that worked fine (the
> > page went yellow).
> >
> I decided to change the HTTP test DS entry to use a regex for the filename,
> and that worked!
>
> If I use 'DS http %^tcp\.http\.https.*weed.*\.rrd:sec >0.0007 COLOR=yellow'
> then that works fine.
>
> I'll see if I can work backwards to find out what in the original filename is
> causing the problem.
>
The only way I can get this test to work is by prefixing the filename with a
'%' in order to make it a regex.
By trial and error, and not as a regex, I have tried escaping the colon and
comma characters. I have tried including the whole of the filename in single
quotes and double quotes, and then repeated that on literally just the filename
part.
All of these failed.
Oddly I repeated the DS settings on a different client server (same xymon
server), and noticed that the RRD filename was different.
In the hosts.cfg file, if I use 'httpstatus;http://x1...' then the filename
produced is 'tcp.http.x1...'.
But if I use 'httpstatus;https://x2...' then the filename becomes
'tcp.http.https:,,x2...'. The '://' part of the URL is now included in the
filename (and commafied(!)).
Anyway, it's back to the code I guess.
John.
--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>
This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
More information about the Xymon
mailing list