Archive for July, 2008

check_nt Commands

Wednesday, July 30th, 2008

http://www.superk.org/index.php/Nagios_&_Windows

Performance Monitor:

Windows NT and better operating systems provided a tool for monitoring many aspects of the Windows operating system called Performance Monitor. Within Performance Monitor there is a wealth of monitoring functions available to track and graph. All of these monitoring functions are accessible through Nagios as well which makes Nagios a fantastic way of keeping track of all your Windows systems. The COUNTER variable in the check_nt command will let us connect to the Windows Performance Monitor and monitor a specific Performance Monitor function.

(more…)

Windows Server 2003 Baselining Linux Cacti

Wednesday, July 30th, 2008

Original Article HERE

When trying to diagnose problems with any system one of the first steps should be to looks at differences between the current running values and the baseline for that system. The windows performance monitor exposes many counters that are useful, and the output can be logged to various output formats like CSV, and even SQL databases.

(more…)

XP RDP Concurrent Connections

Wednesday, July 30th, 2008

Original from HERE

Copy of orginal post:

I mentioned before that Windows XP does not allow concurrent sessions for its Remote Desktop feature. What this means is that if a user is logged on at the local console, a remote user has to kick him off (and ironically, this can be done even without his permission) before starting work on the box. This is irritating and removes much of the productivity that Remote Desktop brings to Windows. Read on to learn how to remove that limitation in Windows XP SP2

(more…)

SNMP Stuff

Monday, July 28th, 2008
> Is there a MIB to get the ARP table of a router?  Should be one I would
> think but can't find it.

Yes, .iso.org.dod.internet.mgmt.mib-2.at.atTable.atEntry.atPhysAddress will
do what you want.

(more…)

Exim 4 CheatSheet

Monday, July 28th, 2008

Originally posted HERE

Message-IDs and spool files
The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: XXXXXX-YYYYYY-ZZ. Most commands related to managing the queue and logging use these message-ids.

There are three — count ‘em, THREE — files for each message in the spool directory. If you’re dealing with these files by hand, instead of using the appropriate exim commands as detailed below, make sure you get them all, and don’t leave Exim with remnants of messages in the queue. I used to mess directly with these files when I first started running Exim machines, but thanks to the utilities described below, I haven’t needed to do that in many months.

(more…)

Cacti and Debian

Tuesday, July 22nd, 2008

The patch can fix the issue

sudo pico /usr/share/cacti/site/include/config.php

replace what is under

/* Sanity Check on “Corrupt” PHP_SELF */

with

if ((!is_file($_SERVER["PHP_SELF"])) && (!is_file($config["base_path"] . ‘/’ . $_SERVER["PHP_SELF"]))) {
if (!is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["PHP_SELF"])) {
if (!((is_file($_SERVER["SCRIPT_FILENAME"])) && (substr_count($_SERVER["SCRIPT_FILENAME"], $_SERVER["PHP_SELF"])))) {
if (!((is_file($_SERVER["SCRIPT_FILENAME"])))) {
echo “\nInvalid PHP_SELF Path\n”;
exit;
}

T-SQL Scripts

Monday, July 14th, 2008

Sample T-SQL Scripts for Backup/Restore and Index and Statistics Maintenance

2003 Performance Counters

Wednesday, July 2nd, 2008

http://technet2.microsoft.com/windowsserver/en/library/62474a20-e0f9-4329-8d86-f5f67f6979a71033.mspx?mfr=true