Posts By: jonny

check_mk: Check APT updates

On your check_mk install under the WATO menu navigate to ‘Monitoring Agents’ find and click on the link for ‘Check for APT updates (Debian, Ubuntu)’. This is the check plugin to add to the server so copy that code. Copy the contents of that check file to a file named mk_apt file in the /usr/lib/check_mk_agent/local… Read more »

ThingsBoard API: Get telemetry values

I’m using Insomnia for testing and after already getting the auth token I use that in Insomnia as follows: The URL I used for the query was: The word device in there does not need to be changed by the ID field that follows it should be changed to the UUID of your device. You… Read more »

Blink Hard Disk Light on Dell

To blink the light on a hard disk on Dell Server from the command line first get a list of the physical disks so you can check the disk ID: omreport storage pdisk controller=0 then to blink the disk: omconfig storage pdisk action=blink controller=0 pdisk=0:0:2

check_mk: Emails Not Sent

On a CentOS 7 server with postifx already installed and working I found the emails from check_mk / OMD were not being sent. I needed a symlink for sendmail: ln -s /usr/lib/sendmail.postfix /usr/lib/sendmail Test with su – omduserecho “content” | mail -s test-email me@gmail.com

check_mk: monitor that a process exists

WATO > Manual Checks and click on “State and Count of Processes” Add the description, check-type, process name and process matching and set the levels for the number of these processes that are expected:

check_mk: Check for Yum Updates

Visit the page below to download the mkp package: https://checkmk.de/check_mk-exchange-file.php?&file=linux-updates-1.0.mkp Upload the mkp package to your check_mk server then install it : OMD[mysite]:~$ mkp -v install linux-updates-1.0.mkp On the servers to be checked add the check shell script. cd /usr/share/check-mk-agent/local vi mk_linuxupdates.sh The code for the check is within the download but shown here too:… Read more »

CLI RAID Disk Layout on Dell Servers

Newer iDRAC web interfaces show the physical and virtual disks on a PERC controller but for older servers with an old iDRAC use openmanage on the command-line. To view a list of the physical disks: omreport storage pdisk controller=0 To view a list of the virtual disks: omreport storage vdisk controller=0 To check which physical… Read more »

check_mk: Monitor Nginx Status

On the Check_mk web UI visit:WATO menu > Monitoring Agents In the list on check agents you should find the nginx_status. Clicking on it shows the code for the check. Copy that code to the client server. The location on web001 for the check (for me anyway) was: /usr/share/check-mk-agent/local/nginx_status Make sure it is executable. On… Read more »

check_mk: Add Custom Notes to Services

The scenario here is that I would like to add a ‘custom notes’ link to any services with the word ‘postfix’ in the name of the service. I started by visiting WATO and drilling down to a host and one of the services I was interested in adding notes to: Then scroll down and click… Read more »