orca68
1
When I issue the command
check_oracle_writeaccess.sh TNSNAME USER PASSWORD TABLENAME
I get the result
OK - 1 row created, 1 row deleted
But Nagios insists that the check returned no output!
Likewise the check_ping facility
check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
from Nagios Plugins gives
/bin/ping -n -U -w 10 -c 1 192.168.0.2
CRITICAL - Could not interpret output from ping command
Does anybody know what to do or where I went wrong?
System is a CentOs (RH-FC4) with nagios 1.2
Greetings W.
luca
2
are issuing the commands as user nagios or root?
Luca
orca68
3
Hi Luca!
[quote=“luca”]are issuing the commands as user nagios or root?
Luca[/quote]
both as root and as nagios user.
and both get the same results.
Any ideas?
I suspect you haven’t configured the .cfg files correctly.
resource.cfg
$USER1$=/usr/local/nagios/libexec
checkcommands.cfg
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 2
}
services.cfg
check_command check_ping!200.0,20%!500.0,60%