Articles Comments

Computer Tips and Tricks | WordPress Technology Hints » Entries tagged with "nagios"

External ISP mail setup using a VPS and SendEmail for Nagios

External ISP mail setup using a VPS and SendEmail for Nagios

1) Download from http://caspian.dotconf.net/menu/Software/SendEmail. 2) Extract the file and copy the files sendEmail and sendEmail.pl into /usr/local/bin. 3) Amend the permissions so they are executable by the owner and the group: chmod +x /usr/local/bin/sendEmail Now the setup and customization of Nagios. 1) Edit /usr/local/nagios/etc/resource.cfg – add (4) new entries. $USER5$=your_isp_email_address $USER6$=your_isp_email_password $USER7$=your_isp_outgoing_mail_server $USER8$=your_send_from_email_address 2) Edit /usr/local/nagios/etc/objects/commands.cfg Change command_line for command_name notify-host-by-email: command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n" | /usr/local/bin/sendEmail -s $USER7$ -xu $USER5$ -xp $USER6$ -t … Read entire article »

Filed under: Computer Tips and Tricks, Technology Tips

Ubuntu 8.04 Nagios Install

Nagios server monitoring is one of the best – if not the best open source server, switch and router monitoring platforms I’ve used. Best of all, because it is open source, it is free. I’ve documented here the method I used to get Nagios 3. Introduction If you follow these instructions the plan is you’ll end up with: Nagios and the plugins will be installed underneath /usr/local/nagios Nagios will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.) The Nagios web interface will be accessible at http://localhost/nagios/ or at http://yourWANip/nagios/ Before you start You’ll need to have a command line editor – I recommend Putty for this. Its easier to be logged on as root but if you are not, use the sudo command before typing a command. I’ve put … Read entire article »

Filed under: Computer Tips and Tricks