Page 1 of 1

Plugin "check_as400" does not release the prompt

Posted: Fri Jan 28, 2022 11:49 am
by dberlenda
Hello ,
I have installed the plugin check_as400 but i have the problem that the executable check_as400 does not release the prompt :

[nagios@nagios]$ ./check_as400 -H 192.168.144.222 -v LOGIN
OK - Login completed successfully

The plugin works corretly but does not release the prompt from command line .

I have alreadt tried without success to change the language to italian because my login page is in italian. After the logon the AS400 menu changes in english because the lib. QSYS2924 in on the top .

Could you please help me to undestand the problem ?

Thanks in advance
Davide

Re: Plugin "check_as400" does not release the prompt

Posted: Mon Jan 31, 2022 10:54 am
by pbroste
Hello @dberlenda

Thanks for reaching out, looking at the plugin exchange web page, there is a couple of user posts that reference this issue, and want to find out if this helps. Here is the copy of the post quoted:
hello

i have a problem with several as400.

If I execute the check in CLI I have correct results but I have to press CTRL+C to close it.

i see this answer but i can't get it to work.


* Nagios user may need to use IBM default sign-on display file
Or change nagiso user to other subsystem description to use system default display file(QSYS/QDSIGNON)


or
modify check_as400_lang.java
change this line

public String LOGIN_SCREEN="System . . . . .";

"System . . . . ." to fit your sigon menu

and recompile it.


for this option "change this line------public String LOGIN_SCREEN="System . . . . ."; "System . . . . ." to fit your sigon menu.
i don't understand the expected value
Owner's reply
You can check your Sign On screen. look like this.
Sign On
System . . . . . : ZZZZZZ
Subsystem . . . . : QINTER
Display . . . . . : QPADEVxxxxx

Change text value "System . . . . ." and recompile it
Let us know how that looks,
Perry

Re: Plugin "check_as400" does not release the prompt

Posted: Wed Feb 02, 2022 12:09 pm
by dberlenda
Hello Perry ,
I have already tried to apply without success the suggestion in the link https://exchange.nagios.org/directory/P ... 00/details .

The plugin sent the logout to as400 but the session does not end ....

I try to unload a screenshot of the plugin starts in debug mode

Thanks
Davide

Re: Plugin "check_as400" does not release the prompt

Posted: Thu Feb 03, 2022 12:08 pm
by pbroste
Hello @dberlenda

this morning. The consensus from around the room is that we do not have an IBM AS400 to test with, making it difficult to diagnose further, if not impossible.

Want to recommend reaching out to the 'check_as400' plugin developer for further dialog to see if they can help further.

Appears that this command will provide verbose debug logging:

Code: Select all

check_as400  -D  -H x.x.x.x -v DISK > debug.log
Please let us know if you have further questions,
Perry

Re: Plugin "check_as400" does not release the prompt

Posted: Tue Feb 08, 2022 10:27 am
by dberlenda
Hello ,
in attacked the plugin output created with the parameter -D in the command line .

./check_as400 -D -H xxx.xxx.xxx.xxx -v LOGIN > check_login.log

Thanks in advance

Re: Plugin "check_as400" does not release the prompt

Posted: Tue Feb 08, 2022 5:05 pm
by pbroste
Hello @dberlenda

Hopefully someone viewing forum posts will follow up, we see the following:
  • We see the login, and completed... does it's checking thing....
  • Logging out
    • sending F3
    • waiting for token
  • Buffering with info....
  • token received
  • requesting signoff
  • waiting for token system .... ...
Appears that it is missing the final handshake from the as400, but that is my take. Does anyone else want to chime in on this one?

Thanks,
Perry