iseries plugin issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rgilpin
Posts: 9
Joined: Wed Oct 04, 2017 7:14 pm

iseries plugin issue

Post by rgilpin »

Hi there,
monitor issues running on an as_400 system (iseries).
We have an issue running the following command (ASP):

[nagios@noc_nagiosxi01 /]$ /usr/local/nagios/libexec/check_as400 -H mp_as400 -v ASP 1 -w 90 -c 95
OK - 72.2% used in ASP 1 | asp=72.2%;90.0;95.0;0;
[nagios@noc_nagiosxi01 /]$ /usr/local/nagios/libexec/check_as400 -H df_as400 -v ASP 1 -w 90 -c 95
CRITICAL - 1775.0% used in ASP 1! | asp=1775.0%;90.0;95.0;0;


The first command (running on mp_as400) runs fine and reports true. The 2nd gives a false reading and goes critical (this is percent used and obviously should always be below 100%)
Of note the OS is slighly different levels (mp_as400 runs IBM i 7.1 df_as400 runs IBM i 7.3)

plugin version is:
[nagios@noc_nagiosxi01 /]$ /usr/bin/java -cp /usr/local/nagios/libexec check_as400 -V

Check_as400 Version: 1.4.4
---------------------------
Check_as400 is Nagios Plugin to check IBM System i.


I'm guessing an updated plugin may be of order, but this appears to be the latest version.
Could anybody point me in the right direction?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: iseries plugin issue

Post by npolovenko »

Hello, @rgilpin.
Looks like a bug to me. The only thing I could think is perhaps asp=1775.0% is a percent from your critical threshold - c 95. So maybe the plugin takes 95 as a 100% value?
This plugin was developed by a third party. If you have a GitHub account I'd recommend creating an issue on the product page:
https://github.com/cjt74392/check_as400/issues
Alternatively, you could send them an email:
If you have suggestions or would like to submit bugs, email me at [email protected]
Regards.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: iseries plugin issue

Post by tacolover101 »

if you have anyone knowledgeable with java on your team, look at where it's parsing / calculating the percent - the issue is most likely here.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: iseries plugin issue

Post by npolovenko »

Thanks, @tacolover101!
@rgilpin, Did developers get back to you regarding this issue?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rgilpin
Posts: 9
Joined: Wed Oct 04, 2017 7:14 pm

Re: iseries plugin issue

Post by rgilpin »

Hey there, just getting back to answering old posts.

Yes developer got back quickly and gave me an answer, sort of anyway.

His reply:
From: ShaoPin Cheng [mailto:[email protected]]
Sent: Friday, 10 November 2017 12:40 AM
To: cjt74392/check_as400 <[email protected]>
Cc: Rob Gilpin <[email protected]>; Author <[email protected]>
Subject: Re: [cjt74392/check_as400] Nagios iseries plugin issue (#4)

Fixed ASP problem on OS V7R2
If your OS is V6 or V5, you need to change source code.
** find string "parseWrkAspBrm" in check_as400.java
** V5R3 start point change to +128

Sorry I'm not a java expert by any means so not sure if this makes sense to anyone? Otherwise I have written back to clarify if a new version has been released. Heard no response.

Kind of stuck at the moment.

Any further help or suggestions with this would be greatly appreciated.
kyang

Re: iseries plugin issue

Post by kyang »

I have never tested this plugin.

I'm sure he's letting you know that he did release a new version. (Or at least Github says it was updated 2 months ago, which would be around the time you emailed him)

Have you tried changing the source code in your plugin to reflect the new fix?

https://github.com/cjt74392/check_as400

Code: Select all

check_as400.class 	Fixed ASP problem on V7R2 	2 months ago

check_as400.java 	Fixed ASP problem on V7R2 	2 months ago
These two. I hope that sorts things out!
rgilpin
Posts: 9
Joined: Wed Oct 04, 2017 7:14 pm

Re: iseries plugin issue

Post by rgilpin »

Thanks I've checked it out and we will apply this. Not sure how this was missed.......
Appreciate your help on this
rgilpin
Posts: 9
Joined: Wed Oct 04, 2017 7:14 pm

Re: iseries plugin issue

Post by rgilpin »

Have applied new check and works a treat. ASP now reporting true and correct.
kyang

Re: iseries plugin issue

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked