Questions about IBMi plugin for Nagios.
Posted: Thu Mar 14, 2024 2:42 am
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. Hopefullly I described the problem clearly enough. If not please respond. Thanks in Advance.
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. Hopefullly I described the problem clearly enough. If not please respond. Thanks in Advance.