Page 1 of 2
Service status information issue
Posted: Mon Jun 29, 2020 9:31 am
by RIDS_I2MP
Hi Team,
We configured a Windows server monitoring in Nagios XI today using "NCPA" configuration Wizard. The monitoring was enabled successfully but we can see an extra "b" before each service status information. I am unable to understand why this is happening. I already checked the service definition and it doesn't contain anything like that. I have highlighted it in the screenshot.
Nagios Xi version: 5.7.1
I am attaching the screenshot here for your reference.
Thanks in advance for your help!!
Re: Service status information issue
Posted: Mon Jun 29, 2020 3:56 pm
by cdienger
Are you only seeing it for this one host's services? It sounds like a typo somewhere in the config. Please review the configuration for the service checks in the CCM and try running it with the test option. Please PM me a copy of the settings database if there are still issues after reviewing the config. The default database can be gathered with:
Code: Select all
mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
If the database has been offloaded to another machine then you'll need to modify the commands slightly to look like:
Code: Select all
mysqldump -h database_host_ip -uusername -ppassword nagiosql > nagiosql.sq
Re: Service status information issue
Posted: Tue Jun 30, 2020 1:09 am
by RIDS_I2MP
Hello,
I ran the check commend and below is the output:
[nagios@HO1-NAGIOSXI ~]$ /usr/local/nagios/libexec/check_ncpa.py -H 10.1.0.143 -t '
[email protected]' -P 5693 -M memory/virtual -u 'Gi' -w '80' -c '90' b"WARNING: Used memory was 85.50 % (Available: 0.87 GiB, Total: 6.00 GiB, Free: 0.87 GiB, Used: 5.13 GiB) | 'available'=0.87GiB;5;5; 'total'=6.00GiB;5;5; 'free'=0.87GiB;5;5; 'used'=5.13GiB;5;5;"
I tried checking the service definition in CCM, but I could not find any typo error. Please suggest!
Below is the service definition:
-t '
[email protected]' -P 5693 -M memory/virtual -u 'Gi' -w '80' -c '90'
While trying to take the MySQL dump using the command that you have provided, I am getting below error:
[root@HO1-NAGIOSXI tmp]# mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
mysqldump: [Warning] Using a password on the command line interface can be insecure.
[root@HO1-NAGIOSXI tmp]#
We have bought a new License recently, so I have done the monitoring only on one server, I will check the monitoring on other servers as well.
Thanks for your support!!
Re: Service status information issue
Posted: Tue Jun 30, 2020 3:34 pm
by ssax
Ignore the warning:
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Attach this file:
Please PM me a copy of your profile as well, you can download it from Admin > System Profile > by clicking the Download Profile button.
Re: Service status information issue
Posted: Wed Jul 01, 2020 6:48 am
by RIDS_I2MP
Hello,
I have configured monitoring on a Linux server today and used NCPA configuration wizard. I am getting the same "b" in all services there as well.
I am sending profile file and Nagios.sql to you using PM.
Please help us on the same.
Moderator's Note: The profile/nagios.log files have been shared with the support team but have been removed from the public forum.
Re: Service status information issue
Posted: Wed Jul 01, 2020 5:04 pm
by ssax
Please attach this file:
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py
Are you seeing that on any other systems or just this one?
Send me your ncpa.cfg and any files you have in that hosts ncpa.cfg.d directory on that system.
Re: Service status information issue
Posted: Thu Jul 02, 2020 7:04 am
by RIDS_I2MP
Hello,
I have done the NCPA agent installation on a Windows server and also on a Linux server. I am facing the same issue on both.
I was not able to access Windows server, I am providing you ncpa.cfg file of the Linux server. Also I am attaching check_ncpa.py file and two files under ncpa.cfg.d directory.
PFA the screen shot of Linux server monitoring as well for your reference.
Re: Service status information issue
Posted: Thu Jul 02, 2020 5:14 pm
by ssax
So you're saying you have the B prepended on the linux system output as well?
What is that hostname for that one?
That output looks proper but the other one is using passive services and this one doesn't look like it is.
Re: Service status information issue
Posted: Fri Jul 03, 2020 2:24 am
by RIDS_I2MP
Hello,
Yes, I can see B in Linux server as well.
Hostname: NagiosUAT.chalhoub.org (Linux server).
Note: I used Nagios XI "Deploy Agent" feature to deploy NCPA agent on Linux server, on the other hand, we did manual NCPA agent installation on windows server.
I am attaching the screenshot for that host and service here.
I need to setup monitoring for our Prod servers now, we want this issue to get resolved before that.
Please help us to resolve it at the earliest.
Thanks again for your continuous support!!
Re: Service status information issue
Posted: Mon Jul 06, 2020 5:36 pm
by ssax
Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:
https://support.nagios.com/tickets/