Questions about IBMi plugin for Nagios.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ptsmit
Posts: 7
Joined: Wed Mar 06, 2024 2:27 pm

Questions about IBMi plugin for Nagios.

Post by ptsmit »

Is there anybody who knows how host user profiles are working and what the connection is with the hostname or IP addresses working with the IBMi plugin for Nagios.
And YES I have the standard explanations found on the WWW. It's also not clear how to add parameters to these commands.

Or a (short) manual how to place parameters within the service definitions eg for warning and critical leves for disk usage?

I'm using the Nagios core module with the IBMi plugin correctly installed on a Linux server running on powersystem.

Host definition:
This check is working fine.
#####################################################
# HOST DEFINITION #
#####################################################


define host {
host_name hostname
alias hostname
address ip-address
max_check_attempts 3
check_period 24x7
check_command check-host-alive
check_interval 5
contact_groups IBMi-Contacts
notification_interval 60
notification_period 24x7
}


Service definitions:
This service is also running okay on two of three hosts (one host gives an error "Error - CPFB003: Certificate store password is not valid. "
#####################################################
# Diskconfig Check #
#####################################################
define service {
hostgroup_name IBMi_servers
service_description Check Diskconfig
check_command check-ibmi-disk-config
max_check_attempts 3
check_interval 5
retry_interval 3
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options w,c,r
notifications_enabled 1
contact_groups IBMi-Contacts
}

On the third host I get

[nagios@<nagioshost> objects]$ /bin/bash /usr/local/nagios/libexec/check_ibmi_status.sh -M DiskConfig -H 10.181.12.245
Error - CPFB003: Certificate store password is not valid.

com.ibm.nagios.util.QYHCHCOP.run(QYHCHCOP.java:59)
com.ibm.nagios.service.impl.DiskConfig.execute(DiskConfig.java:63)
com.ibm.nagios.RequestHandler.CollectStatus(RequestHandler.java:29)
com.ibm.nagios.RequestHandler.process(RequestHandler.java:16)
com.ibm.nagios.CheckIBMiStatus.run(CheckIBMiStatus.java:18)
com.ibm.nagios.ConnectToSystem.run(ConnectToSystem.java:64)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:834)
[nagios@SUCENA53 objects]$


All other services aren't working at all, giving a java error.
Exception - java.lang.NullPointerException.
Al definitions are the same as the firts definition which is working okay.

#####################################################
# Basic Info Check #
#####################################################
define service {
hostgroup_name IBMi_servers
service_description Check Basic info
check_command check-ibmi-basic-info
max_check_attempts 3
check_interval 5
retry_interval 3
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options w,c,r
notifications_enabled 1
contact_groups IBMi-Contacts
}


When running the command directly from the commandline it al works perfectly
eg.

/bin/bash /usr/local/nagios/libexec/check_ibmi_status.sh -M BasicInfo -H <hostname>
Gives me the versionnumber of the systemsoftware running on that machine.

See attachment.
Nagios testservers.JPG
Hopefullly I described the problem clearly enough. If not please respond. Thanks in Advance.
gwesterman
Posts: 97
Joined: Wed Aug 23, 2023 11:29 am

Re: Questions about IBMi plugin for Nagios.

Post by gwesterman »

Hi @ptsmit,

Assistance on this issue may be limited as it is potentially caused by an external plugin. All I can think to do is to run through the steps outlined here 1 to 1 and verify whether or not you still run into the same issue. Specifically, I would verify that running the provided config file setup script (/bin/bash /usr/local/nagios/libexec/ibmi_init.sh) has the same problem or not. If it doesn't then there is most likely something wrong with your configuration files. I apologize if you've already done this (and/or your config files provided are from this script already), but this is the first thing I would try.

Also ensure you did not miss this step: "you need to make sure to set the password level of the Dedicated Service Tools (DST) to level 2 in SST of your monitored system".
ptsmit
Posts: 7
Joined: Wed Mar 06, 2024 2:27 pm

Re: Questions about IBMi plugin for Nagios.

Post by ptsmit »

Hi gwesterman,

Thanks for you reply.

Yes all the start scripts are created with the ibmi_init.sh script.
Also all the SST pwd levels are on level 2.

I'lll keep searching. Thanks again for replying.

Grt. Tom.
ptsmit
Posts: 7
Joined: Wed Mar 06, 2024 2:27 pm

Re: Questions about IBMi plugin for Nagios.

Post by ptsmit »

I solved the problem. It has to be on de local host because the commands are working fine from the commandline.

My first definition (e.g. for basic info) in the cfg file was:

check_command check-ibmi-basic-info

That should be:

check_command check-ibmi-basic-info!BasicInfo

I don't see the logic of it and I will also not try to. But it works now.

Another example is :
Old:
check_command check-ibmi-cpu-utilization!80!90

Corrected:
check_command check-ibmi-cpu-utilization!CPU!80!90

In de cfg file you put on the check_command line de command ("check-ibmi-cpu-utilization") and the first parameter must be "CPU" and the second parameter must be warning-level and the third parameter must be the critical level in this case.
In my opinion it's a kind of double. "check-ibmi-cpu-utilization" and the first parameter "CPU". I thought is was clear that I want the cpu-utilization by using the command "check-ibmi-cpu-utilization" in stead of also adding the parameter "CPU".

But problem solved.

Hope this story is clear. If not please let me know by replying or pm me.
Al solved except on error message "Error - CPFB003: Certificate store password is not valid. " on one of our servers.
gwesterman
Posts: 97
Joined: Wed Aug 23, 2023 11:29 am

Re: Questions about IBMi plugin for Nagios.

Post by gwesterman »

Hi @ptsmit,

I'm glad you got your issue resolved! I wish I could have lent more assistance.

I am similarly surprised by the solution. It does seem quite redundant, and I cannot find anything in their documentation that points to it.

This post will certainly be handy for any future IBMi nagios users!
Locked