make nagios.log historical datas migrate to livestatus

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

make nagios.log historical datas migrate to livestatus

Postby kovjo57 » Thu Nov 22, 2018 6:56 am

I made a nagios upgrade from 3.5.1 to 4.4.2, so I had to uprade the broker, mk-livestatus from mk-livestatus-1.2.3i6 to mk-livestatus-1.5.0p6 also.My problem is, that I couldn't perfectly migrate the old nagios.log into the new nagios,
so that the livestatus handle it correctly. I doesn't do that ,because when I try to get the log datas for the last hour, it returns nothing.

echo -e "GET log\nFilter: time <= $(($(date +%s)))\nFilter: time >= $(($(date +%s)-3600))\nAnd: 2\nColumns: current_host_display_name time state\nSeparators: 10 9 44 124" |sudo /usr/local/bin/unixcat /usr/local/nagios/var/rw/live

In the nagios cgi based view, "Host Alert History" I can see the nagios.log correctly. It is the livestatus log table ,that isn't
updated at all.
kovjo57
 
Posts: 1
Joined: Fri May 05, 2017 7:13 am

Re: make nagios.log historical datas migrate to livestatus

Postby cdienger » Tue Nov 27, 2018 11:16 am

Double check the install and configuration per https://mathias-kettner.com/checkmk_livestatus.html. Not having developed this though, I would suggest pinging the check_mk community - https://mathias-kettner.com/community.php
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 4394
Joined: Tue Feb 07, 2017 11:26 am


Return to Community Support

Who is online

Users browsing this forum: Auel, Google [Bot], MWillems and 22 guests