Services deleted, config applied, but still appearing ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Services deleted, config applied, but still appearing ...

Post by PhilG »

Hello:
We are running Nagios XI 2014R1.1 on Red Hat Enterprise Linux Server release 6.5 (Santiago).

I installed NRPE on that Linux server (we'll call it Server L), and for our testing wanted to identify if Server L can check for "Total Processes", "Current Users", and "Current Load".

After noting that the Services were showing errors, I deleted them from
Configure - Core Config Manager - Services
and then filtered for Server L, then removed the "Total Processes", "Current Users", and "Current Load" Services on Server L, then applied and wrote the Configuration and had Nagios XI restarted (not reboot)

I checked the different views under "Home - Quick View" and noted that the Services on Server L were still appearing, but the views were inconsistent, too.
A). Birdseye:
The Host identifies the removed Services: Total Processes, Current Users, and Current Load.

B). Operations Center:
Total Processes - "NRPE: Command 'check_total_procs' not defined"
Current Users - "(No output returned from plugin)"
Current Load - "check_load: Could not parse arguments"

C). Operations Screen:
Identifies the Service "Total Processes" with Output "NRPE: Command 'check_total_procs' not defined"

D). Open Service Problems:
Identifies only the Services "Current Users" and "Current Load" as Status "Unknown" with corresponding Status Information as identified as the same as the Operations Center's Status Information.

E). All Service Problems:
Identical to Open Service Problems.

F). Service Detail:
Identifies "Current Users" and "Current Load".


What are the steps to fix this, please, so that the Services are no long displayed, and why would these views be inconsistent?

Thank you.
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services deleted, config applied, but still appearing ..

Post by lmiltchev »

Are you still seeing the "Total Processes", "Current Users", and "Current Load" services in the CCM? Are these the ONLY services on this host or there are more?

If there are more services on the same host, do the following:

1. Delete the "Total Processes", "Current Users", and "Current Load" services in the CCM, save but DON'T apply configuration
2. Open another service on the SAME host, and click on Save, without changing anything
3. Apply Configuration
4. Go to Home->Service Detail to see if the there services have been deleted successfully.

Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Services deleted, config applied, but still appearing ..

Post by PhilG »

lmiltchev wrote:Are you still seeing the "Total Processes", "Current Users", and "Current Load" services in the CCM? Are these the ONLY services on this host or there are more?

If there are more services on the same host, do the following:

1. Delete the "Total Processes", "Current Users", and "Current Load" services in the CCM, save but DON'T apply configuration
As noted above: "After noting that the Services were showing errors, I deleted them from
Configure - Core Config Manager - Services
and then filtered for Server L, then removed the "Total Processes", "Current Users", and "Current Load" Services on Server L, then applied and wrote the Configuration and had Nagios XI restarted (not reboot)
"
So, would you like for me to add those back??


2. Open another service on the SAME host, and click on Save, without changing anything
3. Apply Configuration
4. Go to Home->Service Detail to see if the there services have been deleted successfully.

Let me know if this helped.
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services deleted, config applied, but still appearing ..

Post by lmiltchev »

You didn't answer my question...
Are you still seeing the "Total Processes", "Current Users", and "Current Load" services in the CCM?


You don't need to add these services back. If you don't see them in the CCM, just open another service on the same host, and click on Save, without changing anything, then apply configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Services deleted, config applied, but still appearing ..

Post by PhilG »

lmiltchev wrote:You didn't answer my question...
Are you still seeing the "Total Processes", "Current Users", and "Current Load" services in the CCM?


You don't need to add these services back. If you don't see them in the CCM, just open another service on the same host, and click on Save, without changing anything, then apply configuration.
No, they are not appearing in the CCM.

I will try your suggestion and then report back.

UPDATE: I added the "Yum updates" Service via the Linux Server Monitoring Wizard, and applied the configuration afterwards.
I verified in Service Detail that Yum was appearing with a warning (this is not an issue, though), and noted that the "Total Processes" and other two Services provided earlier were not appearing, and I verified in all the other Home view - Quick Views that those Services were no longer appearing, too.

I feel that when I remove/delete a Service through the CCM - Monitoring - Services
and then apply the configuration in that Service's page,
and then Quick Tools - Apply Configuration - Apply Configuration,
then Tools - Write Config Files, then Write, then Verify, then Restart
that the Service should no longer appear.

Is there a "bug", a large time delay, or an anomaly??
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services deleted, config applied, but still appearing ..

Post by lmiltchev »

Yes, there is a bug, which will be fixed in the next release of XI. For the time being, you can try following the steps, outlined here:

http://support.nagios.com/forum/viewtop ... 12#p102512

Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Services deleted, config applied, but still appearing ..

Post by PhilG »

lmiltchev wrote:Yes, there is a bug, which will be fixed in the next release of XI. For the time being, you can try following the steps, outlined here:

http://support.nagios.com/forum/viewtop ... 12#p102512

Let me know if this helped.
Because of the updates in the post you provided, and so that I understand and get it straight:
1). Download "nagiosql_delete_host.zip" (NOTE: Do NOT download "delete_object.inc.zip")
2). Extract the ZIP file into "/usr/local/nagiosxi/scripts" (NOTE: Do NOT extract into "/usr/local/nagiosxi/html/includes/components/ccm/includes/")
3). Modify the permissions: chown nagios:nagios nagiosql_delete_host.php

Is there a restart or reboot required, or will modifying this live take affect immediately?
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services deleted, config applied, but still appearing ..

Post by lmiltchev »

You will need to do the following:

1. Download and unzip the "delete_object.inc.zip" file to "/usr/local/nagiosxi/html/includes/components/ccm/includes/" directory, overwriting the "delete_object.inc.php".
2. Download and unzip the "nagiosql_delete_host.zip" file to "/usr/local/nagiosxi/scripts/" directory, overwriting the "nagiosql_delete_contact.php", "nagiosql_delete_host.php", "nagiosql_delete_service.php", and "nagiosql_delete_timeperiod.php".

Note: You can create a backup of the original files just in case. Also, check the permissions of the "new" files. If they are not "nagios:nagios" you can run "chown" to change them. Example:

Code: Select all

cd /usr/local/nagiosxi/html/includes/components/ccm/includes/
chown nagios:nagios delete_object.inc.php
Is there a restart or reboot required, or will modifying this live take affect immediately?
No, the reboot is not required.
Be sure to check out our Knowledgebase for helpful articles and solutions!
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Services deleted, config applied, but still appearing ..

Post by PhilG »

I have downloaded your ZIP files to my workstation.
I have RDP'ed and logged in to my Nagios XI server with Admin credentials and SU'ed to root.
I have unzipped the ZIP files and SFTP'ed the files up to the Nagios XI server.
I have followed your procedure and was able to copy the files to the appropriate directories that you noted and changed ownership to NAGIOS:NAGIOS.
I did not restart or reboot.

I logged in to my Nagios XI GUI web console, and noted that I have a server (SERVER A) that has only "PING" and "SSH" Services identified in "CCM - Monitoring - Services", but in "Home - <any Quick View>" (like Operations Center) the "HTTP" and "HTTPS" Services appear in a Critical state for SERVER A (over 14 days).

I went to "Home - Quick View - Details - Service Detail", selected SERVER A's Host "VIew service status details for this host" and the Service Status for SERVER A noted 4 Services:
HTTP, HTTPS, Ping, SSH
with HTTP and HTTPS as Status Critical and SSH and Ping as Status OK.

Since SERVER A was a Linux server, I ran the Linux Server Monitoring Wizard and selected SSH as the only monitoring option.

When completed, and verified in "CCM - Monitoring - Services" that SERVER A was reporting Ping, SSH, and SSH Server Services (noting that SSH Server is not running on SERVER A).

I checked "Home - Quick View - Operations Center (and Open Service Problems)" and noted that SERVER A had one critical which was Service "SSH Server".

I have not applied configuration at any time during this process.

This appears to be going well so far.
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Services deleted, config applied, but still appearing ..

Post by lmiltchev »

Sounds good. Let us know if it is OK to lock the topic as resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked