Page 1 of 1

NCPA - System Uptime

Posted: Thu Jan 24, 2019 7:40 pm
by Maxwellb99
Hi Guys,

Any idea why in the GUI the system-uptime node of NCPA sometimes returns the value in seconds. Sometimes it says "uptime was x months y days z seconds" sometimes it says "uptime was XXXXXXX.00 seconds"

Thanks,
Maxwell Ramirez

Re: NCPA - System Uptime

Posted: Fri Jan 25, 2019 10:07 am
by lmiltchev
Is this an active or passive check? Can you show us how it's configured? What is the NCPA version that you are currently using?

Also, show us the actual check run from the command line along with the output of it.

Re: NCPA - System Uptime

Posted: Wed Jan 30, 2019 10:06 pm
by Maxwellb99
Is this an active or passive check?
active

Can you show us how it's configured?
$USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $USER9$ -M $ARG1$ $ARG2$
$ARG1$ 'system/uptime'
$ARG2$ -c 31622400 -w 15811200

What is the NCPA version that you are currently using?
Version 1.1.3

Also, show us the actual check run from the command line along with the output of it.
I posted part of the server names to demonstrate that these are different server instances. Otherwise the checks are the same.
uptime.PNG
Notes:
- It appears this is happening for warning & Critical. OK Shows the correct format.
- These checks are being executed against Linux Instances. I can't speak to whether this is happening on Windows.

Re: NCPA - System Uptime

Posted: Thu Jan 31, 2019 10:20 am
by lmiltchev
I tested the uptime checks against a Linux machine (CentOS 6), but haven't been able to recreate the issue. The output for OK, WARNING, and CRITICAL states is shown in days, minutes, and seconds. I will have to bring in our NCPA developer and do some more testing. Meanwhile, can you run your "failing" check a few times, then post the /usr/local/ncpa/var/log/ncpa_listener.log from the remote machine on the forum?

Also, run the following command on the Nagios XI server and show the output:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ip address> -P 5693 -t <token> -M system/agent_version

Re: NCPA - System Uptime

Posted: Fri Feb 01, 2019 8:49 pm
by Maxwellb99
The ones it's jacked up on are running 2.06.
The majority are running 2.1.2.

... and there it is in the changelog: 2.1.0: "Fixed check settings not showing up on system/uptime and added human readable output to check return output."

Thanks for your help.
Maxwell Ramirez

Re: NCPA - System Uptime

Posted: Mon Feb 04, 2019 10:29 am
by lmiltchev
Please run your "failing" check a few times, then post the /usr/local/ncpa/var/log/ncpa_listener.log from the remote machine on the forum. Also, run the following command on the Nagios XI server and show the output:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ip address> -P 5693 -t <token> -M system/agent_version

Re: NCPA - System Uptime

Posted: Mon Feb 04, 2019 1:49 pm
by Maxwellb99
The ones it's jacked up on are running 2.06.
The majority are running 2.1.2.

... and there it is in the changelog: 2.1.0: "Fixed check settings not showing up on system/uptime and added human readable output to check return output."

Thanks for your help.
Maxwell Ramirez

Re: NCPA - System Uptime

Posted: Mon Feb 04, 2019 2:03 pm
by lmiltchev
The ones it's jacked up on are running 2.06.
The majority are running 2.1.2.
Upgrade your NCPA to the latest (2.1.6 at the moment) - this should fix the issue that you are having. If you are still having the same problem (after the upgrade), upload the /usr/local/ncpa/var/log/ncpa_listener.log on the forum, and verify the agent's version by running:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ip address> -P 5693 -t <token>-M system/agent_version

Re: NCPA - System Uptime

Posted: Mon Feb 04, 2019 2:08 pm
by Maxwellb99
Agreed. Yeah, that's the plan.

Thanks for your help.

Re: NCPA - System Uptime

Posted: Mon Feb 04, 2019 2:36 pm
by lmiltchev
Sounds good. I will be locking this topic now. If you have any more questions/issues, please start a new thread. Thank you!