🖥️checkmk
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the checkmk command with important options and switches using examples.
3 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ██████╗██╗ ██╗███████╗ ██████╗██╗ ██╗███╗ ███╗██╗ ██╗
# ██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝████╗ ████║██║ ██╔╝
# ██║ ███████║█████╗ ██║ █████╔╝ ██╔████╔██║█████╔╝
# ██║ ██╔══██║██╔══╝ ██║ ██╔═██╗ ██║╚██╔╝██║██╔═██╗
# ╚██████╗██║ ██║███████╗╚██████╗██║ ██╗██║ ╚═╝ ██║██║ ██╗
# ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
apt-get upgrade
-> bei Grub 2 Option /dev/sda
dpkg -i check-mk-agent_1.4.0i1_all.deb
apt-get install python-requests
apt-get purge `dpkg -l | awk '/^rc/ { print $2 }'`
-> löscht lib32gcc1* libc6-i386*
apt-get purge -y check-mk-agent-logwatch
apt-get purge -y check-mk-agent
cmk-update-agent -vvv -r
cmk-update-agent register -v --secret SECRET
nwl...
admin_registration
chkconfig isc-dhcp-server off
# Portfreigaben
#----------------#
source ip:
monitoring: 10.250.250.10
nagios: 10.250.250.1
check_mk: TCP 6556
snmp: UDP 161
snmp Trap: UDP162
apt-get purge libldb1 libsmbclient python-ldb python-samba samba-common samba-common-bin samba-libs smbclient
apt-get autoremove
-> löscht
libasn1-8-heimdal libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libgssapi3-heimdal
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libntdb1
libpython2.7 libroken18-heimdal libtalloc2 libtdb1 libtevent0 libwbclient0 libwind0-heimdal python-crypto python-ntdb
python-talloc python-tdb
shutdown -r now
#######################
scp check-mk-agent_1.2.8p18_all.deb unix-srv003.lxu.io:/root/
ssh unix-srv003.lxu.io
apt purge check-mk-agent
dpkg -i check-mk-agent_1.2.8p18_all.deb
cmk-update-agent register -vvv --secret SECRET
#####################
# check_mk
#################
ERROR Cannot fetch deployment URL via curl: Couldnt resolve host. The given remote host was not resolved.
[email protected] # /usr/bin/cmk-update-agent register -s monitor.lxu.io -i master -H `hostname` -p http -U omdadmin -S ASFKWEOUPPEFKG -v
# Here in this command:
# -s is monitoring server
# -i is Name of Check_MK site on that server
# -H is Host name to fetch agent for
# -p is protocol Either http or https (default is https)
# -U User-ID of a user who is allowed to download the agent.
# -S is secret. Automation secret of that user (in case of automation user)
# From error you can figure out that command is not able to resolve monitoring server DNS name monitor.lxu.io
# Solution :
# Its pretty simple. Check /etc/resolv.conf to make sure that you have proper DNS server entry for your environment. If it still dosnt resolve issue then you can add entry in /etc/hosts for it.
# cat /etc/hosts
10.0.10.9 monitor.lxu.io
# Thats it. You would be able to register now successfully.
/usr/bin/cmk-update-agent register -s monitor.lxu.io -i master -H `hostname` -p http -U omdadmin -S ASFKWEUZOOSHEFKG -v
# Going to register agent at deployment server
# Successfully registered agent for deployment.
# You can now update your agent by running 'cmk-update-agent -v'
# Saved your registration settings to /etc/cmk-update-agent.state.
# By the way you can directly use IP address for -s switch and get rid of all above jargon including error itself!
###############################
# check_snmp_env.pl
/opt/omd/sites/nagios/local/lib/nagios/plugins
# Hier liegen die Perl Scripte der Checks
/opt/omd/sites/nagios/etc/nagios/conf.d/config/generic
# domaincontroller:
domaincontroller.lxu.io
#==============================##==============================#
# CMD AWK #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command checkmk in a clear format. This allows users to quickly access the needed information for checkmk without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for checkmk are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.