Nagios XI to Monitor MS Exchange 2010

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

I am testing XI to monitor our Exchange Server.
I went through the Exchnage Wizard and it looks like it didn't do something right.

I am getting "NSClient - ERROR: Invalid return from command: check_pdh" for 'Messages Pending Routing' and 'Remote Queue Length'

When looking at the service, the command is check_xi_service_nsclient!!COUNTER!-l "\\SMTP Server(_Total)\\Remote Queue Length" -w 25 -c 50

Then in another place it says

Code: Select all

  $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$

Code: Select all

$ARG1$ is blank
$ARG2$ says COUNTER
$ARG3$ says   -l "\\SMTP Server(_Total)\\Remote Queue Length" -w 25 -c 50
my ns client version is .4.2.93
my ini file is:

Code: Select all

# If you want to fill this file with all avalible options run the following command:
#   nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
#   nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help


; Undocumented section
[/modules]

; CheckDisk - CheckDisk can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckDisk = 1

; Event log Checker. - Check for errors and warnings in the event log. This is only supported through NRPE so if you plan to use only NSClient this wont help you at all.
CheckEventLog = 1

; Check External Scripts - A simple wrapper to run external scripts and batch files.
CheckExternalScripts = 1

; Helper function - Various helper function to extend other checks. This is also only supported through NRPE.
CheckHelpers = 1

; Check NSCP - Checkes the state of the agent
CheckNSCP = 1

; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
CheckSystem = 1

; CheckWMI - CheckWMI can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckWMI = 1

; NRPE server - A simple server that listens for incoming NRPE connection and handles them.
NRPEServer = 1

; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.
NSClientServer = 1

NSCAClient = 1
NSClientServer = 1

[/settings/NRPE/server]

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true

; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = true

; Undocumented section
[/settings/default]

; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.
allowed hosts = g1vpnag01,10.100.5.70


; A list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)
[/settings/external scripts/alias]

; alias_cpu - Alias for alias_cpu. To configure this item add a section called: /settings/external scripts/alias/alias_cpu
alias_cpu = checkCPU warn=80 crit=90 time=5m time=1m time=30s

; alias_cpu_ex - Alias for alias_cpu_ex. To configure this item add a section called: /settings/external scripts/alias/alias_cpu_ex
alias_cpu_ex = checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s

; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk
alias_disk = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED

; alias_disk_loose - Alias for alias_disk_loose. To configure this item add a section called: /settings/external scripts/alias/alias_disk_loose
alias_disk_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED ignore-unreadable

; alias_event_log - Alias for alias_event_log. To configure this item add a section called: /settings/external scripts/alias/alias_event_log
alias_event_log = CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational') AND source != 'SideBySide'" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"

; alias_file_age - Alias for alias_file_age. To configure this item add a section called: /settings/external scripts/alias/alias_file_age
alias_file_age = checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"

; alias_file_size - Alias for alias_file_size. To configure this item add a section called: /settings/external scripts/alias/alias_file_size
alias_file_size = CheckFiles "filter=size > $ARG2$" "path=$ARG1$" MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%" max-dir-depth=10

; alias_mem - Alias for alias_mem. To configure this item add a section called: /settings/external scripts/alias/alias_mem
alias_mem = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page

; alias_process - Alias for alias_process. To configure this item add a section called: /settings/external scripts/alias/alias_process
alias_process = checkProcState "$ARG1$=started"

; alias_process_count - Alias for alias_process_count. To configure this item add a section called: /settings/external scripts/alias/alias_process_count
alias_process_count = checkProcState MaxWarnCount=$ARG2$ MaxCritCount=$ARG3$ "$ARG1$=started"

; alias_process_hung - Alias for alias_process_hung. To configure this item add a section called: /settings/external scripts/alias/alias_process_hung
alias_process_hung = checkProcState MaxWarnCount=1 MaxCritCount=1 "$ARG1$=hung"

; alias_process_stopped - Alias for alias_process_stopped. To configure this item add a section called: /settings/external scripts/alias/alias_process_stopped
alias_process_stopped = checkProcState "$ARG1$=stopped"

; alias_sched_all - Alias for alias_sched_all. To configure this item add a section called: /settings/external scripts/alias/alias_sched_all
alias_sched_all = CheckTaskSched "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=>0

; alias_sched_long - Alias for alias_sched_long. To configure this item add a section called: /settings/external scripts/alias/alias_sched_long
alias_sched_long = CheckTaskSched "filter=status = 'running' AND most_recent_run_time < -$ARG1$" "syntax=%title% (%most_recent_run_time%)" warn=>0

; alias_sched_task - Alias for alias_sched_task. To configure this item add a section called: /settings/external scripts/alias/alias_sched_task
alias_sched_task = CheckTaskSched "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0

; alias_service - Alias for alias_service. To configure this item add a section called: /settings/external scripts/alias/alias_service
alias_service = checkServiceState CheckAll

; alias_service_ex - Alias for alias_service_ex. To configure this item add a section called: /settings/external scripts/alias/alias_service_ex
alias_service_ex = checkServiceState CheckAll "exclude=Net Driver HPZ12" "exclude=Pml Driver HPZ12" exclude=stisvc

; alias_up - Alias for alias_up. To configure this item add a section called: /settings/external scripts/alias/alias_up
alias_up = checkUpTime MinWarn=1d MinWarn=1h

; alias_updates - Alias for alias_updates. To configure this item add a section called: /settings/external scripts/alias/alias_updates
alias_updates = check_updates -warning 0 -critical 0

; alias_volumes - Alias for alias_volumes. To configure this item add a section called: /settings/external scripts/alias/alias_volumes
alias_volumes = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED

; alias_volumes_loose - Alias for alias_volumes_loose. To configure this item add a section called: /settings/external scripts/alias/alias_volumes_loose
alias_volumes_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED ignore-unreadable 

; default - Alias for default. To configure this item add a section called: /settings/external scripts/alias/default
default = 

What am I missing?
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

It's more than likely the version of NSClient++ you are using.

NSClient++ 0.4.2.x and 0.4.3.x are currently under some heavy development and cause the most unusual of problems. It is quite frustrating however we are not the developers so we have no control over this.

Go back to NSClient++ v0.4.1.105 as this is quite stable.

NSCP-0.4.1.105-Win32.msi
NSCP-0.4.1.105-x64.msi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

Well, installing the older version took care of the "Queue Length" and Messages Pending Routing" issue.

but now, for "Exchange Core Services" and "Exchange Web Services" report "could not fetch information from server"
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Can you post the service definitions of "Exchange Core Services" and "Exchange Web Services".

In CCM the floppy disk icon will display this information.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

Code: Select all

###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.3.0
# Date:         2015-01-20 14:27:07
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
   host_name         g1vpexc01
   service_description      Blacklist Status
   use            xiwizard_exchange_service
   check_command         check_exchange_rbl!-B zen.spamhaus.org bl.spamcop.net dnsbl.ahbl.org dnsbl.njabl.org dnsbl.sorbs.net virbl.dnsbl.bit.nl rbl.efnet.org phishing.rbl.msrbl.net 0spam.fusionzero.com list.dsbl.org multihop.dsbl.org unconfirmed.dsbl.org will-spam-for-food.eu.org blacklist.spambag.org blackholes.brainerd.net blackholes.uceb.org spamsources.dnsbl.info map.spam-rbl.com ns1.unsubscore.com psbl.surriel.com l2.spews.dnsbl.sorbs.net bl.csma.biz sbl.csma.biz dynablock.njabl.org no-more-funn.moensted.dk ubl.unsubscore.com dnsbl-1.uceprotect.net dnsbl-2.uceprotect.net dnsbl-3.uceprotect.net spamguard.leadmon.net opm.blitzed.org bl.spamcannibal.org rbl.schulte.org dnsbl.ahbl.org virbl.dnsbl.bit.nl combined.rbl.msrbl.net
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      Exchange Core Services
   use            xiwizard_exchange_service
   check_command         check_xi_service_nsclient!!SERVICESTATE!-l MSExchangeADTopology,MSExchangeAntispamUpdate,MSExchangeEdgeSync,MSExchangeFDS,MSExchangeImap4,MSExchangeIS,MSExchangeMailboxAssistants,MSExchangeMailSubmission,MSExchangeMonangePop3,MSExchangeRepl,MSExchangeSA,MSExchangeSearch,MSExchangeServiceHost,MSExchangeTransport,MSExchangeTransportLogSearch,msftesql-Exchange -d SHOWALL
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      Exchange Web Services
   use            xiwizard_exchange_service
   check_command         check_xi_service_nsclient!!SERVICESTATE!-l W3SVC -d SHOWALL
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      Messages Pending Routing
   use            xiwizard_windowsserver_nsclient_service
   check_command         check_xi_service_nsclient!!COUNTER!-l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 25 -c 100
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      OWA HTTPS
   use            xiwizard_exchange_service
   check_command         check_xi_service_http! -H g1vpexc01 -f ok -I g1vpexc01 -u "/exchange/" -S
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      Ping
   use            xiwizard_exchange_ping_service
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      POP
   use            xiwizard_pop_service
   check_command         check_xi_service_pop!-j
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      Remote Queue Length
   use            xiwizard_windowsserver_nsclient_service
   check_command         check_xi_service_nsclient!!COUNTER!-l "\\SMTP Server(_Total)\\Remote Queue Length" -w 25 -c 50 -t 10!!!!!
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

define service {
   host_name         g1vpexc01
   service_description      SMTP
   use            xiwizard_smtp_service
   max_check_attempts      5
   check_interval         5
   retry_interval         1
   check_period         xi_timeperiod_24x7
   notification_interval      60
   notification_period      xi_timeperiod_24x7
   contacts         lewisj.adm,litsterj.adm,russellc.adm
   _xiwizard         exchange
   register         1
   }   

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

On your Windows server run these commands:

Code: Select all

cd "\Program Files\NSClient++\" 
nscp settings --activate-module NSClientServer --add-defaults 
nscp settings --path /settings/log --key level --set debug
Restart the NSClient++ Service.

Now go to you Nagios XI host and execute this command (replace win2008r2-01 with the IP Address of the windows server):

Code: Select all

/usr/local/nagios/libexec/check_nt -H win2008r2-01 -s "" -p 12489 -v SERVICESTATE -l MSExchangeADTopology,MSExchangeAntispamUpdate,MSExchangeEdgeSync,MSExchangeFDS,MSExchangeImap4,MSExchangeIS,MSExchangeMailboxAssistants,MSExchangeMailSubmission,MSExchangeMonangePop3,MSExchangeRepl,MSExchangeSA,MSExchangeSearch,MSExchangeServiceHost,MSExchangeTransport,MSExchangeTransportLogSearch,msftesql-Exchange -d SHOWALL

After it completes post the results from the nsclient.log file created on the windows server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

It says that everything is started

Code: Select all

 MSExchangeADTopology: Started - MSExchangeAntispamUpdate: Started - MSExchangeEdgeSync: Started - MSExchangeFDS: Started - MSExchangeImap4: Stopped - MSExchangeIS: Started - MSExchangeMailboxAssistants: Started - MSExchangeMailSubmission: Started - MSExchangeMonangePop3: Not found - MSExchangeRepl: Started - MSExchangeSA: Started - MSExchangeSearch: Started - MSExchangeServiceHost: Started - MSExchangeTransport: Started - MSExchangeTransportLogSearch: Started - msftesql-Exchange: Started

and the log file says:

Code: Select all

2015-01-20 16:16:25: d:c:\build\nscp\include\check_nt/server/protocol.hpp:59: Accepting connection from: 10.100.5.70
2015-01-20 16:16:25: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:240: Data: &5&ShowAll&MSExchangeADTopology&MSExchangeAntispamUpdate&MSExchangeEdgeSync&MSExchangeFDS&MSExchangeImap4&MSExchangeIS&MSExchangeMailboxAssistants&MSExchangeMailSubmission&MSExchangeMonangePop3&MSExchangeRepl&MSExchangeSA&MSExchangeSearch&MSExchangeServiceHost&MSExchangeTransport&MSExchangeTransportLogSearch&msftesql-Exchange
2015-01-20 16:16:25: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:265: Data: ShowAll&MSExchangeADTopology&MSExchangeAntispamUpdate&MSExchangeEdgeSync&MSExchangeFDS&MSExchangeImap4&MSExchangeIS&MSExchangeMailboxAssistants&MSExchangeMailSubmission&MSExchangeMonangePop3&MSExchangeRepl&MSExchangeSA&MSExchangeSearch&MSExchangeServiceHost&MSExchangeTransport&MSExchangeTransportLogSearch&msftesql-Exchange
2015-01-20 16:16:25: d:..\..\..\nscp\service\NSClient++.cpp:960: Injecting: checkservicestate...
2015-01-20 16:16:25: d:..\..\..\nscp\service\NSClient++.cpp:985: Result checkservicestate: CRITICAL
2015-01-20 16:17:37: d:c:\build\nscp\include\check_nt/server/protocol.hpp:59: Accepting connection from: 10.100.5.70
2015-01-20 16:17:37: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:240: Data: &8&\SMTP Server(_Total)\Remote Queue Length
2015-01-20 16:17:37: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:265: Data: \SMTP Server(_Total)\Remote Queue Length
2015-01-20 16:17:37: d:..\..\..\nscp\service\NSClient++.cpp:960: Injecting: checkcounter...
2015-01-20 16:17:37: e:..\..\..\..\nscp\modules\CheckSystem\CheckSystem.cpp:1517: ERROR: Counter not found: \SMTP Server(_Total)\Remote Queue Length: -1073738824: The specified object was not found on the computer.


2015-01-20 16:17:37: e:..\..\..\..\nscp\modules\CheckSystem\CheckSystem.cpp:1519: ERROR: Counter not found: \SMTP Server(_Total)\Remote Queue Length: -1073738824: The specified object was not found on the computer.


2015-01-20 16:17:37: e:..\..\..\..\nscp\modules\CheckSystem\CheckSystem.cpp:1566: ERROR: \SMTP Server(_Total)\Remote Queue Length: PdhAddCounter failed: -1073738824: The specified object was not found on the computer.


2015-01-20 16:17:37: d:..\..\..\nscp\service\NSClient++.cpp:985: Result checkcounter: WARNING
2015-01-20 16:17:56: d:c:\build\nscp\include\check_nt/server/protocol.hpp:59: Accepting connection from: 10.100.5.70
2015-01-20 16:17:56: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:240: Data: &5&ShowAll&MSExchangeADTopology&MSExchangeAntispamUpdate&MSExchangeEdgeSync&MSExchangeFDS&MSExchangeImap4&MSExchangeIS&MSExchangeMailboxAssistants&MSExchangeMailSubmission&MSExchangeMonangePop3&MSExchangeRepl&MSExchangeSA&MSExchangeSearch&MSExchangeServiceHost&MSExchangeTransport&MSExchangeTransportLogSearch&msftesql-Exchange
2015-01-20 16:17:56: d:..\..\..\..\nscp\modules\NSClientServer\NSClientServer.cpp:265: Data: ShowAll&MSExchangeADTopology&MSExchangeAntispamUpdate&MSExchangeEdgeSync&MSExchangeFDS&MSExchangeImap4&MSExchangeIS&MSExchangeMailboxAssistants&MSExchangeMailSubmission&MSExchangeMonangePop3&MSExchangeRepl&MSExchangeSA&MSExchangeSearch&MSExchangeServiceHost&MSExchangeTransport&MSExchangeTransportLogSearch&msftesql-Exchange
2015-01-20 16:17:56: d:..\..\..\nscp\service\NSClient++.cpp:960: Injecting: checkservicestate...
2015-01-20 16:17:56: d:..\..\..\nscp\service\NSClient++.cpp:985: Result checkservicestate: CRITICAL
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Can you post some screenshots of the Service Status showing the issue.

Both the overview tab and the advanced tab.

Is your host object "g1vpexc01" using an IP Address or hostname.fqdn?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

Im using the server name

Right now, the only item its having an issue with (I had uninstalled and re-installed the client before you suggestioned

Code: Select all

cd "\Program Files\NSClient++\" 
nscp settings --activate-module NSClientServer --add-defaults 
nscp settings --path /settings/log --key level --set debug
)

nagiosxi.jpg
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Excellent, we are on the home straight now.

The reason why it's going critical is because it's monitoring all possible Exchange services, when some of these are not used.

I can see these not being used:

MSExchangeImap4
MSExchangeMonangePop3

Edit your "Exchange Core Services" service in CCM and remove these from $ARG3$ (including the ,).

Save and Apply Config.


The other thing I noticed with your screenshot was that the text is being cut off. This is because the plugin output is longer than what is stored in the Nagios XI database.

If you wanted to adjust the database to display the full output run these four commands:

Code: Select all

echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output varchar(65535) not null;alter table nagios_servicestatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_hoststatus modify output varchar(65535) not null;alter table nagios_hoststatus modify long_output varchar(65535) not null;alter table nagios_hoststatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_servicechecks modify output varchar(65535) not null;alter table nagios_servicechecks modify long_output varchar(65535) not null;alter table nagios_servicechecks modify perfdata varchar(65535) not null;" | mysql -pnagiosxi

echo "use nagios;alter table nagios_hostchecks modify output varchar(65535) not null;alter table nagios_hostchecks modify long_output varchar(65535) not null;alter table nagios_hostchecks modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
The next time a check result is received the full output will appear.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked