Linux, VMware

Cron service not running and unable to start on VMWare photon OS 4.0

Recently I install the cronie package to use the cron jobs but I noticed that I couldn’t start the service.

root@photon [ ~ ]# tdnf install cronie

Installing:
cronie                                               x86_64                     1.5.5-1.ph4                         photon                        222.41k 227744

Total installed size: 222.41k 227744
Is this ok [y/N]: y

Downloading:
cronie                                  118712   100%
Testing transaction
Running transaction
Installing/Updating: cronie-1.5.5-1.ph4.x86_64
Created symlink /etc/systemd/system/multi-user.target.wants/crond.service → /usr/lib/systemd/system/crond.service.

Complete!

root@photon [ ~ ]# systemctl status cron
● crond.service - Command Scheduler
     Loaded: loaded (/usr/lib/systemd/system/crond.service; disabled; vendor preset: enabled)
     Active: inactive (dead)

When I use the systemctl start cron the command hangs, so I installed the rsyslog to use the view the logs with this command.

Continue reading
Standard
Linux, VMware

Monitoring Docker service with Zabbix in VMware Photon OS 4.0

Hello, guys in this short post I’ll show you how to monitor our docker services with Zabbix in VMware Photon OS 4.0

First, if you haven’t Install the agent install it following this post.

https://otheritblog.wordpress.com/2020/12/16/install-zabbix-agent-2-vmware-photon-os-4-0/

Then in the config file uncomment the Plugins.Docker.Endpoint=unix:///var/run/docker.sock, add the Zabbix user to the docker group and restart the service.

root@photon [ ~ ]# cat /etc/zabbix/zabbix_agent2.conf | grep Plugins.Docker.Endpoint
### Option: Plugins.Docker.Endpoint
Plugins.Docker.Endpoint=unix:///var/run/docker.sock
root@photon [ ~ ]# usermod -aG docker zabbix
root@photon [ ~ ]# systemctl restart zabbix-agent2.service
Standard
Linux, VMware

Install Zabbix Agent 2 VMware Photon OS 4.0

Hello, guys in this short post I’ll show you how to Install Zabbix Agent 2 in VMware Photon OS 4.0.

First verify our Photon OS release with this command.

root@photon [ ~ ]# cat /etc/*release*
DISTRIB_ID="VMware Photon OS"
DISTRIB_RELEASE="4.0"
DISTRIB_CODENAME=Photon
DISTRIB_DESCRIPTION="VMware Photon OS 4.0"
NAME="VMware Photon OS"
VERSION="4.0"
ID=photon
VERSION_ID=4.0
PRETTY_NAME="VMware Photon OS/Linux"
ANSI_COLOR="1;34"
HOME_URL="https://vmware.github.io/photon/"
BUG_REPORT_URL="https://github.com/vmware/photon/issues"
VMware Photon OS 4.0
PHOTON_BUILD_NUMBER=d98e681

Next Install wget.

Continue reading
Standard