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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
Webmin ------ www.webmin.com wget http://unc.dl.sourceforge.net/sourceforge/webadmin/webmin-1.110-1.noarch.rpm rpm -i webmin-1.110-1.noarch.rpm Nmap ---- http://www.nmap.org cd /root/archive wget http://download.insecure.org/nmap/dist/nmap-3.48.tar.bz2 bunzip2 nmap-3.48.tar.bz2 tar -xvf nmap-3.48.tar ./configure make make install Net SNMP -------- http://net-snmp.sourceforge.net/ cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.0.9.tar.gz tar -xvzf net-snmp-5.0.9.tar.gz cd net-snmp-5.0.9 ./configure make umask 022 make install ZLib ---- http://www.gzip.org/zlib/ cd /root/archive wget http://www.libpng.org/pub/png/src/zlib-1.1.4.tar.gz tar -xvzf zlib-1.1.4.tar.gz cd zlib-1.1.4 ./configure make make test make install cd .. mv zlib-1.1.4 zlib LibPNG ------ http://www.libpng.org/pub/png/ cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/png-mng/libpng-1.2.5.tar.gz tar -xvzf libpng-1.2.5.tar.gz mv libpng-1.2.5 libpng cd libpng cp scripts/makefile.gcmmx ./Makefile make test make install make test-installed FreeType -------- http://www.freetype.org/ cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.5.tar.gz tar -xvzf freetype-2.1.5.tar.gz cd freetype-2.1.5 ./configure make make install JPeg ---- http://www.ijg.org/ cd /root/archive wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz tar -xvzf jpegsrc.v6b.tar.gz cd jpeg-6b ./configure make make test make install make install-lib GD Graphics Library ------------------- http://www.boutell.com/gd/ cd /root/archive wget http://www.boutell.com/gd/http/gd-2.0.15.tar.gz tar -xvzf gd-2.0.15.tar.gz cd gd-2.0.15 ./configure make install Edit /etc/ld.so.conf and add a line: /usr/local/lib Save and then run: ldconfig FPing ----- http://www.fping.com/ cd /root/archive wget http://www.fping.com/download/fping-2.4b2_to-ipv6.tar.gz tar -xvzf fping-2.4b2_to-ipv6.tar.gz cd fping-2.4b2_to-ipv6 ./configure make make install Net::SMTP --------- http://theoryx5.uwinnipeg.ca/CPAN/data/Net-SNMP/README.html cd /root/archive perl -MCPAN -e "install Net::SNMP" answer yes when prompted to install prerequistes Nagios ------ http://www.nagios.org cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/nagios/nagios-1.1.tar.gz wget http://unc.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.3.1.tar.gz tar -xvzf nagios-1.1.tar.gz cd nagios-1.1 ./configure --prefix=/usr/local/nagios \ --with-cgiurl=/nms/cgi-bin \ --with-htmurl=/nms \ --with-nagios-user=nagios \ --with-nagios-grp=nagios \ --with-mysql-comments \ --with-mysql-downtime \ --with-mysql-retention \ --with-mysql-status \ --with-mysql-inc=/usr/include/mysql \ --with-mysql-lib=/usr/lib/mysql Now edit base/Makefile and add "-lmysqlclient -lz" in front of the "-o" option on the compile line for nagios.c. Edit cgi/Makefile and add "-lmysqlclient -lz" in front of the "-o" option on the compile line for *.c make all useradd nagios make install make install-init make install-commandmode make install-config cd /root/archive tar -xvzf nagios-plugins-1.3.1.tar.gz cd nagios-plugins-1.3.1 ./configure --prefix=/usr/local/nagios \ --with-nagios-user=nagios \ --with-nagios-group=nagios \ --with-cgiurl=/nms/cgi-bin make all make install edit /etc/httpd/conf/httpd.conf and add the following lines to the bottom of the file: ScriptAlias /nms/cgi-bin/ /usr/local/nagios/sbin/ <Directory "/usr/local/nagios/sbin/"> AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all </Directory> Alias /nms/ /usr/local/nagios/share/ <Directory "/usr/local/nagios/share"> Options None AllowOverride AuthConfig Order allow,deny Allow from all </Directory> service httpd restart create a .htaccess file in /usr/local/nagios/sbin with the following: AuthName "NMS Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user create a similar file in /usr/local/nagios/share htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin Setup the config file.... service nagios start Nagios-statd ------------ http://www.twoevils.org/html/files.php cd /root/archive wget http://www.twoevils.org/files/netsaint_statd/nagios-statd-3.08.tar.gz tar -xvzf nagios-statd-3.08.tar.gz cd nagios-statd-3.08 RRDTool ------- http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ cd /root/archive wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.45.tar.gz tar -xvzf rrdtool-1.0.45.tar.gz cd rrdtool-1.0.45 sh configure make make install cd /usr/local ln -s rrdtool-1.0.45/ rrdtool APAN ---- http://apan.sourceforge.net/ cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/apan/apan-0.2.1.tar.gz cp apan-0.2.1.tar.gz /usr/local/nagios/ cd /usr/local/nagios tar -xvzf apan-0.2.1.tar.gz rm apan-0.2.1.tar.gz cd apan chmod og+x plugs/*.sh cp *.cgi ../sbin/ chmod go+x ../sbin/*.cgi cp graph.png ../share/images/logos/ cp libexec/* ../libexec/ edit /usr/local/nagios/etc/checkcommands.cfg and add: # apan define command { command_name apan command_line /usr/local/nagios/apan/apan.sh $ARG1$ $HOSTNAME$ "$SERVICEDESC$" $TIMET$ $ARG2$ $ARG3$ } edit /usr/local/nagios/etc/services.cfg and add: define service { host_name nms.jaguartech.com service_description Disk-usage check_command apan!disk!150!100 use generic-service normal_check_interval 5 } edit apan.cfg and add: nms.jaguartech.com;Disk-usage;/usr/local/nagios/rrd/nms.jaguartech.com_Disk-usage.rrd;c|d;c-used:AREA c-free:STACK d-used:AREA d-free:STACK;Disk usage;Bytes;-1 1 -b 1024 mkdir ../rrd /usr/local/rrdtool/bin/rrdtool create \ /usr/local/nagios/rrd/nms.jaguartech.com_Disk-usage.rrd \ -s 60 \ DS:c-used:GAUGE:900:0:U \ DS:c-free:GAUGE:900:0:U \ DS:d-used:GAUGE:900:0:U \ DS:d-free:GAUGE:900:0:U \ RRA:AVERAGE:0.5:1:50400 \ RRA:AVERAGE:0.5:60:43800 chown nagios.nagios ../rrd/nms.jaguartech.com_Disk-usage.rr edit /usr/local/nagios/etc/cgi.cfg and add: xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg to the bottom of the file. create a new file hostextinfo.cfg and add: define serviceextinfo{ host_name nms.jaguartech.com service_description Disk-usage notes_url /nms/cgi-bin/apan.cgi?host=nms.jaguartech.com&service=Disk-usage icon_image graph.png icon_image_alt View graphs } /usr/local/rrdtool/bin/rrdtool create \ /usr/local/nagios/rrd/www.jaguartech.com_Ping.rrd \ -s 60 \ DS:ping:GAUGE:300:0:U \ RRA:AVERAGE:0.5:1:50400 \ RRA:AVERAGE:0.5:60:43800 \ /usr/local/rrdtool/bin/rrdtool create \ /usr/local/nagios/rrd/router1.barrie.org_Ping.rrd \ -s 60 \ DS:ping:GAUGE:300:0:U \ RRA:AVERAGE:0.5:1:50400 \ RRA:AVERAGE:0.5:60:43800 \ /usr/local/rrdtool/bin/rrdtool create \ /usr/local/nagios/rrd/router1.barrie.org_Net-usage.rrd \ -s 60 \ DS:IN:COUNTER:300:0:U \ DS:OUT:COUNTER:300:0:U \ RRA:AVERAGE:0.5:1:50400 \ RRA:AVERAGE:0.5:60:43800 Nagmin ------ http://nagmin.sourceforge.net cd /root/archive wget http://unc.dl.sourceforge.net/sourceforge/nagmin/nagmin-2.0.3.tar.gz cp nagmin-2.0.3.tar.gz /usr/local cd /usr/local tar -xvzf nagmin-2.0.3.tar.gz ln -s /usr/local/nagmin-2.0.3 nagmin cd nagmin login to webmin goto Servers -> MySQL -> User Permissions -> Create new user create a the user "nagmin" with all permissions run /usr/local/nagmin/setup and answer the prompts login to webmin goto Webmin -> Webmin Configuration -> Webmin Modules install webmin modules from local file at: /usr/local/nagmin/nagmin-2.0.3.wbm NRPE Install ------------ cd /root wget http://unc.dl.sourceforge.net/sourceforge/nagios/nrpe-1.9.tar.gz tar -xvzf nrpe-1.9.tar.gz cd nrpe-1.9 ./configure make all cp src/nrpe /usr/local/sbin/ cp nrpe.cfg /etc edit /etc/services and add: nrpe 5666/tcp # NRPE |