Check issues on Solaris with NRPE not dealing with ARGS

Brian O'Mahony brian.omahony at curamsoftware.com
Wed Aug 12 14:54:26 CEST 2009


Im setting up nagios to monitor a number of Solaris servers. I am going to be testing processes, load etc, however a lot of my tests are not working. I installed the SUN SPARc package with all the precompiled checks.

On my solaris machine, tests work as nagios user (there was an issue with check_procs, but that was fixed with a new release of the check on monitoring-exchange):

bash-3.00$ ./check_load -w 1,1,1 -c 2,2,2
OK - load average: 0.05, 0.05, 0.05|load1=0.051;1.000;2.000;0; load5=0.051;1.000;2.000;0; load15=0.047;1.000;2.000;0;
bash-3.00$ ./check_procs -w 100 -c 150
PROCS OK: 62 processes
bash-3.00$ id
uid=112(nagios) gid=105(nagios)

>From the nagios-server (running as either root or nagios):

[root at nagios-server servers]# /usr/local/nagios/libexec/check_nrpe -H beatrix -c check_load -a 1,1,1 2,2,2
OK - load average: 0.05, 0.05, 0.05|load1=0.051;1.000;2.000;0; load5=0.051;1.000;2.000;0; load15=0.047;1.000;2.000;0;
[root at nagios-server servers]# /usr/local/nagios/libexec/check_nrpe -H beatrix -c check_procs_total -a 100 150
PROCS OK: 66 processes


Secondly, even though check_load works remotely, it doesn't seem to work in the nagios server tests. Here is my test entry:
# Check CPU Load
define service{
use                     solaris-service-base
hostgroup_name          solaris-base-hostgroup
service_description     CPU Load
check_command           check_nrpe!check_load!1,1,1!2,2,2
#check_command           check_nrpe!check_load!15,10,5!30,25,20
}

# Check Total Processes
define service{
use                     solaris-service-base
hostgroup_name         solaris-base-hostgroup
service_description     Total Processes
check_command           check_nrpe!check_procs_total!150!200
}

And from the nrpe.cfg on the remote server:
command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$
command[check_procs_total]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$

However if I add
command[check_procs_total2]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_load2]=/usr/local/nagios/libexec/check_load -w 1,1,1 -c 2,2,2

These tests show up as OK on the nagios server.

So it looks like the args are not being passed to the solaris box. I just don't understand what im doing wrong here. (I am also looking at check_mem and check_users but have forgon those until I get the issue with the ARGS resolved)

Aby ideas?

B


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090812/dc56a478/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- 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