Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me



bySetti, January 12, 2017
0 of 1 people found this review helpful
Hi all.
The plugin extract the needed data, but the amount of output can be confusing.
For example, checking all memory banks will return the correct status, but the first line will always correspond to the first DIMM.
Instead, you should use the first line to give an overview of the status (i.e. checking all memory could return: "WARNING - Dimm3 nonok"), and then all the other output lines to give the status of each component. In this way, SMS and other messages will return the correct component with warn or crit state.
Owner's reply

Hi, script is not intended to be used this way, it was intended to check only one device, i.e one Memory dimm at a time.

ModGearman XI Manager
Very nice software, it gives the ability to change worker options and check status of each, but it doesn't support systemctl yet, only initd.
The best thing to do IMO would be to add to the cfg array in modgearmanxi.config.inc.php a key like 'bootmgr' with values 'initd' or 'systemctl' to handle this.

for now, to enable it for systemctl i did the following:

On the worker server:
Added the following to /etc/sudoers with command "visudo" (at the bottom of the file):
myuser ALL = NOPASSWD: /usr/bin/systemctl start mod-gearman2-worker
myuser ALL = NOPASSWD: /usr/bin/systemctl stop mod-gearman2-worker
myuser ALL = NOPASSWD: /usr/bin/systemctl restart mod-gearman2-worker

NOTE: change "myuser" to whatever user you configured on setup.sh
This enables remote ssh to sudo the command on the worker without asking for a pw.

On the XI Server:

cd /usr/local/nagiosxi/html/includes/components/modgearmanxi/

Changed modgearmanxi.config.inc.php:
in each entry in the array i put the following:
'initd' => 'mod-gearman2-worker.service'

Changed modgearmanxi.php:
1) replaced function service_status with the following:
function service_status($user, $host, $script, &$return_output) {
exec_ssh_command($user, $host, "systemctl status $script", $output, $return_var);
$output = $output[2];
if ($return_var == 0) {
$return_output = $output;
if (strpos($output, "Active: active") !== false)
return true;
} else {
if (strpos($output, "Active: inactive") !== false)
$return_output = $output;
$return_output = "Unknown error running service control script";
return false;

2) replaced function control_worker with the following:
function control_worker($action) {

global $gearmanxi_cfg;
global $errors;
$worker_id = base64_decode(grab_request_var("worker_id", ""));
if ($worker_id === false) {
$errors[] = "Attempted to control worker with no worker specified";
return false;

// make sure user input sane
if ($action !== "start" && $action !== "restart" && $action !== "stop") {
$errors[] = "Available options for service control: start/restart/stop";
return false;

$worker = $gearmanxi_cfg["worker"][$worker_id];
exec_ssh_command($worker["user"], $worker["ip"], "sudo systemctl $action " . $worker["initd"], $output, $return_var);
if ($return_var == 0)
return true;

return false;

Owner's reply

This has been updated in the most recent version. Thanks!

bySetti, February 2, 2015
1 of 1 people found this review helpful
Monitor DB2 with Nagios
I found it very useful, but found some errors:
in check_hadr_status, line n. 290 is wrong: COMMAND_HADR="db2pd -db wfscpd -hadr" should be:
COMMAND_HADR="db2pd -db ${DATABASE_NAME} -hadr".
On all plugins, you don't return the name of the database, but if you want to run many checks at the same time with check_by_ssh plugin, you will absolutley need to know which control gives which result.
To do so, i modified line 360 adding ${DATABASE_NAME} before ${OUTPUT}, but i think you can find a better solution to that.
Owner's reply

Hi @Setti, thank you for the feedback. I have not realized the problem you noticed.
I have corrected the database name problem.
For the other case, I do not know why do you need the database name. You are passing this value as parameter, with NRPE or with SSH execution. If you want to discuss more about this issue, please create a ticket at: https://github.com/angoca/monitor-db2-with-nagios/issues
Finally, I am working in a new set of Nagios plugins for DB2: https://github.com/angoca/db2-jnrpe This has a better structure, historical information and less overhead.

bySetti, May 13, 2013
0 of 1 people found this review helpful
Nagios XI RSS Notification Component
Hi. It's a good app: and a different interface to be alerted about problems. I don't know if it's a problem of my RSS viewer (Lotus Notes 8.5.3), but on every status change, it opens up a new thread, instead of closing the old ones. This floods continuously the client.
bySetti, September 18, 2012
I'm using this plugin to get some SNMP data from our UPS, because Frequency and other data are integer values, but must be divided by 10 to get the real value (IE a value of 505 -> 50,5 Hz).
When do you plan to integrate threshold ranges? i need to checkof example that input frequency keeps between 40 and 60Hz. How can i do it without ranges?