October 2020
« Apr    

Nagios : Monitoring MySQL runtime variables

Here I have a requirement of monitoring say “Skip_Counter” which represent no. of sql queries that containing errors while executing binary logs at the slave side.

This MySQL slave uses slave-skip-errors=all options in my.cnf file. Enabling this option cause data inconsistency unless you are aware about what you are dealing with. I did this […]

Bash : Sending email using SMTP authentication

I’m having a need to sending email alerts using Google SMTP which may help to notify faster and mails were not go to spam box ( Remember 250 smtp relay limit on Google account). Also this is the best solution if you want to send a mail safely to other domain rather than using the […]

Nagios with SMTP outgoing authentications

My requirement is that few of my critical notification mails are not delivered to my gamil and yahoo id. After further checking it has been found that those mails are treated as spam. I need all my nagios alert mails should free from spam filtration.

So I decided to use trusted SMTP server to use […]

Nagios- Getting Host down alerts

I have said to setup nagios for few servers located on the same Vlan. But there servers are highly protected by the network which is all the ICMP request packets are dropped. This cause me to get a nagios alert that ” Host is down” once Nagios monitoring host is configured.

The best way to […]

Installing Nagios on WHM/Cpanel servers

How do I install nagios on WHM/Cpanel loaded with Centos ?

I spent about 5 hours to find a solution for viewing nagios web interface since cpanel is using SuPhp bind with Apache. I’ve done the nagios installation so quickly but cpanel apache config. didn’t allow to include “conf.d” folders in “include” list. obviously this […]

Nagios – Custom command for checking the status of Port on the same server

Here I am checking the status of mysql running on the nagios Monitoring host

Go to nagios installation directory on nagios Monitoring host.

1. #

cd /usr/local/nagios/etc/objects/

2. Add the following line to ” command.cfg and save

 # vi commands.cfg

define command{ command_name check_tcp_mysql command_line /usr/local/nagios/libexec/check_tcp -H localhost -p 3306 -w 100 -c 150 }