Logo
Blog2023-09-28T15:24:41+05:30
1110, 2008

Mount /tmp

By |October 11, 2008|Categories: General discussions|0 Comments

umount /tmp umount /var/tmp dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=512000 mkfs.ext3 /usr/tmpDSK press 'y' to continue mount -o loop,rw,noexec,nosuid [...]

1110, 2008

Script : Blackhole

By |October 11, 2008|Categories: Scripts|0 Comments

#! /bin/bash grep -rl ':blackhole:' /etc/valiases/ >> blackhole_files for i in `cat blackhole_files` do grep -v ':blackhole:' $i [...]

1110, 2008

Fantastico RV

By |October 11, 2008|Categories: Cpanel, Third party softwares|0 Comments

cd /usr/local/cpanel/whostmgr/docroot/cgi wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz tar -xzpf fantastico_whm_admin.tgz rm -rf fantastico_whm_admin.tgz mkdir /root/rvadmin; cd /root/rvadmin; wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto. tar.bz2; [...]

809, 2008

To find ddos attack

By |September 8, 2008|Categories: Scripts|0 Comments

netstat -an |grep 80 netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 netstat -plan|grep :25|awk [...]

409, 2008

Nagios swap space

By |September 4, 2008|Categories: Nagios|0 Comments

Goto Nagios server cd /usr/local/nagios/libexec wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp    chmod +x check_swp You need to do this for each [...]

409, 2008

Nagios ssl

By |September 4, 2008|Categories: Nagios|0 Comments

adding service ssl to nagios /usr/local/nagios/etc   file checkcommands.cfg # 'check_ssl' command definition define command{        [...]

409, 2008

Nagios proc

By |September 4, 2008|Categories: Nagios|0 Comments

Configure number of processes in Nagios : on the server to be monitored,   vi /etc/nrpe.conf modify the [...]

409, 2008

Nagios – nrpe.conf

By |September 4, 2008|Categories: Nagios|0 Comments

root@westernbbqassociation [~]# vi /etc/nrpe.conf command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c [...]

409, 2008

Nagios password

By |September 4, 2008|Categories: Nagios|0 Comments

password given in /usr/local/nagios/etc/htpasswd.users   url is http://hostname/cgi-bin/monitor/status.cgi   Given entries in contactgroups.cfg and contacts.cfg files (refer doreo [...]

Go to Top