Page 1 of 1

iseries plugin issue

Posted: Tue Oct 31, 2017 11:25 pm
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?

Re: iseries plugin issue

Posted: Wed Nov 01, 2017 10:56 am
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.

Re: iseries plugin issue

Posted: Fri Nov 03, 2017 7:10 am
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.

Re: iseries plugin issue

Posted: Fri Nov 03, 2017 9:53 am
by npolovenko
Thanks, @tacolover101!
@rgilpin, Did developers get back to you regarding this issue?

Re: iseries plugin issue

Posted: Thu Jan 04, 2018 2:00 am
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.

Re: iseries plugin issue

Posted: Thu Jan 04, 2018 10:18 am
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!

Re: iseries plugin issue

Posted: Sun Jan 07, 2018 7:28 pm
by rgilpin
Thanks I've checked it out and we will apply this. Not sure how this was missed.......
Appreciate your help on this

Re: iseries plugin issue

Posted: Sun Jan 07, 2018 10:50 pm
by rgilpin
Have applied new check and works a treat. ASP now reporting true and correct.

Re: iseries plugin issue

Posted: Mon Jan 08, 2018 10:11 am
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!