Configuring Nagios to check a HTTP host
Nagios is an elaborate piece of software to monitor hosts and services. I will explain a bit how you can configure nagios to monitor an HTTP service. I’m assuming your nagios setup already has the...
View ArticleConfiguring nagios checks over SSH
I had to do a lot of fiddling before I got nagios over ssh working. I used this article as source, mostly, even though I did it differently. First add some commands to commands.cfg: define command{...
View ArticleChecking 3ware raid controllers over ssh with nagios
First check this to see how you enable a host to be checked with nagios over SSH. Create a command in /etc/nagios3/commands.cfg: # This command needs this in /etc/sudoers on the target: # nagios ALL =...
View ArticleAllowing apache to set Nagios cmd file
On debian, to prevent: Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’! Do: /etc/init.d/nagios3 stop dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw...
View ArticleUseful extra Nagios commands
Here are some useful extra nagios commands I often use: define command{ command_name notify-host-by-sms command_line /usr/local/sbin/send-sms.sh -n $CONTACTPAGER$ -m "$HOSTNAME$: $HOSTSTATE$" }...
View ArticleBetter nagios SMS and E-mail messages
Just for my references. I made changes to it before, but I now added the comments to them (for custom notifications and acknowledgements): define command{ command_name notify-host-by-email command_line...
View Article