Thinking since I was monitoring 4 msexchange stores. In order to add more I need to edit certain parameters in my exchangeserver.cfg file.
Not sure how difficult this will be, haven't vied the file to take a look yet.
I inherited this install most of the parameters I'm using are based on the prior configuration.
first,third,fourth appear in web browser.
Adding and removing msexchange Stores to Monitor
-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
Re: Adding and removing msexchange Stores to Monitor
Well, lets start by looking at the config. Post the contents of: exchangeserver.cfg in code wraps.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
Re: Adding and removing msexchange Stores to Monitor
Code: Select all
define host{
use windows-server
host_name mail-ahgserver
alias mail-ahgserver
address 10.1.0.11
hostgroups corporate-servers,exchange-servers
parents AH-Corporate
}
define service{
use generic-service
host_name mail-ahgserver
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l C -w 90 -c 90
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace
}
define service{
use generic-service
host_name mail-ahgserver
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l D -w 90 -c 95
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace
}
define service{
use generic-service
host_name mail-ahgserver
service_description F:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l F -w 90 -c 95
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace
}
define service{
use generic-service
host_name mail-ahgserver
service_description G:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l G -w 90 -c 95
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace
}
define service{
use generic-service
host_name mail-ahgserver
service_description First Storage Group
check_command check_nrpe!test_db!1
notification_interval 30
notification_options c,r
servicegroups maildb
}
define service{
use generic-service
host_name mail-ahgserver
service_description Third Storage Group
check_command check_nrpe!test_db!3
notification_interval 30
notification_options c,r
servicegroups maildb
}
define service{
use generic-service
host_name mail-ahgserver
service_description Fourth Storage Group
check_command check_nrpe!test_db!4
notification_interval 30
notification_options c,r
servicegroups maildb
}
define service{
use generic-service
host_name mail-ahgserver
service_description Fifth Storage Group
check_command check_nrpe!test_db!5
notification_interval 0
servicegroups maildb
}
Re: Adding and removing msexchange Stores to Monitor
If you are adding a similar host, you can define it in the exchangeserver.cfg:
Then, you can modify the service definitions by adding the new-server:
Check your configuration:
and restart nagios:
Is this what you are trying to achieve or I am missing the point?
Code: Select all
define host{
use windows-server
host_name new-server
alias whatever
address x.x.x.x
hostgroups corporate-servers,exchange-servers
parents AH-Corporate
}Code: Select all
define service{
use generic-service
host_name mail-ahgserver,new-server
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l C -w 90 -c 90
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace
}Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
service nagios restartBe sure to check out our Knowledgebase for helpful articles and solutions!
-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
Re: Adding and removing msexchange Stores to Monitor
No, I think I have to add additional stores dbs to be monitored, as define service and name the groups?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Adding and removing msexchange Stores to Monitor
It would be helpful if you could post the nsc.ini or nsclient.ini from the windows server. However your base config in nagios for the db checks look like:
Most likely we just need to change the check command to "check_command check_nrpe!test_db!6" or another number for whatever database you need to check. However I have no way to know what 1-5 currently represent in your systems.
Code: Select all
define service{
use generic-service
host_name mail-ahgserver
service_description Fifth Storage Group
check_command check_nrpe!test_db!5
notification_interval 0
servicegroups maildb
}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.