Status Information (null) - using Syabru Nagios Message Broker

Parkman, Mikhail Mikhail_Parkman at cable.comcast.com
Wed Mar 28 03:01:50 CEST 2012


Hello,

I am trying to use nagios-msg-broker-0.0.4 from
http://snippets.syabru.ch/nagios-msg-broker/.
I  unzipped plugin and moved to the the /usr/local/nagios/libexec directory

nagios-msg-broker.sh   # file
config.xml                           #file
lib                                           #directory

content of the nagios-msg-broker.sh file is
=================
#!/bin/sh

java -DnagiosCommandFile=/usr/local/nagios/var/rw/nagios.cmd \
     -DconfigFile=./config.xml \
     -jar lib/nagios-msg-broker-0.0.4.jar
==================
Content of the config.xml file is
=============
<?xml version="1.0" encoding="UTF-8"?>
<nmb:xmlConfiguration xmlns:nmb="http://www.syabru.ch/nagios-msg-broker/1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://www.syabru.ch/nagios-msg-broker/1.0
    http://snippets.syabru.ch/nagios-msg-broker/schema/nagios-msg-broker-1_0.xsd">

  <nmb:jmx>
    <nmb:mBeanServer>
      <nmb:jmxServiceUrl>service:jmx:rmi:///jndi/rmi://mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi</nmb:jmxServiceUrl>
      <nmb:notification>
        <nmb:objectName>com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts</nmb:objectName>
        <nmb:match/>
        <nmb:action>
          <nmb:processServiceCheckResult>
            <nmb:hostName>localhost</nmb:hostName>
            <nmb:serviceDescription>processServiceCheckResult: UsageStats passive check</nmb:serviceDescription>
            <nmb:returnCode>0</nmb:returnCode>
            <nmb:pluginOutput>Passive check is OK</nmb:pluginOutput>
          </nmb:processServiceCheckResult>
          <nmb:scheduleServiceCheck>
            <nmb:hostName>localhost</nmb:hostName>
            <nmb:serviceDescription>scheduleServiceCheck - serviceDescription: UsageStats passive check</nmb:serviceDescription>
          </nmb:scheduleServiceCheck>
        </nmb:action>
      </nmb:notification>
    </nmb:mBeanServer>
  </nmb:jmx>

</nmb:xmlConfiguration>
=========================
When I run manually from /usr/local/nagios/libexec

./ nagios-msg-broker.sh

I get the output:
===================
[root at mypc libexec]$ ./nagios-msg-broker.sh
2012-03-27 17:22:46,908 INFO  ConfigurationImpl - Reading configuration [file [/usr/local/nagios/libexec/./config.xml]])
2012-03-27 17:22:46,933 DEBUG ConfigurationImpl - Created JMX listener [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]
2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ProcessServiceCheckResultCommandFactory]
2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ScheduleServiceCheckCommandFactory]
2012-03-27 17:22:47,081 INFO  Version - Syabru Nagios Message Broker - Version 0.0.4
2012-03-27 17:22:47,081 INFO  Version - Copyright 2010 - 2012 Felix Roethenbacher
2012-03-27 17:22:47,396 INFO  JmxMessageListener - Registered JMX notification listener [JMX listener service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]
2012-03-27 17:22:55,979 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]]
2012-03-27 17:22:55,980 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]]
2012-03-27 17:22:55,981 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]]
2012-03-27 17:22:55,982 DEBUG MessageHandlerImpl - Matching actions found: 2
2012-03-27 17:22:55,982 DEBUG ProcessServiceCheckResultCommand - [1332894175] PROCESS_SERVICE_CHECK_RESULT;localhost;processServiceCheckResult: UsageStats passive check;0;Passive check is OK

2012-03-27 17:22:55,982 DEBUG ScheduleServiceCheckCommand - [1332894175] SCHEDULE_SVC_CHECK;localhost;scheduleServiceCheck - serviceDescription: UsageStats passive check;1332894175

2012-03-27 17:23:05,968 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 694b081b[className=javax.management.Notification,message=No requests received from any CASMR for 2205 ms.,type=NoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]]
=====================
>From /usr/local/nagios/objects /commands.cfg on the monitoring machine among others are
======================
define command{
        command_name                     dlg_notifications
        command_line                          $USER1$/nagios-msg-broker.sh
        }
===================
>From /usr/local/nagios/etc/dlg/mypc.cfg on the monitoring machine among other are:
==============
define host{
        use                                                 remote-linux-server
        host_name                                 mypc.abc-d.efg.hhhhhhhh.net
        alias                                               mypc
        address                                        22.333.44.55
        passive_checks_enabled     1
        }

define service {
        name                                            mypc
        use                                                 remote-service
        host_name                                 mypc.abc-d.efg.hhhhhhhh.net
        }

define service{
        use                                                                 mypc
        service_description                                dlg_Alerts_notifications
        check_command                                     dlg_notifications
       passive_checks_enabled                      1
        }
========================
>From /usr/local/nagios/etc/nagios.cfg among other are
=================
check_external_commands=1
command_check_interval=15s
command_file=/usr/local/nagios/var/rw/nagios.cmd
log_passive_checks=1
accept_passive_service_checks=1
=====================
Here are the ownerships/permissions of the key players:
===================
In /usr/local/nagios/libexec:
===================
-rwxr-xr-x  1 nagios nagcmd    149 Mar 26 11:58 nagios-msg-broker.sh
drwxr-xr-x  4 nagios nagcmd   4096 Mar 26 12:05 lib
-rwxr-xr-x  1 nagios nagcmd   1361 Mar 26 11:59 config.xml
===================
In /usr/local/nagios/var/rw
=============
prw-rw---- 1 nagios nagios 0 Mar 27 17:48 nagios.cmd
=============
When I login to nagios monitoring machine through the web,
All my other checks that I didn't mention here run fine.
For the above mentioned service, for mypc target machine, I see the following
Under column "service: dlg_Alerts_notifications
Under column "Status": Warning
Under column "Last Check": 03-27-2012 17:53:53
Under column "Duration": 0d 4h 2m 19s
Under column "Attempt": 3/3
Under column "Status Information": (null)
==============
Can you please provide me with information to how get rid of the (null) in the "Status Information" column and get there meaningful data?

Thanks.
Mikhail.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120328/419321b1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list