How to complete installing a plugin from Nagios Exchange

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to complete installing a plugin from Nagios Exchange

Post by tgriep »

Can you post the Nagios configuration file for that server so we can view it?
It looks like the service check is missing for the Exchange check.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by rafael »

I uploaded nagios.cfg file. Kindly help me check. Thanks.
Attachments
nagios.cfg
(43.78 KiB) Downloaded 416 times
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to complete installing a plugin from Nagios Exchange

Post by tmcdonald »

That's the main Nagios configuration file. We need to see the config file for the specific server that you are trying to monitor.
Former Nagios employee
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by rafael »

If i understood you, that is NSClient++ which i installed on Exchange Server. See nsclient.ini as attached file.
Kindly feedback again if i was wrong. Thank you!
Attachments
nsclient.ini
(7.34 KiB) Downloaded 403 times
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by lmiltchev »

Did you place your PS script in "C:\NagiosMonitoring\"? Usually, scripts are placed in the "C:\Program Files\NSClient++\scripts" directory. Try moving your script there, then change your command from this:

Code: Select all

LyncFrontendServicesCheck=cmd /c echo C:\NagiosMonitoring\NagiosMonitoring_Exchange2016_Services.ps1 | PowerShell.exe -Command -
to this:

Code: Select all

LyncFrontendServicesCheck=cmd /c echo scripts\NagiosMonitoring_Exchange2016_Services.ps1; exit $LastExitCode | powershell.exe -command -
and restart the NSClient++ service.

Test it by running the following command from the command line on the Nagios XI server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip> -c LyncFrontendServicesCheck
If you are still having issues, load all of the "defaults" in the nsclient.ini file by running the following in the CMD Prompt on the Windows machine as administrator:

Code: Select all

cd "C:\Program Files\NSClient++"
nscp settings --generate --add-defaults --load-all
Next, upload the updated nsclient.ini file on the forum. We may need to tweak some of the settings in there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by rafael »

Hello,
I followed up your instruction steps and here is report. Hope you find the problem. Thanks
1) Output command
Service OK: All services are up and running
2) Output command "nscp settings --generate --add-defaults --load-all"
C:\Program Files\NSClient++>nscp settings --generate --add-defaults --load-all
l scripts\commands.hpp:100 Failed to parse arguments for command 'LyncFrontendS
ervicesCheck', using old split string method: unknown escape sequence: cmd /c ec
ho scripts\NagiosMonitoring_Exchange2016_Services.ps1; exit $LastExitCode | powe
rshell.exe -command -
Adding default values
3) See newest nsclient.ini as attached.
By the way, Anyone share me the photo of final result if there is sucesfulled configure.
Attachments
nsclient.ini
(22.12 KiB) Downloaded 423 times
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to complete installing a plugin from Nagios Exchange

Post by cdienger »

Hi rafael,

If you're getting:

Code: Select all

Service OK: All services are up and running
that means the plugin is up and running. Not sure why you're getting the parsing message but the config appears to be good and returning what you'd want now.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by rafael »

Hi cdienger,
Now, I'd like to look the results/achieves. Where can i find it ? What's all Exchange services state information ? I could only view like photo below.
Image
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: How to complete installing a plugin from Nagios Exchange

Post by rafael »

Any one can show me the result sample ? And where can i find it on my Nagios ?
Thanks.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to complete installing a plugin from Nagios Exchange

Post by cdienger »

The script will return a result like this if all services are up and running:

Service OK: All services are up and running

To see the results you must create config for this check Under Configure > CCM > Services. For example:
Attachments
lync.png
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked