Trouble Monitoring OKTA services pm domain controllers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcahillcspace
Posts: 5
Joined: Mon Sep 16, 2019 11:58 am

Trouble Monitoring OKTA services pm domain controllers

Post by jcahillcspace »

We are using OKTA on our domain controllers (installed as an agent running a service) to synch with our parent company's global AD. I have repeatedly tried creating an service check to alert us in the event that that the OKTA serice goes down or is unresponsive. Not matter what I try, Nagios comes back with "Not Found". I have cloned an existing working service check and only changed the corresponding service details, and I confirmed it is setup the same as other working service checks.

I have used the following variants - none of which are working:

-Okta Active Directory Service
-OktaActiveDirectoryService
-Okta AD Agent
-OktaADAgent
-OktaAgentService.exe

Does anyone have any experience with this?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by mbellerue »

What agent (NCPA, NSClient?) do you have installed on the server where OKTA is running? Is that a Windows host, or a Linux host? Also, can you show the full commands that you are trying?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jcahillcspace
Posts: 5
Joined: Mon Sep 16, 2019 11:58 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by jcahillcspace »

The agent is NSClient, and the servers are both Windows 2016 and 2012. Check command run is "check_nt" with command view "$USER1$/check_nt -H $HOSTADDRESS$ -p $USER7$ -s $USER8$ -v $ARG1$ $ARG2$"

$ARG1$ = "SERVICESTATE" and
$ARG2$ = "-d SHOWALL -l"
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by mbellerue »

Try this in $ARG2$

Code: Select all

-l "Print Spooler"
Assuming that the print spooler service is running, that should return,

Code: Select all

OK: All 1 service(s) are ok.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jcahillcspace
Posts: 5
Joined: Mon Sep 16, 2019 11:58 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by jcahillcspace »

Thank you, that did work, but isn't that only checking the print spool service?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by mbellerue »

Yes, that just gives us a starting point. The next thing to do is to get a list of the services the way that Windows identifies them. To do that, log into one of your Windows machines, and run the following in a cmd.exe window.

Code: Select all

net start
That will list off all of the currently running services as Windows understands them. You can replace "Print Spooler" with any one of those services, or chain together multiple services.

Single service

Code: Select all

-l "SQL Full-text Filter Daemon Launcher (MSSQLSERVER)"
Multiple services

Code: Select all

-l "Print Spooler", "Task Scheduler", "Remote Desktop Services"
For multiple services, you can chain together as many services as you like.

The -d SHOWALL flag changes the output of the service check. I'll use the multiple services example.

Code: Select all

root@weylandxi:/usr/local/nagios/libexec# ./check_nt -H 192.168.145.90 -v SERVICESTATE -l "Print Spooler","Task Scheduler","Remote Desktop Services" -s SuperSecretPassword
 OK: All 3 service(s) are ok.

root@weylandxi:/usr/local/nagios/libexec# ./check_nt -H 192.168.145.90 -v SERVICESTATE -l "Print Spooler","Task Scheduler","Remote Desktop Services" -d SHOWALL -s SuperSecretPassword
 Print Spooler: Started, Task Scheduler: Started, Remote Desktop Services: Started
-d SHOWALL just gives a slightly more verbose output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jcahillcspace
Posts: 5
Joined: Mon Sep 16, 2019 11:58 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by jcahillcspace »

I see what you are saying - will try that. Thank you again.
jcahillcspace
Posts: 5
Joined: Mon Sep 16, 2019 11:58 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by jcahillcspace »

That worked! Thank you very much.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Trouble Monitoring OKTA services pm domain controllers

Post by mbellerue »

Excellent! Glad you have it working! I will close the thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked