<div dir="ltr"><div>Hi J.C.,<br><br></div>It doesn't seem to be working with or without the escape backslash. It doesn't show up in the env output either way.<br><br>root@<host> ~]# grep NORRDDISK /etc/xymon/xymonserver.cfg<br>NORRDDISKS="^/dev|^/var|^/tmp$"<br>[root@<host> ~]# xymoncmd env | grep NORRD<br>2016-03-02 14:18:47.151545 xgetenv: Cannot find value for variable <br>NORRDDISKS=^/dev|^/var|^/tmp<br><br>[root@<host> ~]# grep NORRDDISK /etc/xymon/xymonserver.cfg<br>NORRDDISKS="^/dev|^/var|^/tmp\$"<br><div class="gmail_extra">[root@<host> ~]# xymoncmd env | grep NORRD<br>2016-03-02 14:17:47.233910 xgetenv: Cannot find value for variable <br>NORRDDISKS=^/dev|^/var|^/tmp<br><br><br></div><div class="gmail_extra">When I do it with them grouped together, it gives me the same result:<br><br>[root@<host> ~]# grep NORRDDISK /etc/xymon/xymonserver.cfg<br>NORRDDISKS="^(/dev|/var|/tmp)$"<br>[root@<host> ~]# xymoncmd env | grep NORRD<br>2016-03-02 14:20:35.984507 xgetenv: Cannot find value for variable <br>NORRDDISKS=^(/dev|/var|/tmp)<br><br></div><div class="gmail_extra">Any ideas?<br><br></div><div class="gmail_extra">Thanks!!<br><br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><div>--</div><div>Matt Vander Werf</div></div></div>
<br><div class="gmail_quote">On Wed, Mar 2, 2016 at 11:50 AM, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><br>
<br>
On Wed, March 2, 2016 8:31 am, Matt Vander Werf wrote:<br>
> Hello,<br>
><br>
> Looking at past list e-mails, it is my understanding that the NORRDDISKS<br>
> setting in xymonserver.cfg allows for PCRE regular expressions. Is this<br>
> correct? Or does it only allow certain PCRE regular expressions, but not<br>
> everything?<br>
><br>
> I ask because I'm experiencing an issue with my NORRDDISKS setting.<br>
><br>
> I'd like to ignore disks for graphing that have mount points "/tmp", but<br>
> not ignore disks with mount points that have "tmp" in them, like<br>
> "/tmpscratch".<br>
><br>
> I noticed that for other disk mount point names that if you just use<br>
> "^/<name>" with no modifiers, then it only ignores disk mount points with<br>
> only exactly "^/<name>" and not "^/<name><additional text>" or<br>
> "^/<name>/<more name>" (at least from what I can tell).<br>
><br>
> For example when using:<br>
><br>
> NORRDDISKS="^/dev|^/tmp|^/var"<br>
><br>
> It ignores disks with mount points "/dev" and "/var", but also "/tmp" AND<br>
> "/tmpscratch". But it doesn't look like it ignores "/var/tmp" (at least as<br>
> far as I can tell).<br>
><br>
> I tried using "^/tmp$" and that didn't work either (still ignored both<br>
> names).<br>
><br>
><br>
> Any idea what's going on here? Or how this can be done correctly? Is the<br>
> "$" metacharacter not allowed in this setting?<br>
><br>
><br>
> If it's needed, I'm running the latest 4.3.26-1 Terabithia RPM on RHEL 7.<br>
><br>
> Thanks for any help!!<br>
><br>
> --<br>
> Matt Vander Werf<br>
<br>
<br>
</div></div>Try checking the output of 'xymoncmd env | grep NORRD' ? If the '$' is not<br>
coming through, it might be getting read in as an attempt at a shell<br>
variable.<br>
<br>
If so, can you try escaping it as \$ instead?<br>
<br>
Alternatively: '^(/dev|/tmp|/var)$'<br>
<br>
<br>
HTH,<br>
-jc<br>
<br>
</blockquote></div><br></div></div>