[Nagiosplug-help] solaris10 running nrpe under SMF. scripts withbackticks = no output
Stevens, Michael
Michael_Stevens at affymetrix.com
Wed Sep 3 17:24:57 CEST 2008
I think your giving SMF more credit than its due ;-). I can reproduce
your results with nrpe 2.12 on both Solaris 10, and Solaris 9 (no SMF
framework). The same script works fine on Linux. It looks more like a
nrpe Solaris specific bug than a SMF issue.
--
Mike
From: nagiosplug-help-bounces at lists.sourceforge.net
[mailto:nagiosplug-help-bounces at lists.sourceforge.net] On Behalf Of
Justin Amburn
Sent: Thursday, August 28, 2008 1:04 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] solaris10 running nrpe under SMF. scripts
withbackticks = no output
I'm stumped. I have some Solaris 10 servers that I compiled and have
running. CPU, disk space and some other plugins are working, as long as
they don't rely on backticks in the script. If it does, I can't get any
output back to the nagios host.
I was troubleshooting the check_oracle plugin and eventually tracked it
down to being an issue all scripts that contain backticks.
Even the most simple script returns no output back to the nagios
host(yet it will work of course if run as user nagios from the ssh
console on the Solaris server):
ie.
#! /bin/sh
test=`ps`
echo "$test"
exit
should return (and does while logged on as nagios on the Solaris 10
box):
# ./check_test
PID TTY TIME CMD
24186 pts/2 0:00 ps
24184 pts/2 0:00 bash
24183 pts/2 0:00 sh
24185 pts/2 0:00 check_te
but this doesn't get back to the Nagios host because something between
SMF and nrpe is preventing backticks results from being stored into
variables.
I have tried changing nrpe service so it doesn't inherit the env, and
have tried giving the nagios account extra permissions as a service
account. Still no luck.
Has anyone dealt with this issue before?? The Solaris security model is
driving me bonkers. Any help would be much apprecated!
-J
------------------------------------------------------------
This transmission is intended for the sole use of the individual
and entity to whom it is addressed, and may contain information
that is privileged, confidential and exempt from disclosure under
applicable law. You are hereby notified that any use,
dissemination, distribution or duplication of this transmission by
someone other than the intended addressee or its designated agent
is strictly prohibited. If you have received this transmission in
error, please notify the sender immediately by reply to this
transmission and delete it from your computer.
More information about the Help
mailing list