Page 1 of 1

Create servicegroup to check domain status

Posted: Wed Sep 18, 2019 9:34 am
by randlebailey
I'm attempting to create a servicegroup to be used from several services I created to check_domains.php.

I created a separate service for each domain we want to monitor for expiration.
Config Name for each is "Domains"
Description contains the domain name to monitor.
Check command is check_domain
Command view is $USER1$/check_domain.php -d $ARG1$ -w 30 -c 10

The goal here is to monitor a domain for expiration - warning of 30 days, critical of 10 days. This is working fine. I'm attempting to monitor the 11 domains once a day (1440 minutes).

When I create a servicegroup called Domains, I am prompted for Services to add - none of my just-created Domain services appear (in the list that begins with "H:". Is this because my Domain services do not reference a host? If so, will I need to create a host for every domain and reference the each service to that host? And if I have to create a host for each domain name, what do I use for IP address - the actual address of the domain name?

I'm fairly new to Nagios XI, so be kind. :geek:

Re: Create servicegroup to check domain status

Posted: Wed Sep 18, 2019 12:02 pm
by benjaminsmith
Hello @randlebailey,

Every service needs to have a host associated with it. You can use the IP address or the domain ( if Nagios XI can resolve this to an IP address).

When you create new services, make sure you fill out all the required fields in the CCM and then Apply Configuration.

Also, when you are adding services to your service group, it lists by hostname then service description. Make sure you're searching for the correct name.

If you can't get it resolved, PM your system profile and I can take a closer look.

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message and then reply to this post to bring it up in the queue.

Re: Create servicegroup to check domain status - RESOLVED!

Posted: Wed Sep 18, 2019 4:30 pm
by randlebailey
Thanks Benjamin.

I started over and deleted all references to the domain checks (with the exception of the check_domain.php plug-in). Creating a separate host for each domain name did the trick. I was able to create services for each host using check_domain.php and then create a service group - works like a champ! The part I was missing was the host requirement for each service.

Thank you again Benjamin!

Re: Create servicegroup to check domain status

Posted: Wed Sep 18, 2019 4:35 pm
by benjaminsmith
Hi,

No problem! Thanks for following up and happy to hear it's working now.

I'll go ahead and locked this up, but feel free to open another if you have any new questions.