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.
Hi All,
I have installed nagios successfully, also i have added one windows server for monitoring.now i want to add another windows server with the same default services is there any option in nagios which can clone existing window server with new one. so i dont have to do all steps again. plz help. thnx in Advance.
What I typically do on the Nagios master is simply copy the entries for the first host within the various config files (hosts.cfg, services.cfg) then change the names and IPs in the copied section to those for the new host. It's fairly rapid.
Of course it depends on how you're monitoring your Windows servers. Are you using NSClient? NSClient++ (nrpe mode, nsclient mode nsca mode)?, SMTP? Somthing else? For those you'll likely have to install and/or configure the appropriate tool on the new Windows machine itself.
You should add them into a group and configure with hostgroup_name directive in the service section which you want to monitor.
That assumes you're monitoring exactly the same things on all hosts. What if one has an E drive but others don't? F drive? Also if you are running different services that you want to monitor (e.g. MS Cluster on two servers but not others, applications (services or executables) that are on one server but not others which may have completely different applications. Here we monitor quite a bit so hostgroup monitoring except for certain things (memory, C drive, CPU, ping) isn't really a good option. Also over time I've found there will be odd systems that do things just a tad differently so that even some of those things aren't good at hostgroup level (for example we have Sharepoint cluster in one environment where the cluster puts the IP on BOTH nodes at the same time so a ping to the IP results in "DUP" records on the output. On those I had to remove ping and create a different check for a port that would be separate on the two hosts to determine the node status. On all the other clusters this wasn't an issue.
bymistakly i have deleted /usr/local/nagios/etc/objects/windows.cfg file. after that reinstalled nagios. but now not able to start nagios service. following error i have got.
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.