Novell OES Linux Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Novell OES Linux Monitoring

Post by SavaSC »

I'm trying monitor a few items on a standard SLES 10 SP3 server. I had the error "NRPE: Command 'check_disk' not defined", but now I get "DISK CRITICAL - 20% is not accessible: No such file or directory"

My NRPE check command from XI is doing the following...

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

Here's what my disk looks like:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 52410560 8789080 43621480 17% /
udev 4089148 200 4088948 1% /dev
/dev/cciss/c0d0p3 216651156 146391936 70259220 68% /var/opt/novell
/dev/evms/DATA 314571776 249098284 65473492 80% /opt/novell/nss/mnt/.pools/DATA
admin 4096 0 4096 0% /_admin
DATA 314571776 248165696 65473492 80% /media/nss/DATA

And here is what I have in my nrpe.cfg...

#command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 <---gave the other error mentioned above
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$

On a side note these are monitoring fine:

User: USERS OK - 3 users currently logged in
PING: OK - 10.90.18.120: rta 0.618ms, lost 0%
Load: OK - load average: 0.06, 0.12, 0.09

And the rest of these monitoring tasks also fail:

Total Processes NRPE: Command 'check_procs' not defined
Swap Usage NRPE: Command 'check_swap' not defined
Open Files NRPE: Command 'check_open_files' not defined
Memory Usage NRPE: Command 'check_mem' not defined
CPU Stats NRPE: Command 'check_cpu_stats' not defined

I have verified all of the plugins exists under /usr/local/nagios/libexec/
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Novell OES Linux Monitoring

Post by tonyyarusso »

You need to have the arguments sent by check_nrpe and those expected by the nrpe daemon match. As it stands now, you are sending one argument ($ARG2$ to check_nrpe), but the daemon is expecting three ($ARG1$, $ARG2$, and $ARG3$ in your check_disk definition).

Try changing the daemon configuration to read:
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$

And use these values in your check_nrpe service:
$ARG1$ = check_disk
$ARG2$ = -a '-w 20% -c 10% -p /'

For the other services that are failing, you will need to create command definitions for them in the NRPE config. You can find sample ones that you can copy in the packages referenced from http://library.nagios.com/library/produ ... inux-agent.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked