Service is defined and active, but inactive when checked
-
andrewatmacys
- Posts: 114
- Joined: Tue Feb 06, 2018 9:25 am
Service is defined and active, but inactive when checked
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!
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
Hello, @andrewatmacys.
This is not in the CCM? Can you upload a screenshot of these settings, please?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.
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
Sure, I'll post pictures of what I mean, I'm sure the way I worded it was confusing, my apologies.
CCM: 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.
Clicking on the service, then the configure tab, then going to the CCM this way is where I see the blank page below.
CCM: 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.
Clicking on the service, then the configure tab, then going to the CCM this way is where I see the blank page below.
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
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
@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:
If it doesn't resolve your problem please send us your system profile.
By the way, are you noticing this behavior in almost any service or just in service checks that are assigned to host groups?
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.
After you send me the profile please post something in this thread to bring it back up in the support queue.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.
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
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.
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
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.
I believe this has since been fixed in newer versions.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Service is defined and active, but inactive when checked
@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
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
@andrewatmacys, Sounds good. Keep us updated.
PS: To check/repair databases run these commands as root:
PS: To check/repair databases run these commands as root:
And these commands also:mysqlcheck -r -f -uroot -pnagiosxi --all-databases
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.