How to monitor Linux Updates using local check (python / bash script) and send it to CheckMK
I am looking for a method to monitor linux updates / security patches in CheckMK using local checks (python / bash scripts). If there is any updates going on in linux the status changes to Warning. And after update the status changes back to OK.
do you know?
how many words do you know
See also questions close to this topic
-
Linux on Lightsail instance is asking for a password and it's not working
I'm trying to restart
mariaDB
on Ubuntu but it's not letting me.I enter:
systemctl restart mariadb
and get:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to restart 'mariadb.service'. Authenticating as: Ubuntu (ubuntu) Password: polkit-agent-helper-1: pam_authenticate failed: Authentication failure ==== AUTHENTICATION FAILED ===
I have the same password for all functions so I do not understand why it is not working. What can I do?
-
How to tag and store files, by metadata, in Python?
I want to build a manual file tagging system like this. Given that a folder contains these files:
data/ budget.xls world_building_budget.txt a.txt b.exe hello_world.dat world_builder.spec
I want to write a tagging system where executing
py -3 tag_tool.py -filter=world -tag="World-Building Tool"
will output
These files were tagged with "World-Building Tool": data/world_building_budget.txt hello_world.dat world_builder.spec
Another example. If I execute:
py -3 tag_tool.py -filter="\.txt" -add_tag="Human Readable"
It will output
These files were tagged with "Human Readable": data/world_building_budget.txt a.txt
I am not asking "Do my homework for me". I want to know what approach I can take to build something this? What data structure should I use? How should I tag contents in a directory?
-
Installing pillow fails on Linux environment or Chrome OS. How do I fix this?
When I try to install pillow with pip3, it gives me the following error message.
failed building wheel for pillow
[omitted text]
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-092vzzoo/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-v4rw5g1c/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-092vzzoo/pillow/
- Is this stuck pixel or dead pixel?
-
How can I emulate a screen on a dedicated server ( windows ) without dummy plug
for some automation projects that need screen detection ( underpython ) we are running dedicated servers under windows.
Those servers needs to be running via an RDP on my main computer or screen wouldn't render and then script would stop working.
Do you know any solution to "fake" that a screen is pugged or force the rendering or the screen in any way?
I've tried to use the ayumi fake 2nd screen software https://www.amyuni.com/forum/viewtopic.php?t=3030 which worked for the machines I own physically, they would still render screen.
But this solution doesn't work on a dedicated server.
Thanks a lot if you guys find any solution to this, this would save me a lot of time and hassle.
-
Problem making a calculation in a monitor on the interface in Netlogo
I have a model that tracks energy levels in sheep, which I have defined as a breed. I have set up a monitor to calculate the mean energy level for the sheep, but need to consider what happens if there are no sheep at some point. I have tried numerous variations, the simplest of which is:
ifelse (any? sheep) ["NA"] [mean [energy] of sheep]
Unfortunately, I keep getting the error
Expected reporter.
I can work around this by creating a new global variable and reporter in the code, but this seems to be a bit of a waste. Am I doing something wrong or are there limitations on what kind of calculations can be done in a monitor on the Interface? If so, where are these limitations summarized?
-
Getting "'__name__' not in globals" when updating custom plugins for 2.0
I have updated my
check_mk
from 1.6.x to 2.0.xMy custom omd-plugins got messed up and so I started to refactor them for the new 2.0 API with the help of this article.
However, when the time for testing came, I got this:
OMD[my_omd]:~$ cmk --detect-plugins=my_plugin -vI my_host.my_company.de Error in plugin file /omd/sites/my_omd/local/share/check_mk/checks/my_plugin: "'__name__' not in globals"
-
checkmk monitor hdd health with SMART for windows hosts
Hi I need to monitor the Health of hdd and ssds of windows Hosts. I try to use checkmk to do this. I found this: https://checkmk.com/de/integrations/openhardwaremonitor_smart
But no tutorial or docu for this. Agent is installed and works. But How can I add the smart value check for this host?
Thanks in advance