Is there a way to add XP SP2 detection? I know it's in the agent string but don't know how to add it to awstats.
HTTP_USER_AGENT :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
The "SV1" indicates a system running XP SP2. SV1 stands for Security Version 1.
You can add XP SP2 in the operatings_systems.pm in the /lib subdir.
Ok.. I found the file, but confused as to what to put in the file to have it detect "; SV1" to determine xp sp2.
Below is the XP OS. Can somebody tell me how to tell make it detect SV1 and report xp sp2?
'windows[_+ ]xp','windows[_+ ]nt[_+ ]5.1',
'windows[_+ ]xp','winxp','windows[_+ ]nt[_+ ]5.1','winxp',
%OSHashLib = (
Given that your information is correct, then this one should work fine:
Go to your icon/os sub. Copy the winxp.png and name it winxpsp2.png
Insert the following lines in front of the respective lines for Win XP:
'windows[_+ ]xpsp2','windows[_+ ]nt[_+ ]5.1; SV1',
'windows[_+ ]xpsp2','winxpsp2','windows[_+ ]nt[_+ ]5.1; SV1','winxpsp2',
'winxpsp2','Windows XP SP2',
Rerun the stats.