Page 1 of 2
Service Check Timed Out (check_as400)
Posted: Mon Feb 10, 2014 10:02 am
by cikoski
Hello everybody,
i'm trying to monitor my AS400 host, i installed the plugin
http://exchange.nagios.org/directory/Pl ... 00/details but when i try to make the plugin working with the SSH it works but the service doesn't stop and the WebUI reminds me the error Service Check Timed Out.
I tried to make the service_check_timeout=60 longer and shorter and it doesn't change nothing.
Can anyone help me?
Thank you
Ciko
Re: Service Check Timed Out (check_as400)
Posted: Mon Feb 10, 2014 11:11 am
by abrist
Can you try running the check from the cli as user 'nagios'?
Re: Service Check Timed Out (check_as400)
Posted: Tue Feb 11, 2014 2:41 am
by cikoski
abrist wrote:Can you try running the check from the cli as user 'nagios'?
Thank you,
i tried and it's the same of root user, the check is working but itsn't stopping and i have to presse CTRL + C for return in imput mode in the cli.
Ciko
Re: Service Check Timed Out (check_as400)
Posted: Tue Feb 11, 2014 11:20 am
by abrist
I would presume that the check is not exiting correctly (or at all). Do you have this check successfully deployed for any other AS400s?
What OS version is yours running?
Re: Service Check Timed Out (check_as400)
Posted: Tue Feb 11, 2014 11:22 am
by slansing
Okay, so it seems like it is never exiting, this could be a fairly simple fix. It sounds like the developer of the plugin does respond to emails fairly quickly, I suggest you use his contact information from the plugin/exchange page.
Re: Service Check Timed Out (check_as400)
Posted: Wed Feb 12, 2014 4:19 am
by cikoski
slansing wrote:Okay, so it seems like it is never exiting, this could be a fairly simple fix. It sounds like the developer of the plugin does respond to emails fairly quickly, I suggest you use his contact information from the plugin/exchange page.
abrist wrote:I would presume that the check is not exiting correctly (or at all). Do you have this check successfully deployed for any other AS400s?
What OS version is yours running?
Thank you!
I send a mail to the developer of the plugin.
It's my first time i install the plugin in an AS400 host..
Ciko
Re: Service Check Timed Out (check_as400)
Posted: Wed Feb 12, 2014 10:36 am
by abrist
It you do not hear back from the plugin developer in a timely fashion, let us know and we will lok into the plugin. We do not have any as400s in the office here, so we will only be able to do so much.
Re: Service Check Timed Out (check_as400)
Posted: Thu Feb 13, 2014 3:37 am
by cikoski
abrist wrote:It you do not hear back from the plugin developer in a timely fashion, let us know and we will lok into the plugin. We do not have any as400s in the office here, so we will only be able to do so much.
Thank you for the reply, the developer tell me:"
what is your system language setting,
if not English, you need recompile your LANG
(1).copy Lang Source/check_as400_langxxx to ../check_as400_lang.java
(2).Re compile. javac check_as400_lang.java"
But i check my language and it's still in English..
I think the problem it's that the service of the plugin isn't stopping because in the cli it's work but it don't return in the input mode and in the webUI it reply to me Service Check Timed Out like it's never stopping..
Anyone say how to fix it?
Thank you very much!
Re: Service Check Timed Out (check_as400)
Posted: Thu Feb 13, 2014 10:51 am
by slansing
Yes, as abrist and I both said, that is the case, the plugin is never exiting. I suggest you email the developer back and let him know you are running under English.. he probably has more things for you to try than just looking at language settings.
Re: Service Check Timed Out (check_as400)
Posted: Thu Jan 28, 2016 9:20 am
by netexpertise
Hi,
I had the same timeout error message in Nagios with this plugin.
if you run the same command with -d for debug, it says it is waiting for token System to log out from the iSeries
I resolved by editing check_as400.java
In the logout function, uncomment
waitReceive(";53H",NONE);
and comment out
waitReceive(LANG.LOGIN_SCREEN,NONE);
There are 2 of them
Recompile: javac check_as400.java and reinstall
It did work for me on a AS400 machine with a foreign language
David