Enough talk and theory, let's get up and running: Getting ready
Create the Configuration XMLCopy the following into a file and save it as an xml file.<?xml version="1.0"?> <config> <hosts> <host name="USACLEAR01">USACLEAR01.EMEA.DOMAIN.COM</host> <host name="USACLEAR04">USACLEAR04.EMEA.DOMAIN.COM</host> </hosts> <sites> <site name="SITE01" clearcase="USACLEAR04" regions="RegionA,RegionB"> <host>USACLEAR01</host> <host>USACLEAR04</host> </site> </sites> <clearcase> <counter name="Number of vobs" scale="number">\clearcase(*)\NumberOfVobs</counter> <counter name="Number of views" scale="number">\clearcase(*)\NumberOfViews</counter> <!-- No region required --> <counter name="Number of stranded vobs" scale="number">\clearcase()\NumberOfStrandedVobs</counter> </clearcase> <performance> <!-- For inpiration could check out: http://www.windowsnetworking.com/articles_tutorials/key-performance-monitor-counters.html --> <general> <counter samples="1" interval="1" name="Memory Available" scale="Mega bytes">\Memory\Available MBytes</counter> <counter samples="10" interval="3" name="Processor time % Privileged Time" scale="Percentage">\Processor(_Total)\% Privileged Time</counter> <counter samples="10" interval="3" name="Processor time % User Time" scale="Percentage">\Processor(_Total)\% User Time</counter> </general> <specific> <host name="USACLEAR01"> <counter samples="1" interval="1" name="LogicalDisk(D:) % Free Space" scale="Percentage">\LogicalDisk(D:)\% Free Space</counter> <counter samples="3" interval="1" name="PhysicalDisk(0 C:) % Idle Time" scale="Percentage">\PhysicalDisk(0 C:)\% Idle Time</counter> <counter samples="3" interval="1" name="PhysicalDisk(1 D:) % Idle Time" scale="Percentage">\PhysicalDisk(1 D:)\% Idle Time</counter> </host> </specific> </performance> </config> The above defines 1 site (SITE01), which is made up from 2 hosts. In the hosts section, 2 servers are defined, the host name value is usable by the rest of the configuration file, to get the fully qualified domain name of those servers In the sites the server USACLEARP04 is set to answer the ClearCase specific counters, for the ClearCase regionss RegionA and RegionB Each server is queried for the counters in the general section and in the specific section USACLEARP01 is monitored for a couple of disk related counters It goes without saying (oh ! - I just did...) that you must replace the host names, and region names. There is a good chance the the general as well as specific counters will give you results - but there is a even bigger chance that you want to modify - at least later on. A Simple job
Below is an illustration of several metric targets and the values we chose. If you on Jenkins->Manage Jenkins->Configure Jenkins already have configured Jenkins email options you can enter your email adress and get notifcations, but jenkins can report it's result in several ways, that is just a matter of adding the proper plugins. Now Click Save, and build now ! As time passes we strongly encourage you to add all servers of your interest, as well as all the counters you find of interest. About jenkins slaves (benefit of making each CC server a slave to the monitoring jenkins instance |