Question on setting up my own check
steve f
a31modela at hotmail.com
Tue Oct 19 23:08:03 CEST 2010
Spent some more time with it & now getting a little closer
I added this to my script on the dist server running the check:
CLOCK=`date +%s`
HOST=$1
SVC="Starlite Size"
STATUS=$3
OUTPUT=$4
Changed the following lines
exit 0 to STATUS=0
exit 1 to STATUS=1
exit 2 to STATUS=2
exit 3 to STATUS=3
the line(s)
echo "OK. Free Space: `sudo rsh $1 df -v |grep starlite6 |head -1 | awk '{print $5}'`B, $percent%"
to
OUTPUT="OK. Free Space: `sudo rsh $1 df -v |grep starlite6 |head -1 | awk '{print $5}'`B, $percent%"
running the script manually gives me :
[1287522364] PROCESS_SERVICE_CHECK_RESULT;strXXXX;Starlite Size;2;Critical. Free Space: 51050B, 2%
Up on the central server, I am still getting unknown but a value of null
Closer I think but still not there.
Does the central server have to have the exact same check script on it or in a passive check, does the central server only care about the results?
Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101019/dbc7302e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
-------------- 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