FreeBSD

Getting snmpwalk to talk to snmpd on FreeBSD

NOTE: If you are looking to configure net-mgmt/net-snmp for the first time, the latest article is Configuration of net-mgmt/net-snmp on FreeBSD. Contrary to all the examples I found, it’s not easy to get snmpwalk to communicate with snmpd. I am using the net-mgmt/net-snmp port with the default configuration options. It was installed with: pkg install net-mgmt/net-snmp This is the minimal configuration file, which should be placed at /usr/local/etc/snmp/snmpd.conf: rocommunity public When starting snmpd […]

Getting snmpwalk to talk to snmpd on FreeBSD Read More »

rndc: neither /usr/local/etc/rndc.conf nor /usr/local/etc/rndc.key was found

In this post, I’m using bind98-9.8.8 from ports on FreeBSD 9.3, in case that helps you. Today, I was adjusting the pgcon.org domain as part of the move from the old server to the new server. This move would also see the website updated to PGCon 2015 and the use of Ansible for configuring that new server. Reloading named When I restarted named, this error appeared: $ sudo service named reload rndc: neither

rndc: neither /usr/local/etc/rndc.conf nor /usr/local/etc/rndc.key was found Read More »

gelt

For future reference. This server formed the backbone of just about everything I did. It hosted about 13 domains. Sadly, it was i386 and would not do for ZFS. Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.3-RELEASE-p2 #0: Mon Sep 15 16:23:12

gelt Read More »

When ssh and ansible play poorly together

Last night, this worked fine. This morning, it fails: # ansible-playbook jail-mailjail.yml PLAY [mailjails] ************************************************************** GATHERING FACTS *************************************************************** failed: [mailjail.example.org] => {“failed”: true, “parsed”: false} invalid output was: Sorry, try again. Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts TASK: [pkg | install pkg] ***************************************************** FATAL: no hosts matched or all hosts have already failed — aborting PLAY RECAP ******************************************************************** to retry, use: –limit @/root/jail-mailjail.retry mailjail.example.org : ok=0 changed=0 unreachable=0

When ssh and ansible play poorly together Read More »

Cunning plan for upgrading jails

After a lengthy Twitter discussion this afternoon, and a post to the forums, I decided to alter my ezjail basejail. The issue: when you update the basejail, /etc/rc.d and /etc/periodic do not get updated. This is by design. I wanted those directories to get updated. So I have changed the basejail. I will outline first, and go into more detail after I have changed all the jails On the jail host: NOTE: I

Cunning plan for upgrading jails Read More »

Are FreeBSD jails being shutdown properly?

This was done on FreeBSD 9.2-RELEASE-p10. After my boss told me about losing qmail logs from a jail some time ago when a server was shutdown, I started looking at some tests to ensure that jails are shutdown properly. I am beginning to suspect they are not. Consider this test. I added this to /usr/local/etc/rc.d/nullmailer in the jail named ‘testing’: echo $(date) $0 $1 >> /var/log/shutdown.log And then did this on the jail

Are FreeBSD jails being shutdown properly? Read More »

Want 8.3 in a poudriere jail? Nope.

I tried this today, creating an 8.3-RELEASE jail for poudriere: $ sudo poudriere jail -c -v 8.3-RELEASE -j releng_8_3 ====>> Creating releng_8_3 fs… done ====>> Fetching sets for FreeBSD 8.3-RELEASE amd64 fetch: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/8.3-RELEASE/base/CHECKSUM.SHA256: File unavailable (e.g., file not found, no access) fetch: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/8.3-RELEASE/base/CHECKSUM.SHA256: File unavailable (e.g., file not found, no access) ====>> Error: Failed to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/8.3-RELEASE/base/CHECKSUM.SHA256 ====>> Error while creating jail, cleaning up. ====>> Removing releng_8_3 jail… done It failed. But

Want 8.3 in a poudriere jail? Nope. Read More »

Running multiple concurrent poudriere builds

I’m running multiple concurrent poudriere builds on slocum. I see no problems doing this. [dan@slocum:~] $ uptime 9:51PM up 1 day, 6:37, 8 users, load averages: 30.38, 22.58, 11.87 [dan@slocum:~] $ ps auwx | grep sudo root 8877 0.0 0.0 48804 2616 1 I+ 9:45PM 0:00.01 sudo /usr/local/bin/poudriere bulk -j 92amd64 -f /usr/local/etc/poudriere.d/buildlists/knew -z knew root 61003 0.0 0.0 48804 2620 2 I+ 9:46PM 0:00.01 sudo /usr/local/bin/poudriere bulk -j 92amd64 -f /usr/local/etc/poudriere.d/buildlists/slocum -z

Running multiple concurrent poudriere builds Read More »

FreeBSD custom port patches when using poudriere

I have a custom patch for Nagios. I use poudriere for building my FreeBSD ports. EDIT: 2023-03-25 I have change the local for my patch files using a hook. See poudriere hooks – I am no longer using /usr/ports/distfiles/local-patches>; instead, I’m using /usr/local/etc/poudriere.d/local-patches. How can I combine the two? I asked that question on the FreeBSD Ports Mailing list. The answer came via IRC, from bsd-x. He introduced me to the concept of

FreeBSD custom port patches when using poudriere Read More »

Scroll to Top