Linux
Installing SNMP on CentOS
Once again I am documenting this here for my own purposes. I tend to find little caveats like this but loose them by the next time I need them. So I’m documenting how to install SNMP on a CentOS box. So far I’ve tried this on several physical and will be trying it on some vmware and xen virtual boxes next. After do you this you need to start the service ans set it to load at root.
yum install net-snmp
yum install net-snmp-utils
snmpconf -i -g basic_setup
Converting MySQL to SQLite
I have begun playing around with SQLite and needed a way to convert a MySQL database into a SQLite database. After trying several different methods the one that I ended up going with was the script documented in this article.
Documenting it here so I can find it later myself.
Disabling iptables Console Messages
I’ve been searching for a solution to this and finally found one, so I’m posting it here just so I won’t have to search for it when I forget it again.
I initially thought the messages were coming from syslog-ng but it turned out that the messages kept coming even with syslog-ng turned off.
As it turns out, the kernel was printing those messages directly to the console. Fortunately, it’s possible to set the minimal level a message must have before it is printed to the console.
# dmesg -n 4
After executing this command, only messages having level “warning” (4) or higher will be printed. All message levels are still logged.
Search
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jul | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||