make nagios.log historical datas migrate to livestatus

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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.
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 Not having developed this though, I would suggest pinging the check_mk community -
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Support Tech
Posts: 3907
Joined: Tue Feb 07, 2017 11:26 am

Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 3 guests