Open tarohida opened 5 months ago
With Nagios Core 4.4.14, it works.
# printf "GET services\n" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live
accept_passive_checks;acknowledged;acknowledgement_type;action_url;action_url_expanded;active_checks_enabled;cache_interval; ...
# systemctl status nagios
● nagios.service - Nagios Core 4.4.14
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; preset: d>
Active: active (running) since Fri 2024-04-26 15:38:11 UTC; 2h 24min ago
...
What happens if you recompile the livestatus binaries with Nagios 4.5.1?
Thank you for comment. I recompile the livestatus binaries with Nagios 4.5.2, It looks work. Nagios service didn't crash. I think problem was solved. I will fix it.
# printf "GET services\nColumns: description\n" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live
Current Load
Current Users
HTTP
PING
Root Partition
SSH
Swap Usage
Total Processes
# printf "GET services\n" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live
accept_passive_checks;acknowledged;acknowledgement_type;action_url;action_url_expanded;active_checks_enabled; ...(trimmed)
Same as below. https://support.nagios.com/forum/viewtopic.php?p=356262
I don't know how it occurs and how to solve it.
It works.
But it doesn't work and nagios.service failed with exit code 254.