Posts

Observium vs. Cacti v2

Recently, I have setup an observium server for our office. After about two weeks of operation, here's what I think of them- Observium Pros: Has thousands of templates. Auto discovers which templates are applicable for a host Comparatively better interface Cons: Comparatively more processor intensive. Does not work without DNS (/etc/hosts tuning is helpful) Adding users and controlling view can be tricky The bandwidth graph of cacti is better I could not find any "zoom" feature for the graphs Cacti Pros: Very good for bandwidth graphs. Very good for user portals and controlling user views. Easily customizable graph trees Cons: No auto discovery feature Adding new templates can be tricky, very tricky. Needs 64 bit counters for bandwidth graphs over 100 Mbps. Learnt it the hard way.

Sendmail: Bypass DNS and Forward Emails to Smart Host

Scenario: We need a dumb mail server that would forward all outgoing mails (originated in the server) to a relay host/smart host. We don't want our mail server to do any DNS queries (we leave the noble task for the smart host, after all, he's "smart"). Here's how it's done in sendmail- Create a new file in the / etc/mail directory vim /etc/mail/service.switch ####### start of file ######### hosts files aliases files ####### end of file ########### We add the "relay host" IP to sendmail.mc vim /etc/mail/sendmail.mc define(`SMART_HOST',`192.168.2.250')dnl ### obviously, replace the relay host address based on your requirements ### end ### m4 /etc/mail/senmdmail.mc > /etc/mail/sendmail.cf service sendmail restart NOTE : Make sure there is no dnl in the beginning of the line. The compiler will treat any starting with dnl as a comment. And it's done. Now our mail server will not do any DNS queries and forward all o...

Password Protecting Grub

Image
To protect grub using md5 encrypted password, we can use this simple technique- [root@zimbra ~]# grub-md5-crypt Password: Retype password: $1$zsPMx0$DkhqPFB1ouY/W7uhvCJZL1  This command generates a MD5 encrypted password that will be added to the file grub.conf . Here is my sample file- [root@zimbra ~]# vim /etc/grub.conf ##################################################################################### default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz password --md5 $1$zsPMx0$DkhqPFB1ouY/W7uhvCJZL1 hiddenmenu title Red Hat Enterprise Linux (2.6.32-220.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/mapper/vg_zimbra-lv_root rd_NO_LUKS rd_LVM_LV=vg_zimbra/lv_root LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_zimbra/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM initrd /initramfs-2.6.32-220.el6.x86_64.img And we are ready. The system can be rebooted safely, and w...

OTRS Tuning: Part 5 - Customers

Image
OTRS has its own database for managing customers. Yet another great feature. Adding new customer Whenever a ticket is created, a mail is automatically sent to the email address of the customer. Moreover, the customer has a portal through which he can raise new tickets, view open tickets as well as view history of closed tickets. The customer portal can be accessed using the link http://IP/otrs/customer.pl Customer Portal

OTRS Tuning: Part 4 - Managing Ticket States

Image
A wonderful feature about OTRS is that we can actually create different states for tickets as our requirements. The steps are really easy. Admin > States Overview: Ticket States

OTRS Tuning: Part 4 - Managing Responses

Image
We can set a couple of predefined responses that may be used while responding to tickets, so that we don't need to type the same thing over and over again. For example, I have created two responses - one for updating tickets and one for closing tickets. Overview: Response (Admin > Responses) New Response: Update New Response: Close Assign Response to Queue (Responses <-> Queues Assign Response to Queues

OTRS Tuning: Part 3 - Managing Salutations, Signatures and Queues

Image
OTRS supports custom Salutations and Signatures, that will be used with each ticket. Furthermore, OTRS also supports Queues to categorize tickets. For example, we can have separate queues for bandwidth problems, separate queues for routing problems. This way, all the tickets may sorted out based on nature of problem and different agents may be assigned to different queues so that the ticket is handled efficiently. Here's how we can manipulate them- Salutations Admin > Salutations Custom Salutation Signatures Custom Signature ( Admin > Signatures)  Queues New Queue (Admin > Queues) While adding the queue Make sure that the queue is assigned to the proper group Proper system email address Proper Salutation Proper Signature