Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 We are going to configure this as a server, without SNMP support, and with MySQL as a database: [root@srv-1 data]# cd .. [root@srv-1 create]# cd .. [root@srv-1 zabbix-1.1beta8]# ./configure –enable-server –with-mysql checking for a BSD-compatible install… /usr/bin/install -c […]
Monitoring Systems With Zabbix – Initial Configuration – Part 2
Monitoring Systems With Zabbix – Initial Configuration – Part 3
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 Start the server: [root@srv-1 zabbix-1.1beta8]# cd /usr/local/bin [root@srv-1 bin]# ./zabbix_server [root@srv-1 bin]# cat /tmp/zabbix_server.log 027362:20060418:104022 Starting zabbix_server. ZABBIX 1.1beta8. 027364:20060418:104022 server #1 started [Alerter] 027366:20060418:104022 server #2 started [Timer] 027368:20060418:104022 server #3 started [ICMP pinger] 027373:20060418:104022 server #4 […]
Monitoring Systems With Zabbix – Initial Configuration – Part 4
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 Run make [root@srv-1 zabbix-1.1beta8]# make Making all in src make[1]: Entering directory `/usr/local/src/zabbix-1.1beta8/src’ Making all in libs make[2]: Entering directory `/usr/local/src/zabbix-1.1beta8/src/libs’ Making all in zbxcommon . . . gcc -g -O2 -o zabbix_sender zabbix_sender.o ../libs/zbxcommon/libzbxcommon.a -lresolv -lnsl make[3]: […]
Monitoring Systems With Zabbix – Initial Configuration – Part 5
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 The agent files also end up in /usr/local/bin by default: [root@srv-1 zabbix-1.1beta8]# cd /usr/local/bin/ [root@srv-1 bin]# ls zab* zabbix_agent zabbix_agentd zabbix_get zabbix_sender zabbix_server [root@srv-1 bin]# ls -l zab* -rwxr-xr-x 1 root root 179347 Apr 18 10:56 zabbix_agent -rwxr-xr-x […]
Monitoring Systems With Zabbix – Initial Configuration – Part 6
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 When first logging on to Zabbix, the login name is admin, and the password is blank: Change the admin password as soon as you can: Use configuration/hosts to add a host. Make sure you link with the correct […]
Monitoring HTTP Connections
Here is a perl script that determines the number of HTTP connections on a server, and displays the rusults on one of the seven segment displays on the NetAdminWorld console: open (HC, “ssh -p <port> root\@example.com ‘netstat | grep http | wc -l ‘|”); while (<HC>){ $count=$_/6 } use IO::Socket; my $sock = new IO::Socket::INET […]
Monitoring and Automatic Recovery of Services with Monit
Monit is a small, easy to configure monitoring system for *nix systems that will attempt to restart services that have failed. Grab the tarball, extract, configure, make, and make install: [usr-1@srv-1 ~]$ tar -xzf mon*4.7*.gz [usr-1@srv-1 ~]$ cd mon*7 [usr-1@srv-1 monit-4.7]$ ./configure checking for gcc… gcc checking for C compiler default output file name… a.out […]
Logging Performance Monitor Counters to SQL Server – Part 1
There are 4 parts to this article: Part 1 – Part 2 – Part 3 – Part 4 On Windows Server 2003, Perfmon counters can be logged directly to a SQL database. Let’s do that. Create a database on your SQL Server. We called the database pmon: We’ll create a device for the database with […]
Logging Performance Monitor Counters to SQL Server – Part 2
There are 4 parts to this article: Part 1 – Part 2 – Part 3 – Part 4 Use Windows NT authentication: Do not dynamically determine the port. Uncheck and make sure port 1433 is used: Change the default database to pmon: The rest of the defaults are OK: Click finish, and the summary screen […]
Logging Performance Monitor Counters to SQL Server – Part 3
There are 4 parts to this article: Part 1 – Part 2 – Part 3 – Part 4 Click Test Data Source, and if all is happy, a window showing the results of the ODBC connectivity test will pop up: Another summary of the ODBC connection: Let’s use our perfmon database. In performance monitor, create […]
Logging Performance Monitor Counters to SQL Server – Part 4
There are 4 parts to this article: Part 1 – Part 2 – Part 3 – Part 4 After you close out the settings, the counter log should be started. If not, then start it: Add the counters from the database by clicking on the log icon from System Monitor and selecting the database via […]
Lua Monitoring Script
Here is a Lua script we put together that measures the latency of a web host, the time to resolve the host, and the time to retrieve a page: — time to resolve host, time to ping host, time to get host/page print (“\”page name\”,\”host latency ms\”,\”dns resolve ms\”,\”page receive ms\””) — fromCSV from http://www.lua.org/pil/20.4.html […]
Logging With BIND 9
We talked in this article about setting the TTLs for DNS records in BIND for the purposes of moving a website, or, more specifically, changing the IP address of an authoritative DNS server. In this article, we will show you how to turn up the logging and output the results to a file. Again, this […]
Restricting Recursive Lookups with BIND 8/9
When you allow recursive lookups, you open yourself up to various security risks and performance issues, so you should only allow recursion when needed. Recursive lookups are lookups for domains you are not authoritative for. That is, if you are authoritative for mycompany.com, and you don’t allow recursion, then if somebody queries your server for […]
Example Domain for Documentation
If you need to put a domain name in documentation, example.net, example.com, and example.org are reserved for this purpose as defined in this RFC. This will prevent an inadvertently run script from causing trouble, as well as avoiding an association with a seemingly arbitrary host.
Replace Aging BIND on Virtual Dedicated Host – Part 1 – Compile BIND 9.5.0-P2
>1< | 2 | 3 We were checking out the various servers that we administer and noticed that one of our hosts is not up to the latest version of BIND. Yum update wasn’t giving us joy, so we grabbed the latest version of BIND: # wget http://ftp.isc.org/isc/bind9/9.5.0-P2/bind-9.5.0-P2.tar.gz –07:10:17– http://ftp.isc.org/isc/bind9/9.5.0-P2/bind-9.5.0-P2.tar.gz Resolving ftp.isc.org… 204.152.184.110, 2001:4f8:0:2::18 Connecting […]
Replace Aging BIND on Virtual Dedicated Host – Part 2 – Rip Out Old RPMs
1 | >2< | 3 We are ripping out the old RPMs. Let’s figure out what RPMs they are: # rpm -qa | grep bind bind-9.3.4-8.P1.fc6 bind-libs-9.3.4-8.P1.fc6 Let’s start removing them: # rpm -e bind-libs-9.3.4-8.P1.fc6 error: Failed dependencies: libbind9.so.0 is needed by (installed) bind-9.3.4-8.P1.fc6.i386 libdns.so.22 is needed by (installed) bind-9.3.4-8.P1.fc6.i386 libisc.so.11 is needed by (installed) […]
Replace Aging BIND on Virtual Dedicated Host – Part 3 – Modify SysV Init Scripts and PID Home
1 | 2 | >3< We need a directory for the PID, and put it in /var/run/named: # mkdir /var/run/named # ls -ld /var/run/named drwxr-xr-x 2 root root 4096 Aug 3 07:58 /var/run/named # chown named /var/run/named # chgrp named /var/run/named # ls -ld /var/run/named drwxr-xr-x 2 named named 4096 Aug 3 07:58 /var/run/named # […]
Verifying and Setting Recursion with DiG and BIND
There is another flurry of interest in DNS cache poisoning. The first thing that you should do is turn off recursion if you don’t need it. One way to determine this is with DiG: $ dig -v DiG 9.5.0-P2 $ Verizon operates a well known server that does recursive lookups: $ dig @4.2.2.3 example.com ; […]
Troubleshooting RAS with Device and PPP logs
Two files can be used to troubleshoot RAS problems: device.log and ppp.log. These files need to be enabled in the registry. For device.log, set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters\Logging to 1. (default is 0) This will show you the communication between the server and the modem. For ppp.log, set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\PPP\Logging to 1. (default is 0) This will help you […]

