Inventory is a monitoring service discovered by check_mk.
We can add a regular inventory check mechanism for all hosts to enable check_mk to automatically detect all hosts. If a new service can be monitored is found, a warning message will appear on the webpage.
The configuration is simple. Add two lines in the/etc/check_mk/Main. mk file:
Inventory_check_interval = 120inventory_check_severity = 1
Reference: http://mathias-kettner.de/checkmk_inventory_checks.html
120 minutes, that is, two hours of detection.
Then refresh the configuration and restart icinga:
Check_mk-uservice icinga restart
When you access the page, you will see an additional service under each host. You can click the refresh button to immediately check:
Okcheck_mk inventoryok-No unchecked services found4 min4 min
Command Line Detection Method:
Root @ icinga:/etc/check_mk # check_mk -- check-inventory 10.112.18.131ok-No unchecked services found