Page 1 of 1
Running setup-linux.sh does nothing
Posted: Tue Feb 05, 2019 2:35 pm
by BanditBBS
When running the commands to add a linux file nothing happens. If I try and run the setup-linux.sh with the -h it doesn't even show the help screen. I am running RHEL 6.9 on the server I want to send a log.
Re: Running setup-linux.sh does nothing
Posted: Tue Feb 05, 2019 3:50 pm
by npolovenko
Hello,
@BanditBBS. Please try running the attached script instead.
Code: Select all
[root@centos7x64 tmp]# ./setup-linux.sh -s 192.168.0.100 -p 2056 -f "/var/log/messages" -t "nagios"
Your system $PATH does not include /sbin and /usr/sbin. This could be the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
Detected rsyslog 8.24.0
Detected rsyslog work directory /var/lib/rsyslog
Destination Log Server: 192.168.0.100:2056
Processing /var/log/messages file...
Creating /etc/rsyslog.d/89-nagioslogserver_var_log_messages.conf...
SELinux is disabled.
rsyslog configuration check passed.
Restarting rsyslog service with 'service'...
Redirecting to /bin/systemctl restart rsyslog.service
Okay.
rsyslog is running with the new configuration.
Visit your Nagios Log Server dashboard to verify that logs are being received.
Re: Running setup-linux.sh does nothing
Posted: Tue Feb 05, 2019 4:00 pm
by BanditBBS
Same thing, nothing happens. Even running with just the -h to show usage shows nothing.
Re: Running setup-linux.sh does nothing
Posted: Tue Feb 05, 2019 4:09 pm
by npolovenko
@BanditBBS, Try
chmod 777 setup-linux.sh.
Also, whats the output of:
which bash