This article details how to collect information and logs for troubleshooting purposes.
LAST TESTED ON CHECKMK 2.1.0P1
Acquiring Host Reports
Collect the following two PDF reports for affected hosts:
Collecting Agent Data
Collecting Agent Output
Via the command line
As site User: OMD[workshop]:~$ cmk -d HOSTNAME >/path/to/file.txt or on the affected system: root@mylinuxhost:~# check_mk_agent >/path/to/file.txt use the option -d to see what the agent is doing in detail: root@mylinuxhost:~# check_mk_agent -d &>/path/to/file.txt
Via the GUI
- Click on the Hamburger menu
- Click Download agent output
Collecting a series of Agent Outputs
When counter-based checks are involved, one agent output is insufficient, as the delta or the "per minute" value must be calculated.
You can collect a series of 10 agent outputs using the following code snippet:
# As site user: # Fill in your hostname here: host="myhost" t=60 # Check interval in, default is 60s s=0 while [ $s -lt 600 ]; do echo $s cmk -d $host > /tmp/agent_output_series_$s let s=$s+$t sleep $t done tar -cvzf /tmp/agent_output_series.tar.gz /tmp/agent_output_series_off_*
In addition to that, you can also How-to temporarily enable debugging in the Linux agent
Debugging Special Agents
Please see our Knowledge Base manual: Special Agents
SNMP Walk
Via GUI
- Click on the Hamburger menu
- Click Download SNMP Walk
Via CLI
If you run the below command as site-user
OMD[mysite]:~$cmk --snmpwalk <your_snmp_host>
a file will be created under the following path:
OMD[mysite]:~$OMD_ROOT/var/check_mk/snmpwalks/<your_snmp_host>
or directly with the SNMP command
for snmp v3:
root@mylinuxhost:~# snmpwalk -v3 -l authPriv -u <SNMP-User> -a SHA -A <SNMP-Password> -x DES -X <privKey> -Onqet <HOSTNAME or IP Address> .1.3.6.1 >/tmp/snmpwalk.txt
for snmpv2 :
root@mylinuxhost:~# snmpwalk -v 2c -c <community> -Onqet <HOSTNAME or IP Address> .1.3.6.1 >/tmp/snmpwalk-v2.txt
If your community has a special character, you need to escape this with a backslash:
snmpwalk -v2c -c 123\$asddk -Onqet 192.168.20.5 .1.3.6.1 > /tmp/snmpwalk-v2.txt
Increase Log level
Please don't forget to decrease the log level after you submit the file to us.
Otherwise, the log file will become huge, and you may run out of space.
Core
Livestatus Proxy
DCD
Alert Handler
Notification
User Interface
Periodic service discovery rules
Do the following to find active periodic service discovery rules:
- Click on Monitor and then enter the host you're looking for within the search field
- Click on the hostname at the top of the table
- Select Effective parameters from the host menu
- Scroll down to the Service Discovery rules section and then click on Periodic Service Discovery
- Here you will find your Periodic service discovery rules
Collect logs from Checkmk Appliance
Log in to the Webconf of the Checkmk Appliance and select "View Log Files" in the Main Menu.
Now you can select the log file and Download the file:
Get the OMD performance report
Log on to Checkmk UI and navigate to the server Checkmk is running on. If the agent is installed and rulesets are correctly configured, you'll get several services named "OMD <sitename>."
Locate the service "OMD <sitename> performance" and click on it:
On the next page, please scroll down and click on a graph that fits the time best (we usually ask for the last 8 or 35 days)
goto "Export → This view as PDF"
Related articles