Service is defined and active, but inactive when checked

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Service is defined and active, but inactive when checked

Post by andrewatmacys »

I have services being checked on various hosts, with the service checks being applied to all hosts in a host group. However, when I go to see the individual host and try to check the service check settings from there, everything is blank and it says it is inactive. Going back to the service check in the CCM shows that this is untrue, but I'm wondering what's happening here.

We're seeing some alerts being missed and I wonder if this is the cause. Any help is appreciated!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Service is defined and active, but inactive when checked

Post by npolovenko »

Hello, @andrewatmacys.
When I go to see the individual host and try to check the service check settings from there, everything is blank and it says it is inactive.
This is not in the CCM? Can you upload a screenshot of these settings, please?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Service is defined and active, but inactive when checked

Post by andrewatmacys »

Sure, I'll post pictures of what I mean, I'm sure the way I worded it was confusing, my apologies.
CCM:
Tagup.PNG
But when I check the service on the host itself is where things get weird. Following the steps here to get to the CCM this way is where I see the problem.
tagup2.PNG
Clicking on the service, then the configure tab, then going to the CCM this way is where I see the blank page below.
Tagup3.PNG
You do not have the required permissions to view the files attached to this post.
Last edited by andrewatmacys on Wed Jan 09, 2019 2:21 pm, edited 2 times in total.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Service is defined and active, but inactive when checked

Post by andrewatmacys »

tagup4.PNG
tagup5.PNG
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Service is defined and active, but inactive when checked

Post by npolovenko »

@andrewatmacys, Oh, I see what you mean. Are you also concerned about the disabled notifications icon next to the service name? Or just the blank config issue?
Let's start by executing the repair databases script:
/usr/local/nagiosxi/scripts/repair_databases.sh

If it doesn't resolve your problem please 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 send it to me in a personal message.
After you send me the profile please post something in this thread to bring it back up in the support queue.

By the way, are you noticing this behavior in almost any service or just in service checks that are assigned to host groups?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Service is defined and active, but inactive when checked

Post by andrewatmacys »

Apologies for the late replay, I've been sick the last couple of work days.

I will have to get help from someone with root access to run the database repair script, but I am seeing this on most service checks on this installation of Nagios, but only this installation.

In the meantime I will send you the system profile so you can take a look.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service is defined and active, but inactive when checked

Post by scottwilkerson »

I also want to note the "Edit in CCM" link may be pointing to the wrong location in this old version of XI.

I believe this has since been fixed in newer versions.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Service is defined and active, but inactive when checked

Post by npolovenko »

@andrewatmacys, I looked through your system profile and didn't see anything directly related to this issue. As @scottwilkerson mentioned, this bug was likely fixed in the newer versions of XI.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Service is defined and active, but inactive when checked

Post by andrewatmacys »

Thanks for the replies. I'll still try the DB repair, but if the snapshot doesn't show anything wrong then we'll work on doing an upgrade as soon as we can.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Service is defined and active, but inactive when checked

Post by npolovenko »

@andrewatmacys, Sounds good. Keep us updated.

PS: To check/repair databases run these commands as root:
mysqlcheck -r -f -uroot -pnagiosxi --all-databases
And these commands also:
service mysqld stop
cd /var/lib/mysql/nagios
myisamchk -r -f *
cd /var/lib/mysql/nagiosql
myisamchk -r -f *
cd /var/lib/mysql/nagiosxi
myisamchk -r -f *
service mysqld start
rm -f /usr/local/nagiosxi/var/dbmaint.lock
/usr/bin/php /usr/local/nagiosxi/cron/dbmaint.php
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked