[NAGIOS] problems with mainscript and subscript
Hi all
I've made a mainscript and a subscript that must be implemented in NAGIOS. What do those scripts do, well: situation: the mainscript makes connection to a remote server, then it copies another script (=subscript) to it and executes it, then the result of that subscript is redirected to a variable on the local server where the mainscript can do something with it (e.g. if the variable contains a 1 -> OK, 2 -> WARNING, ...) code: Code:
mainscript Code:
#!/usr/bin/ksh Code:
niks aan de hand so, can anyone say what i'm doing wrong (i'm not experienced with NAGIOS, i'm a first-timer to this ;)) is it also possible to copy another script in a NAGIOS plugin? I know it's a lot of information/code and it can be a little tricky to answer, but i hope you guys are up for the challenge :D Thx |
can anyone explain this ?
Code:
use vars qw($host $opt_V $opt_h $opt_v $verbose $PROGNAME $pattern $opt_p $mmin $opt_m $opt_w $opt_e $opt_c $opt_t $opt_H $status $state $msg $msg_q $MAILQ $SHELL $device $used $avail $percent $fs $blocks $CMD $RMTOS); it's written in PERL and i don't know anything about perl |
All times are GMT -5. The time now is 11:43 AM. |