Hi again Philipp,
please check the "run_once" function in
This function registers and associates the nagios boot-service with the
About the documentation of the plugins-mechanism i would like to recommend
and to take a look at the sample-plugin. It should be self-explaining ;)
many thanks + best regards,
Philipp Wagner wrote:
> Am Donnerstag, 9. August 2007 12:49 schrieb Matt Rechenburg:
>> Hi Philipp,
>> Philipp Wagner wrote:
>>> I have some comments on the nagios plugin.
>>> When I clicked on a VE and then on "Nagios Uptime Chart" or any other
>>> nagios item, I got the error message "Hostname not set...". The hostname
>>> was set, the problem was somewhere else:
>>> 1. The permissions of /opt/qrm/sbin/qrm-cli were 700 root:root, but this
>>> script is called by the CGI => permission denied
>>> solution: chmod 755
>>> is there a reason for qrm-cli to be root-only?
>> eh, nope, i think it is just a wrong default permission on the qrm-cli
>>> 2. The qrm-cli script is given the username nagios with password nagios
>>> by the CGI, but this user didn't exist in my openQRM installation
>>> solution: add new user with username and password nagios
>>> (read-permissions are enough)
>>> shouldn't this be done by the install script?
>> currently (afaik) the nagios plugin is using a static set username + pass
>> ... which is really not the best.
>> Good point to fix this for the next release of the Nagios plugin
> Yes, it's set to a static combination of nagios:nagios.
> (see /opt/qrm/plugins/nagios/bin/listvenodes.sh)
>>> Well, there are still a couple more problems with nagios, but for now
>>> let's start with one: how is the NRPE agent supposed to get to the nodes?
>>> It's not
>> by an openQRM boot-service provided by the nagios plugin.
>> The flow is that the assigned node is coming up, checking which plugins
>> are enabled, checking its boot-services (which it gots per resource
>> downloaded via http from the openQRM-server to -> /var/qrm/conf/qrm.conf).
>> Accoring the enabled boot-services the node then downloads and installs
>> additional plugin packages e.g. the Nagios nrpe client from
>> Download, unpack and starting of the nrpe client "should" be done by
>> this mechanism.
>> (btw: in the same way the qrm-agents are installed and started on the
>> nodes) Could you please check which boot-services are enabled in
>> /var/qrm/conf/qrm.conf on the nodes ?
> I guss it's ok if the file is named /var/qrm/conf/qrm.conf.0
> There it says (and nagios is missing):
> So where does the BOOT_SERVICES line come from? :-)
> I'm sorry for asking sooo many questions, but is there somewhere a "big
> picture" documentation which explains some of the connections between the
> parts of openQRM? This would make debugging some problems much easier, but
> for now I have to go with grep most of the time as I have no idea where to
> start my search.
> Thanks again,
- Keeps your Data-Center Up and Running
Matt's blog - http://mattinaction.blogspot.com/