Hi there,
Just wanting some assistance on setting up this plugin. We've followed the steps listed here: https://www.ibm.com/support/pages/node/1166188
when trying to configure a new host to monitor using the IBM I wizard, it prompts us with an error (attached image)
Do we have to configure the commands manually? as stated here?
=========================================================================================================================
COMMANDS
---------------------------
The commands automatic initialization only available for Nagios Core for now. For Naigos XI, users can only initialize the commands manually using the Nagios XI's CCM(Core Config Manager) GUI interface.
Notice that the parameter -M is case sensitive
command_name check-ibmi-cpu-utilization
command_line /bin/bash $USER1$/check_ibmi_status.sh -M CPU -H $HOSTADDRESS$ -W $ARG1$ -C $ARG2$
command_name check-ibmi-active-job-num
command_line /bin/bash $USER1$/check_ibmi_status.sh -M ActiveJobs -H $HOSTADDRESS$ -W $ARG1$ -C $ARG2$
etc..
Thanks in advance.
Nagios IBM i plugin - Setup Assistance
-
crystal.then
- Posts: 57
- Joined: Mon Oct 27, 2014 12:05 am
Nagios IBM i plugin - Setup Assistance
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios IBM i plugin - Setup Assistance
Hi @crystal.then,
No problem. While I don't have an IBM i system to connect/test on, this looks like a common configuration error. Have you tried running the commands directly from the CLI to make sure they are returning correctly?
Nagios XI - How To Test Check Commands From The Command-line
For more data on what's causing the error, please run the following tail command, and re-run the wizard, then post the full output to the thread so we can review the errors.
Thanks,
Benjaamin
No problem. While I don't have an IBM i system to connect/test on, this looks like a common configuration error. Have you tried running the commands directly from the CLI to make sure they are returning correctly?
Nagios XI - How To Test Check Commands From The Command-line
For more data on what's causing the error, please run the following tail command, and re-run the wizard, then post the full output to the thread so we can review the errors.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Benjaamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
crystal.then
- Posts: 57
- Joined: Mon Oct 27, 2014 12:05 am
Re: Nagios IBM i plugin - Setup Assistance
Hi there,
Thanks for the reply. Just wanting to clarify firstly, we have to run the command via the GUI correct? to see anything on those logs you mentioned? Do we have to manually create the commands for the plugin? We've tried adding a host via the ibm i wizard but as you can see from the attached file "Capture 3" the check command is empty. When we actually try to add a command via CCM, when we select which plugin it's for, the GUI just freezes and won't do anything - as per the attached file called "Capture 3".
Appreciate your help on this.
Thanks
Carl
Thanks for the reply. Just wanting to clarify firstly, we have to run the command via the GUI correct? to see anything on those logs you mentioned? Do we have to manually create the commands for the plugin? We've tried adding a host via the ibm i wizard but as you can see from the attached file "Capture 3" the check command is empty. When we actually try to add a command via CCM, when we select which plugin it's for, the GUI just freezes and won't do anything - as per the attached file called "Capture 3".
Appreciate your help on this.
Thanks
Carl
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios IBM i plugin - Setup Assistance
HI Carl,
I would recommend using the Wizard to set this up, as it will be much easier. Running commands directly from the CLI is a useful troubleshooting method when you're not connecting or getting the right output back. This wizard passes arguments to check_ibmi_status.sh which then calls the java plugin.
If the host is inheriting the check command from a template, then the check command field will not populate. However, you can get his information by clicking on View Config under the actions menu in the CCM.
Please delete this object ( don't worry the system will maintain the last 10 config snapshots if you need to revert, go to CCM > Quick Tools > Config Snapshots), run the tail command below, and then re-run the wizard and post the output if it's not successful.
Also, on Step 2 of the Wizard, make sure to select the services to check and then either use the default thresholds or add your own.
Regards,
Benjamin
I would recommend using the Wizard to set this up, as it will be much easier. Running commands directly from the CLI is a useful troubleshooting method when you're not connecting or getting the right output back. This wizard passes arguments to check_ibmi_status.sh which then calls the java plugin.
If the host is inheriting the check command from a template, then the check command field will not populate. However, you can get his information by clicking on View Config under the actions menu in the CCM.
Please delete this object ( don't worry the system will maintain the last 10 config snapshots if you need to revert, go to CCM > Quick Tools > Config Snapshots), run the tail command below, and then re-run the wizard and post the output if it's not successful.
Also, on Step 2 of the Wizard, make sure to select the services to check and then either use the default thresholds or add your own.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
crystal.then
- Posts: 57
- Joined: Mon Oct 27, 2014 12:05 am
Re: Nagios IBM i plugin - Setup Assistance
Hi there,
Thanks for your help on this - We've managed to fix this now and can setup hosts with these checks. Not really an issue but the status message whether the status of the check is OK, warning or critical, is "JDBC connection pool reset timer started". is there any way of omitting this message? so that the check actually displays OK, warning or critical? I've attached a capture for clarity.
Thanks
Thanks for your help on this - We've managed to fix this now and can setup hosts with these checks. Not really an issue but the status message whether the status of the check is OK, warning or critical, is "JDBC connection pool reset timer started". is there any way of omitting this message? so that the check actually displays OK, warning or critical? I've attached a capture for clarity.
Thanks
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios IBM i plugin - Setup Assistance
Hi,
That message is coming directly from the plugin output, so it's controlled by the code within the plugin. I would recommend opening an issue/request on the GitHub repo this the plugin and a developer can take a look. Here's a link to that page:
https://github.com/IBM/nagios-for-i/issues
--Benjamin
That message is coming directly from the plugin output, so it's controlled by the code within the plugin. I would recommend opening an issue/request on the GitHub repo this the plugin and a developer can take a look. Here's a link to that page:
https://github.com/IBM/nagios-for-i/issues
--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
crystal.then
- Posts: 57
- Joined: Mon Oct 27, 2014 12:05 am
Re: Nagios IBM i plugin - Setup Assistance
Hi there,
We need to monitor if subsystems on the IBM i LPAR are active. What would be the best way to configure that on Nagios with this plugin if at all possible?
Thanks
We need to monitor if subsystems on the IBM i LPAR are active. What would be the best way to configure that on Nagios with this plugin if at all possible?
Thanks
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios IBM i plugin - Setup Assistance
Hi,
This particular plugin is developed and maintained by IBM. However, there's a public GitHub repo available, and I would recommend
reaching to the development team for a feature enhancement.
GitHub: https://github.com/IBM/nagios-for-i
Nagios Exchange as there could be a community plugin.
Regards,
Benjamin
This particular plugin is developed and maintained by IBM. However, there's a public GitHub repo available, and I would recommend
reaching to the development team for a feature enhancement.
GitHub: https://github.com/IBM/nagios-for-i
Currently, we do not have an IBM i system available for testing, so I have limited resources here, but I would also look on theCPU Retrieve the CPU utilization for the entire system
SpecificJobCPU Retrieve the CPU usage for a specific job
DiskUsage Retrieve the disk usage status
DiskConfig Retrieve the disk health status
ASPUsage Retrieve the ASP usage percentage of the entire system
ActiveJobs Retrieve the number of active jobs on the system
BasicInfo Retrieve the basic information of an IBM i system
CurSignOnUsers Retrieve the number of users that currently log on to the system
LongRunSQL Retrieve the longest running SQL
Message Retrieve the messages from a specific message queue
SpecificMessage Retrieve the status whether a specific message ID is found in a specific message queue
PageFaults Retrieve the page faults
SubsystemJobs Retrieve job information in a specific subsystem
CustomSQL The user could leverage SQL services to create self-defined matrix
TempStorageJobs Retrieve top N jobs that have the most temp storage usage
DaemonServer Retrieve the daemon server status
Nagios Exchange as there could be a community plugin.
Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!