check_by_ssh and currently logged users
ah43 at httpsite.com
ah43 at httpsite.com
Wed Mar 5 18:02:07 CET 2003
> The attempt of processing the 'ps aux' output on the remote machine with the
> command:
>
> ./check_by_ssh -H remote_hostA --command='/bin/ps aux | egrep -vw
> 'USER|root|postfix|daemon|rpc|xfs' | cut -f1 -d\ | sort | uniq -c | tr -s
> '\t
> \n' ' ,''
>
> ends up with the errors like
Escape your quotes. The ' quote before USER is a closing quote of the one
after --command=
--
Andy Harrison
ah##@httpsite.com
ICQ: 123472 AIM/Y!: AHinMaine
homepage: http://www.nachoz.com
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
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