<P>
Dear all,<BR>
I guess there is no solution for getting Nagios work in betn. two OS as I have not got any reply in 3 days.<BR>
Well I have tried to work out one solution,its through check_by_ssh plugin wherein i am trying to run the commands through it <BR>
in the remote system(Solaris-OS) and give me the output in Nagios(Nagios-OS).But the problem That i am getting is that i am <BR>
getting proper output when i run the command on command line as Nagios user but when i restart the Nagios service and see it<BR>
in GUI it basically gives me only first line of output.Same behaviour happens in the command line also if i remove the -O<BR>
option but after giving that it works fine in command line but no improvement in GUI mode .<BR>
My configuration is as follows:<BR>
<BR>
define command {<BR>
command_name solaris_disk_check<BR>
command_line $USER1$/check_by_ssh -H xxx.xxx.xxx -l root -C 'df -k' -n solaris-disk-check -s solaris-disk-check -O $USER1$/test<BR>
}<BR>
<BR>
Command line output:<BR>
[nagios@nagios libexec]$ id<BR>
uid=501(nagios) gid=501(nagios) groups=501(nagios),502(nagcmd)<BR>
[nagios@nagios libexec]$ /usr/local/nagios/libexec/check_by_ssh -H xxx.xxx.xxx -l root -C 'df -k' -n solaris-disk-check -s <BR>
solaris-check-disk -O /usr/local/nagios/libexec/test<BR>
Filesystem kbytes used avail capacity Mounted on<BR>
/dev/md/dsk/d10 5040814 4140918 849488 83% /<BR>
/proc 0 0 0 0% /proc<BR>
mnttab 0 0 0 0% /etc/mnttab<BR>
fd 0 0 0 0% /dev/fd<BR>
/dev/md/dsk/d30 4032504 3450385 541794 87% /var<BR>
swap 2248192 168 2248024 1% /var/run<BR>
swap 2254928 6904 2248024 1% /tmp<BR>
/dev/md/dsk/d50 1984564 1660404 264624 87% /export<BR>
/dev/md/dsk/d40 1488787 111161 1318075 8% /opt<BR>
[nagios@nagios libexec]$<BR>
<BR>
GUI Output:<BR>
Filesystem kbytes used avail capacity Mounted on <BR>
<BR>
Both check_by_ssh plugin and test file are in /usr/local/nagios/libexec=$USER1$ directory<BR>
<BR>
Also how would i make the nagios get a warning status for %age amount of disk free etc. b'cos check_by_ssh plugin has option<BR>
for warning/critical only on response time which is not useful for my situation.<BR>
<BR>
Plz suggest.<BR>
<BR>
Thanks.<BR>
Vivek.<BR>
<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>