Hi,
we have two Exchange servers, and we have 48 database (24 each one).
We use a script (launching it manually on the Exchange servers) to control that the database are balanced on the two servers.
Is possible to create a plungin that controls the correct balancing and, in case the two server are not balanced, launches the script?
Thanks in advance
balancing exchange DB
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: balancing exchange DB
It sounds like you already have a script that is kicked off. What does the script do? You could integrate it with a plugin so that it output valid error codes and service data for nagios, then execute that on the exchange server. Take a look at this page here:
https://www.nagios-plugins.org/doc/guidelines.html
https://www.nagios-plugins.org/doc/guidelines.html
Re: balancing exchange DB
hi slansing,
first of all I want to apologize for my awfull english, we use a script on the Exchange servers, this script control if we have 24 database on each one. if not we use another script to move the database to the servers they have to be.
we launch that script once a week manually... we are thinking if we could automatize it using nagios (nagios launch the script, if there are 24 database on each server the control is ok, if not it launch the script to balance (and move) database)
first of all I want to apologize for my awfull english, we use a script on the Exchange servers, this script control if we have 24 database on each one. if not we use another script to move the database to the servers they have to be.
we launch that script once a week manually... we are thinking if we could automatize it using nagios (nagios launch the script, if there are 24 database on each server the control is ok, if not it launch the script to balance (and move) database)
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: balancing exchange DB
This could definitely be done, although it might get a little tricky. Likely the best route would be to adapt your current script to be a nagios plugin, conforming to exit codes, return data, and performance data. Secondly, when you are modifying it, I would suggest limiting the intial plugin check to only check the database for balancing. Finally when it does go warning or critical, you can create an event handler that calls nrpe, which finally calls the original script to rebalance. This way all of your scripts can be run via nrpe or another remote agent, and do not need to be modified from powershell or vbs to work with linux.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: balancing exchange DB
sreinhardt wrote:This could definitely be done, although it might get a little tricky. Likely the best route would be to adapt your current script to be a nagios plugin, conforming to exit codes, return data, and performance data. Secondly, when you are modifying it, I would suggest limiting the intial plugin check to only check the database for balancing. Finally when it does go warning or critical, you can create an event handler that calls nrpe, which finally calls the original script to rebalance. This way all of your scripts can be run via nrpe or another remote agent, and do not need to be modified from powershell or vbs to work with linux.
Hi sreinhardt,
there is only one "little problem", no one of us is able to do that...
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: balancing exchange DB
Well, considering you are posting in core, I tend not to try and push people towards sales, but if you are looking for custom development you should speak with [email protected]. They can create a dialog between yourself and our developers who would be able to do this. However we do not really just create scripts for people, otherwise we would constantly be giving out free work.
As a side note that I did not think of prior to the other post, you might also post to plugin help or plugin development, and someone may be willing to help you.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.