Hi Andreas, looking in WATO Host & Service Parameters / Monitoring Configuration, the Normal check interval for service checks is defaulting (to 1 minute) for most but I have a rule for the specific service âCheck_MK HW/SW Inventory$â of a 1 day interval. The Retry interval for service checks I have set to 3 minutes.
Yesterday I tried setting the environment variable (referred to in mk_inventory, sourced from a config file) INVENTORY_INTERVAL one on problematic host to 28 hours (100800 seconds). This is used in building the Persist value in the output.
This appeared to work, the host has had significant inventory data saved in the persist directory on the monitoring server.
Iâm giving it a few days to see what happens.
Gord
From: Andreas Döhler [mailto:***@gmail.com]
Sent: Thursday, November 15, 2018 3:01 PM
To: Austin, Gordon
Cc: <checkmk-***@lists.mathias-kettner.de>
Subject: Re: [Check_mk (english)] host inventory oscillating
Hi Gordon, this is strange it looks more like that your "Check_MK HW/SW Inventory" check runs every minute and see's there a deleted file and in the result empty data from your agent.
If you look at the service view of the "Check_MK HW/SW Inventory" what do you have as "Service normal/retry check interval" there?
On my systems it is something like 240 m / 60 s.
Best regards
Andreas
Am Di., 13. Nov. 2018 um 22:20 Uhr schrieb Austin, Gordon <***@postmedia.com<mailto:***@postmedia.com>>:
Hi Andreas, I donât have anything specifically set for the âcheck_mkâ service so it should be defaulting like almost all my services to 1 minute. In fact I have observed this, e.g. after deleting the inventory flag file.
Gord
From: Andreas Döhler [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Tuesday, November 13, 2018 3:03 PM
To: Austin, Gordon
Cc: <checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>>
Subject: Re: [Check_mk (english)] host inventory oscillating
Hi Gordon,
You dont need to change the setting they are ok.
It would be a problem if your check interval of your âcheck_mkâ service would be greater then 10 minutes.
I try to describe why :)
The inventory data generated is every 14400 seconds and is persistent for 15000 seconds.
If your check interval of your âcheck_mkâ service (not the Check_MK HW/SW Inventory service)
Is now greater then 10 minutes it can happen that you reach the point last query to system was at 14390 seconds of interval time (all fine here) next query is then 15min later at 15300 seconds of interval. Here will be again all data transfered. But between 15000 and 15300 if there happens a active check of Check_MK HW/SW Inventory this service will not find any persistent data to process and will give you an empty inventory.
Any other problems need more data about your system setup. This is then also not so easy to debug.
Best regards
Andreas
Austin, Gordon <***@postmedia.com<mailto:***@postmedia.com>> schrieb am Di., 13. Nov. 2018, 20:56:
Yes that is the check. It has taken me some time to find it, but I have a rule âNormal check interval for service checksâ (for Active checks), set to an interval of 1 day for Services: Check_MK HW/SW Inventory$ for all hosts.
My Host check interval is defaulting to 1 minute.
The mk_inventory.linux script is setting the interval to 14400 (seconds, equals 4 hours) and adding 600 (10 minutes) plus NOW to give the persist value.
So if I understand correctly, I need to either shorten the rule âNormal check interval for service checksâ to less than 4 hours, or define the INVENTORY_INTERVAL the mk_inventory script looks for to be greater than 1 day, in seconds.
This makes sense, but I donât understand why this is a problem on six of my servers but not several hundred others â all running the same version of mk_inventory.
Gord
From: Andreas Döhler [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Sunday, November 11, 2018 3:00 AM
To: Austin, Gordon
Cc: <checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>>
Subject: Re: [Check_mk (english)] host inventory oscillating
Hi Gordon,
You mean the "Check_MK HW/SW Inventory" check right? Here are some points you can check.
Check interval for this service should be a high value like 4 hours as in most of my setups.
The check interval of your hosts is important. If your persistent data gets to old and no new data is coming then your check is thinking that nothing is there anymore.
The mk_inventory script sets the persistent time to defined interval plus 5 minutes. If you have hosts with an check interval of 10 minutes you will get from time to time an empty response and have also no persistent data on your monitoring server. This will result in the problem you mentioned.
Best regards
Andreas
Am Fr., 9. Nov. 2018 um 18:32 Uhr schrieb Austin, Gordon <***@postmedia.com<mailto:***@postmedia.com>>:
I have many hosts configured in Check MK including using mk_inventory to successfully gather inventory data. However for some but not all hosts Iâve added in the past few months (more or less since I upgraded Check MK from 1.2.8 to 1.4.0p34) I see an odd oscillation:
At one point in time a full inventory is gathered and shows up via our Check MK website and on the monitor server under âŠvar/check_mk/inventory/<host> with lots of data (say 1522 items). Next day or so at a certain time of day(always the same), this has dropped to 91 items or less and Inventory History shows under Removed something like 1522.
Manually testing the agent and mk_inventory call, I always get the full data.
For the problem hosts, there is nothing in âŠvar/check_mk/persisted/<host>.
For the good hosts there is normal full data in persisted and inventory directories.
I donât know if this is a bug, or I have a bad rule somewhere. Once a day rings a bell but so far I canât find a rule for that. What might it be under?
Any suggestions?
Gord Austin
SENIOR TECHNICAL SPECIALIST
UNIX & LINUX SYSTEMS
BUSINESS TECHNOLOGY
Error! Filename not specified.
T 204.926.4773 C 431.336.2072
6th Floor 300 CARLTON STREET<https://maps.google.com/?q=300+CARLTON+STREET+%0D%0A+WINNIPEG,+MB+R3B+2K6&entry=gmail&source=g>
WINNIPEG, MB R3B 2K6<https://maps.google.com/?q=300+CARLTON+STREET+%0D%0A+WINNIPEG,+MB+R3B+2K6&entry=gmail&source=g>
***@postmedia.com<mailto:***@postmedia.com>
The information contained in this email is strictly confidential, and is only intended for the party(ies) to whom it is addressed. Any other use, dissemination, distribution, disclosure or copying is prohibited. If you have received this email in error please so advise by reply email. Thank you.
_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en