How to setup xymon client (via CLI)

  • I'd been wanting some remote monitoring and trend graphing forever. I like my old Hobbit/Big Brother/Xymon but despite there being a few pfsense package requests in the past, its not been made available as part of pfsense. (I'm sure the demand is too low vs other requests.)

    There's an outdated post about how to do it from 7 years ago, but that no longer works. Last night I forced myself to sit down and figure out how to install it on modern (2.4.4) pfsense.

    Simple as:

    1. SSH in as root. Drop into the CLI.

    2. pkg add
      replace "amd64" with your own architecture. If you get it wrong, the CLI will tell you to change it.

    3. vi /usr/local/www/xymon/client/etc/xymonclient.cfg
      point to your xymon-server and port.

    4. /usr/local/etc/rc.d/xymon-client onestop

    5. /usr/local/etc/rc.d/xymon-client onestart

    If the URL in step 2 is not found, just browse to and find your own path. The version of BSD might be 12, 13, or 14 for you people reading this in the future. And the xymon-client might not be 4.3.28. For example, it was 4.3.28 for amd64 but 4.3.27 for armv6 architecture when I sorted it out for my netgate appliances last night.

    To have it start on boot:

    1. ln -s /usr/local/etc/rc.d/xymon-client /usr/local/etc/rc.d/
    2. sed -i "" 's/xymon_client_enable:=NO/xymon_client_enable:=YES/g' /usr/local/etc/rc.d/xymon-client

    There's a way to do it in config.xml, but, well, I didn't do it that way.

Log in to reply