Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So the servers you want to monitor are in a remote location and only accessible using SSH. But your GroundWork server is at your location, correct? Since you posted that you have GroundWork installed I assume it is.
Well, my friend, that's no problem at all. You can monitor almost anything with GroundWork using the included 'check_by_ssh' commands, for diskspace, memory, load, log files, lots and lots more.
In my setup I monitor our AIX servers using SSH also, so it's no problem at all.
You're welcome. Also, GroundWork Open Source has a pretty good community also. Might be worth saving it in your favorites. Here's the answer if you ever loose your password completely and how to reset it in the integrated MySQL database: http://www.groundworkopensource.com/...php?f=3&t=1549.
is it possible to get the mails from groundwork..i am not able to get the options...
means on dialy basis it monitors the server and send the mails if it goes over the threshold..
Of course it's possible to get mails from the monitoring server, that's the whole meaning of monitoring. What's the use of an automated monitoring system when it doesn't communicate with you? The setup I have here mails all sysadmins (3) whenever there's a warning or critical event.
The way I set it up bypasses a lot of escalation trees and functions since they are not necessary for our setup.
When logged in, go to Configuration and click on Commands in the menu. Under the Modify link you'll find two commands, host-notify-by-email and service-notify-by-email. Edit those two commands to include the email address you want to send notifications to. My service-notify-by-email shows this:
After that Nagios will send out the mails on the localhost, so you also have to configure a MTA like postfix to relay your mail to your mail server. Do you have a mail server running yourself or do you use a public mail service like GMail, Yahoo, HotMail, ...?
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: -\n\nService: service_desc\nHost: Linux Server #1\nAddress: 127.0.0.1\nState: UP\n\nDate/Time: 2009-05-18 22:57:23\n\nAdditional Info:\n\n-" | /usr/sbin/sendmail -s "** - alert - Linux Server #1/service_desc is UP **" abhijeetdutta89@gmail.com
WARNING: RunAsUser for MSP ignored, check group ids (egid=500, want=51)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
Command returned exit status 78
Secondly let me know how to add remote servers in ground work..
All processes from Groundwork are run as user nagios. You'll have to give that user the appropriate rights to be able to mail. What mail agent are you using? Check if the nagios user has a mailbox created and has the appropriate rights to it.
If you want to add a host in GroundWork, go to the menu Configuration and click on Hosts in the menu bar. There you can create hostgroups, for example Windows Servers, Linux Servers, etc... and create hosts and make them member of a group. The screens are quite self explanatory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.