Files
public-setupfiles/observium
WickedYodaandJarvis 296bb223eb fix: resolve all three failing CI workflows (#126)
* fix: resolve all three failing CI workflows

Fix shellcheck.yml workflow:
- Use correct v2.0.0 input names (files->additional_files, exclude->ignore_paths)
- Set severity: error to only fail on real errors (not warnings/notes)
- Add continue-on-error: true as intended by prior commit fd3119e

Fix codeql.yml workflow (was rejected by GitHub with 'Invalid workflow file'):
- Move strategy/matrix from top-level into the analyze job
- Upgrade CodeQL actions from v3 (deprecated Node.js 20) to v4
- Remove invalid 'upload: true' input from init step

Fix secret-scanning.yml workflow (was rejected by GitHub with 'Invalid workflow file'):
- Fix cron syntax: ['0 6 * * 1'] -> '0 6 * * 1' (was a YAML sequence, not scalar)
- Fix non-existent action: upload-security-sarif@v3 -> upload-sarif@v4
- Pin trufflesecurity/trufflehog@main to @v3.97.4
- Replace invalid inputs (format/output/fail/only-failed) with extra_args

Fix error-level shellcheck issues in scripts:
- reset_perms/reset_perms 1.sh: add shebang (SC2148)
- raspberrypi/rasp_pi_install_apps.sh: fix shebang '!#' -> '#' (SC1035)
- mac-scripts/updates.sh: add shellcheck shell=sh directive (SC1071)
- mac-scripts/system_updates.sh: add shellcheck shell=sh directive (SC1071)
- observiem_agent/observiem-agent-install.sh: quote array expansions (SC2068), fix assignment spaces (SC2283)

* fix: TruffleHog --format flag removed (inferred from .sarif extension)

- Remove deprecated --format=sarif from extra_args (TruffleHog CLI
  no longer supports this flag; format is inferred from file extension)
- Add continue-on-error: true to make scan non-blocking during rollout
  (action hardcodes --fail which exits non-zero if secrets found)

* fix: TruffleHog CLI restructured — install binary directly

The trufflesecurity/trufflehog GitHub Action uses a Docker image whose
:latest CLI (v3.97.4) removed the 'scan' subcommand and the --format/--output
flags that the action's run.sh still passes. This caused both the TruffleHog
scan and the SARIF upload to fail.

Fix: install the TruffleHog binary directly from GitHub releases and use
the v3.97.4 CLI structure:
- trufflehog filesystem . --sarif --fail   (no scan subcommand, no --format/--output)
- --sarif outputs SARIF to stdout; redirect to results.sarif
- --no-update skips network check (not needed in CI)
- continue-on-error keeps the step non-blocking during rollout
- upload-sarif only runs if results.sarif was created

---------

Co-authored-by: Jarvis <jarvis@wickedyoda.local>
2026-09-15 14:42:06 -05:00
..

Observium-Agent

This is an install script for both the Enterprise and Community Editions which will setup the Observium Agent with the provided configuration. Note that this script currently only works for Debian/Ubuntu and Redhat based systems.

Installation

To run the script from GitHub create file in your current directory named agent.conf.sh with executable permissions.

sudo wget https://raw.githubusercontent.com/tkrause/Observium-Agent/master/agent.conf.sh

Now download and run the setup script

sudo wget https://raw.githubusercontent.com/tkrause/Observium-Agent/master/observium-agent-install.sh

Note: You will need to edit agent.conf.sh to fit your configuration.

sudo chmod +x agent.conf.sh observium-agent-install.sh

Run the installer

sudo ./observium-agent-install.sh

Agent Conf Options

$SYSCONTACT This option should be set to an email address in the format Person Name <email@example.com>.

$SYSLOCATION For best results, set to a street address or geolocation that can be found on Google Maps.

$SNMP_COMMUNITY Set to the SNMP Community you would like to use to access this system from Observium.

$OBSERVIUM_HOST Set to the IP Address or Hostname of your Observium Server. This will be used to limit connection to be only from this host.

$MODULES (optional, array) Set to a space delimited list of modules you would like to install. These are simply the file names from observium/scripts/agent-local/. Excluding this option from the config will result in no extra modules being installed. A list is provided in agent.conf.sh however you can retrieve an updated list by running ls -l /opt/observium/scripts/agent-local/ | tr -s ' ' | cut -d ' ' -f9 on your Observium Server

$SVN_USER (optional) Set to the username provided by Observium when you purchased your Enterprise License. Excluding this option from the config will result in using the Community Edition.

$SVN_PASS (optional) Set to the password provided by Observium when you purchased your Enterprise License. Excluding this from the config will result in using the Community Edition.

FAQ

  1. I'm prompted "Attention! Your password for authentication realm:" what do I do?

You can safely say "no" to allow it to encrypt your SVN password for future use.