New Install - cron entry

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

New Install - cron entry

Post 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
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

Re: New Install - cron entry

Post 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.
Cheers,
- Cole
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

Re: New Install - cron entry

Post by StevenBeauchemin »

Okay, I understand.

Thanks!

Steve B
xigemas
Posts: 1
Joined: Mon Sep 08, 2025 3:36 am

Re: New Install - cron entry

Post 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!
Post Reply