LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-20-2010, 12:54 AM   #1
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Rep: Reputation: 16
cloning window server in nagios


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.
 
Old 09-20-2010, 09:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 09-20-2010, 10:56 AM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
You should add them into a group and configure with hostgroup_name directive in the service section which you want to monitor.
 
0 members found this post helpful.
Old 09-20-2010, 11:13 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by quanta View Post
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.
 
Old 09-21-2010, 01:02 AM   #5
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
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

Plz help. thnx in advance.
 
Old 09-21-2010, 01:17 AM   #6
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Remove the reference to windows.cfg in /usr/local/nagios/etc/nagios.cfg. You should verify the configuration file before restarting:
Code:
# nagios -v /usr/local/nagios/etc/nagios.cfg

Last edited by quanta; 09-21-2010 at 01:19 AM.
 
Old 09-21-2010, 01:31 AM   #7
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
run above command error

command not found
 
Old 09-21-2010, 01:37 AM   #8
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Did you install binary package or compile from source? What path did you install to?

Last edited by quanta; 09-21-2010 at 01:38 AM.
 
Old 09-21-2010, 01:39 AM   #9
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
it works. thnx a ton.
 
Old 09-21-2010, 01:39 AM   #10
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up

If you have nagios installed successfully in your system then that command should run
 
Old 09-21-2010, 01:39 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by rajiv.patil82 View Post
run above command error

command not found
Hi,

Put the full path to the nagios executable, followed by the -v and the path to the configuration file:
Code:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Kind regards,

Eric
 
Old 09-21-2010, 01:53 AM   #12
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by prayag_pjs View Post
If you have nagios installed successfully in your system then that command should run
No, if OP didn't append it to $PATH.
 
Old 09-21-2010, 02:00 AM   #13
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
thank you very much all of you. now my servers are being monitored under nagios.
 
Old 09-21-2010, 02:05 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

That's great! If you consider your problem/question solved then please mark it as such using the Thread Tools.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 02:25 AM
Nagios Server wasamzy Linux - Server 1 03-16-2010 04:55 PM
Cloning monitor screen/nVidia/X-server problem stoppage Linux - Newbie 4 02-02-2008 03:38 PM
Linux server for disk cloning? lukeprog Linux - General 2 06-02-2006 02:25 PM
? on cloning errata for RHN Satellite Server dmorgan Red Hat 1 04-08-2004 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration