2bit Thoughts
  • Home
  • Author
Subscribe

snippet

A collection of 4 posts
automation

Mute and Unmute Checks in Morpheus with Python

If you are using Morpheus for monitoring and you want to mute check in a Jenkins task or similar, here's a quick Python script to mute a task by name: from pymorpheus import MorpheusClient import os # env vars from jenkins secrets morpheusUrl = os.environ['morpheusUrl'] morpheusToken = os.environ['morpheusToken'] morpheusCheckName
Feb 24, 2022 1 min read
snippet

Paging Morpheus API in Python

Using Morpheus' API is something that comes up very often, and there have been a few bad habits that I've noticed.  I myself have been guilty of using large maximum values when hitting endpoints.  eg. /networks?max=10000 I came up with the following code.  It's a function than concatenates
Feb 17, 2022 1 min read
snippet

Install Specific Package Versions with Yum and Apt

Apt-based: # Check available versions apt-cache madison # Install package by version apt-get install = -V Yum-based: # Check available versions yum list --showduplicates # Install package by version yum install -
Feb 3, 2022
snippet

CentOS 8 End of Life Fix

So, with the end of January 2022 comes the end of versioned CentOS from our good friends at IBM/Redhat. To make CentOS 8.5 just keep working, run this: sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|
Feb 3, 2022
2bit Thoughts © 2023
Powered by Ghost