Downloading and installing the Zabbix Agent From the Zabbix official site, go to Download Zabbix agents (in Japanese), specify macOS and the zabbix version, and download it
Open the pkg file you downloaded and install it
By the way, it is set up so that it runs automatically when MacOS starts
Copy # file location /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist # startup script /usr/local/sbin/zabbix_agentd -c /usr/local/etc/zabbix/zabbix_agentd.conf -f # log /var/log/zabbix/zabbix_agentd-out.log /var/log/zabbix/zabbix_agentd-err.log Configuration Change Hostname as appropriate, and change the Server field to the IP of the Zabbix Server
[Read More]
Be Careful with Linux on a PowerEdge with the S140
Getting stuck on the S140 software RAID while installing Linux
When I bought a PowerEdge R630 I did not actually need RAID, but an S140 came with it by default, so I figured I might as well build the server in a RAID configuration — and got stuck.
The server build plan Since there are 4 HDDs, I considered installing Debian Linux or VMware ESXi on RAID5
Boot failure from the rear USB port There is no CD/DVD drive included and no PXE boot environment either, so I created a boot disk on USB, plugged it into a rear USB port and powered the machine on, at which point it froze at “Initilize Firmware Interfaces” and did not go any further.
[Read More]
When WordPress Will Not Upload Images
When WordPress will not upload images, the following points are often raised
The destination for the images is not writable You are going over the image size limit set in php.ini An image compression plugin is involved There is simply not enough disk space CPU load has hit 100% Uploads stopped working from 2019? In particular, the symptom of an error occurring kept happening even though I had not changed php.ini or any plugin.
[Read More]
GCC Error Keeps Hugo from Starting on CentOS 7
hugo does not start because of a gcc error
When I installed the latest version of Hugo on CentOS7, it would no longer start because of the error below
./hugo version
./hugo: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./hugo) ./hugo: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21’ not found (required by ./hugo)
Checking the GCC version Copy # strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 It looks like the GCC version on CentOS is still old
[Read More]
Switching the Beautifulhugo Submodule Back to the master Branch
Notes on changing the branch of a git submodule
The beautifulhugo theme this site uses was pinned to a particular branch and was not being updated to the latest version, so these are my notes on switching it to master
There had been updates on the official site and yet the theme inside the submodule was not updating; I wondered why, and it turned out to be because it was on a specific branch. (I thought I had set it to master when I first installed it…?)
[Read More]
Guest Login Stops Working After a QNAP Firmware Update
It looks like a bug in Samba on QNAP
Environment where the problem happens Model: TS-269 Pro
Old firmware: 4.3.4.1029
New firmware: 4.3.4.2351
File sharing from Windows10 and sharing over Mac SMB could no longer connect as guest.
Guest login worked on the old firmware, but after the new firmware guest login stopped working
Checking the settings In Control Panel → Privilege settings, under “Edit Shared Folder Permission”, I confirmed that the files (folders) that should allow guest login have read/write checked for everyone In Control Panel → Network & File Services, under “Microsoft Networking”, I confirmed that “Enable file service for Microsoft networking” is checked I unchecked “Enable file service for Microsoft networking” and pressed the Apply button, then checked it again and pressed the Apply button (restarting the file sharing service) Even after all of these checks, guest login does not work
[Read More]
socket: too many open files When Starting Hugo on a Mac
Raising the macOS file descriptor limit so that hugo can start
When I tried to run a certain theme with Hugo on MacOS Sierra, the error below appeared and it would not start
Error: listen tcp 127.0.0.1:1313: socket: too many open files
Looking into it, it turned out that the ulimit on the Mac needs to be changed, and I solved it by referring to macOS Sierraでulimitを変更する方法 - Carpe Diem (in Japanese).
Changing the ulimit
# cat /Library/LaunchDaemons/limit.maxfiles.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxfiles</string>
<string>524288</string>
<string>524288</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
# cat /Library/LaunchDaemons/limit.maxproc.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxproc</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxproc</string>
<string>2048</string>
<string>2048</string>
</array>
<key>RunAtLoad</key>
<true />
<key>ServiceIPC</key>
<false />
</dict>
</plist># chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
# chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist
# chmod 644 /Library/LaunchDaemons/limit.maxfiles.plist
# chmod 644 /Library/LaunchDaemons/limit.maxproc.plistRestarting the Mac
Checking the change
$ ulimit -a
Maximum size of core files created (kB, -c) 0
Maximum size of a process’s data segment (kB, -d) unlimited
Maximum size of files created by the shell (kB, -f) unlimited
Maximum size that may be locked into memory (kB, -l) unlimited
Maximum resident set size (kB, -m) unlimited
Maximum number of open file descriptors (-n) 524288
Maximum stack size (kB, -s) 8192
Maximum amount of cpu time in seconds (seconds, -t) unlimited
Maximum number of processes available to a single user (-u) 2048
Maximum amount of virtual memory available to the shell (kB, -v) unlimitedWhat to Watch Out for When Updating MWeb to 3.3
Version 3.2.8 is the starting point
Notes on updating from MWEB 3.2.8 or earlier to 3.3.x MWEB is easy to use as a MarkDown editor on the Mac, but when you upgrade from a version older than 3.2.8 to 3.3 or later, a little bit of work is required.
If your version is older than 3.2.8, simply updating the app to the latest version will not work
On the official MWEB site there is a note about this, “MWeb version 3.2.8 and bellow update to version 3.3.1 notice - MWeb ”
[Read More]
Kitematic on Mac Fails to Pull Docker Images
Kitematic cannot pull Docker images
Kitematic on the Mac I use started erroring out when pulling Docker images and stopped working properly I suspect the symptom started after I upgraded Docker some time ago and bumped Kitematic’s version along with it.
Environment and symptoms Here I write out the environment I am running and the details of the problem
Environment Symptoms This error appears just as the image download from Docker Hub is about to finish.
[Read More]
ovftool Export Fails with vim.fault.InvalidState in Maintenance Mode
Maintenance mode is not required
On VMware ESXi, I tried to back up a guest OS inside the ESXi server to OVF from a client.
VMware OVF Toolを利用してESXi 6.7からVMをエクスポート - redj’s blog (in Japanese) I used that detailed article as a reference. (Thanks)
When I stopped the guest OS and tried the backup, an error occurred
Copy # ofvtool vi://[username]:[password]@[ESXi IP or FQDN]/[inventory name] [output OVF name].ovf Error: Fault cause: vim.fault.InvalidState
With backups on the older Vsphere you had to switch to maintenance mode, and the cause was that I had done exactly that.
[Read More]
Posts