Page 1 of 1

New Install - cron entry

Posted: Wed Sep 03, 2025 2:36 pm
by StevenBeauchemin
Can someone please explain why:
/usr/local/nagiosxi/cron/link_python
is running in /etc/cron.d/nagiosxi as:
0 * * * * root /usr/local/nagiosxi/cron/link_python

I see it makes a symbolic link. But in a cron that runs once an hour?
Please. Explain.

Sorry, but I need to know...

Thanks

Steve B

Re: New Install - cron entry

Posted: Wed Sep 03, 2025 3:23 pm
by cdietsch
Hi Steve,

I believe this script was created to always ensure the symbolic link /usr/bin/python exists so that python scripts that use this path can continue to work correctly.

Apparently there is a history of the symlnk vanishing for various reasons, such as having multiple versions of python installed and one of them updates/upgrades and removes the symlink.

Re: New Install - cron entry

Posted: Thu Sep 04, 2025 2:59 pm
by StevenBeauchemin
Okay, I understand.

Thanks!

Steve B

Re: New Install - cron entry

Posted: Sun Sep 14, 2025 11:50 pm
by xigemas
StevenBeauchemin wrote: Wed Sep 03, 2025 2:36 pm Can someone please explain why:
/usr/local/nagiosxi/cron/link_python
is running in /etc/cron.d/nagiosxi as:
0 * * * * root /usr/local/nagiosxi/cron/link_python

I see it makes a symbolic link. But in a cron that runs once an hour?
Please. Explain.

Sorry, but I need to know...

Thanks

Steve B
Nice!