Skip to end of metadata
Go to start of metadata


Collecting Agent Data

Collecting Agent Output

via command line

As site User:
OMD[workshop]:~$ cmk -d HOSTNAME >/path/to/file.txt

or on the affected system:
root@klappanas:~# check_mk_agent >/path/to/file.txt

use the option -d to see what the agent is doing in detail:
root@klappanas:~# check_mk_agent -d &>/path/to/file.txt

or via GUI

Debugging special Agents

Please see our Knowledge Base manual: Debugging Special Agents

SNMP Walk

Via the GUI:

If you run the below command as site-user 

OMD[workshop]:~$cmk --snmpwalk <your_f5_host>
a file will be created under the following path: 

OMD[workshop]:~$OMD_ROOT/var/check_mk/snmpwalks <your_f5_host> 


or directly with snmp command:


for snmp v3:

root@klappanas:~# snmpwalk -v3 -On -l authPriv -u <SNMP-User> -a SHA -A <SNMP-Passwort> -x DES -X <privKey> -Onqet <HOSTNAME or IP Address>  >/tmp/snmpwalk.txt
                 
for snmpv2 :

root@klappanas:~# snmpwalk -v 2c -c rcannie -OnQet <HOSTNAME or IP Address> > /tmp/snmpwalk-v2.txt

If your community has a special character, you need to escape this with backslash:


snmpwalk  -v2c -c 123\$asddk  -OnQet 192.168.20.5  > /tmp/snmpwalk-v2.txt

Increase Log level

Please don't forget to decrease the log level after you submitted the file to us. Otherwise, the log file will become huge, and you may run out of space.


Core 

Setup → General → Global Settings → Monitoring Core → Logging of the core

  • Alerts
  • Carbon connections
  • Core
  • Downtime
  • Checkmk helpers
  • Livestatus
  • Notification system
  • RRD processing
  • Smartping

Setup → General → Global Settings → Monitoring Core → Logging of the notification mechanics

Setup → General → Global Settings → Monitoring Core → Logging of RRD creation

Setup → General → Global Settings → Monitoring Core → Debugging of Checkmk helpers


The log file will then be available for the site user at:

~/var/log/cmc.log

Livestatus Proxy

Setup → General → Global Settings → Livestatus Proxy → Livestatus Proxy Logging


The log file will then be available for the site user at:

~/var/log/liveproxyd.log

~/var/log/liveproxyd.state

DCD

Setup → General → Global Settings → Dynamic Configuration → Dynamic configuration logging 


The log file will than be available for the site user at:

~/var/log/dcd.log


Alert Handler

Setup → General → Global Settings → Alert Handlers → Alert Handler log level 


The log file will than be available for the site user at:

~/var/log/alerts.log

Notification

Setup → General → Global Settings → Notifications → Notification log level

Setup → General → Global Settings → Notifications → Notification Spooler Configuration → Verbosity of logging


The log file will then be available for the site user at:

~/var/log/mknotifyd.log

~/var/log/mknotifyd.log

User Interface

Setup → General → Global Settings → User Interface → Logging 

  • Web
  • Authentication
  • LDAP
  • BI compilation
  • Automation calls
  • Background jobs


The log file will then be available for the site user at:

~/var/log/web.log


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:



There is no content with the specified labels