[Pkg-nagios-devel] Bug#796455: automatic inventory checks of what?
Václav Ovsík
vaclav.ovsik at gmail.com
Fri Jun 10 16:01:17 UTC 2016
Hi Matt,
I'm not certain about what inventory you write this wishlist, there are
at least two meaning:
1) inventory of service checks
The URL you mentioned
http://mathias-kettner.com/checkmk_inventory_checks.html
is about this.
2) HW/SW inventory - that is information from dmidecode, operating
system, packages installed...
- the agent plugin mk_inventory does this on monitored host
- on monitoring system this must be configured to process data
using code from /usr/share/check_mk/inventory.
upstream describe it at https://mathias-kettner.com/checkmk_inv.html
ad agent load:
- the problem is, that mk_inventory.linux plugin assumes
existence of directory /var/lib/check_mk_agent, which is not
instantiated by deb package. The plugin can't create timestamp
file there and is run everytime the agent is run.
- plugin should be pathed to do
mkdir -p $MK_VARDIR
- deb pkg check-mk-agent should create /var/lib/check_mk_agent?
- with existing timestamp file, the inventory is created only
onetime in four hours
without WATO on monitoring system you must define active check, that
will transform received data from /var/lib/check_mk/persisted into
/var/lib/check_mk/inventory in regular intervals.
I did this now main.mk using:
...
active_checks['cmk_inv'] = []
...
# HW/SW Inventory
extra_service_conf['check_interval'] += [
( 120, [], ALL_HOSTS, ['Check_MK HW/SW Inventory$'] ),
]
extra_service_conf['retry_interval'] += [
( 120, [], ALL_HOSTS, ['Check_MK HW/SW Inventory$'] ),
]
...
# HW/SW Inventory
active_checks['cmk_inv'] += [
( None, [], ['foo.example.com'] ),
]
I don't think this should be in different package.
Regards
--
Zito
More information about the Pkg-nagios-devel
mailing list