Nagios - Misc

If we start nrpe as root, it may not work correctly if nrpe depends on some environment variable. To get around this issue, we must become the nagios user and start nrpe:

su -l nagios
/usr/local/nagios/libexec/nrpe -c /etc/nrpe.cfg -d

useradd nagios
Compile and install nagios plugins on the remote box
Compile and install nrpe on the remote box

./configure —enable-command-args
make all
cp src/nrpe /usr/local/nagios/libexec
cp src/check_nrpe /usr/local/nagios/libexec
cp sample-config/nrpe.cfg /etc
chown nagios.nagios /etc/nrpe.cfg
/usr/local/nagios/libexec/nrpe -c /etc/nrpe.cfg -d


/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg



echo -n "" > /usr/local/nagios/var/nagios.log
echo -n "" > /var/log/nagiosgraph.log
echo -n "" > /var/spool/nagios/perfdata.log
touch /var/spool/nagios/perfdata.log
chown nagios.nagios /var/spool/nagios/perfdata.log

/nagiosgraph/show.cgi?host=$HOSTNAME$&service=$ SERVICEDESC$&db=load,avg1min,avg5min,avg15min&geom=500x100&rrdopts=%2Dl%200%20%2Du %2010%20%2Dt%20CPU%2DLoa

When the daemon receives a request to return the results of <command_name>, it will execute the command specified by the <command_line> argument. Unlike Nagios, the command line cannot contains macros - it must be typed exactly as it should be executed.

Also note that you will have to modify the definitions below to match the argument format the plugins expect.

The following examples allow user-supplied arguments and can only be used if the NRPE daemon was compiled with support for command arguments *AND* the dont_blame_nrpe directive in this config file is set to '1'

command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$

In order to use the check_nrpe plugin, you'll have to define a few things in the host config file. (See the README file).

In any service definitions that use the nrpe plugin to get their results, you would set the service check command portion of the definition to:

check_command check_nrpe!yourcommand

where yourcommand is the name of a command that you define in your nrpe.cfg file on the remote host

select count(*),eStatus from cc_member where iMemberId in (SELECT clinicalcafe_iMemberId from quantros_users_clinicalcafe) group by eStatus;
select count(*),dDate from cc_member where iMemberId in (SELECT clinicalcafe_iMemberId from quantros_users_clinicalcafe) group by dDate;



clinical_cafe / iradcle (Graphic and template is provided by his friend. Senthil work on the backend smarty)

This operation is not allowed
#search="foo" // Display PDF in "find" mode
#page=n // Cause PDF to display page n

Set the style of the iframe to be invisible, and after it is loaded, set its style to visible again (The AddThis popup at the top should not be displayed behind the PDF. This is mostly an IE-only bug) See

When we click on Share, can it open the menu in a regular popup window?
Use iframe inside iframe (the first iframe load an html page which embed the pdf)
Hack addthis so that when click it open the popup inside an iframe
Can we use swfobject to embed PDF?
Can we set the wmode for PDF?
Instead of iframe, use object or embed tags

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License