Log Server initial install

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
NMFSTeam
Posts: 88
Joined: Thu Nov 12, 2015 9:01 am

Re: Log Server initial install

Post by NMFSTeam »

We are using Ansible. Here is the output for the first command:

Code: Select all

root@hqnaglogi1:~# mount | grep noexec
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755,inode64)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,size=1048576k,inode64)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
And here is the rest:

Code: Select all

root@hqnaglogi1:~# mktemp -d --tmpdir=/
/tmp.bpxOikyR3a
root@hqnaglogi1:~# chmod 1777 /tmp.bpxOikyR3a/
root@hqnaglogi1:~# cd /tmp.bpxOikyR3a/
root@hqnaglogi1:/tmp.bpxOikyR3a# wget https://assets.nagios.com/downloads/nagios-log-server/nagioslogserver-latest.tar.gz
--2022-01-24 23:18:06--  https://assets.nagios.com/downloads/nagios-log-server/nagioslogserver-latest.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 45.79.49.120, 2600:3c00::f03c:92ff:fef7:45ce
Connecting to assets.nagios.com (assets.nagios.com)|45.79.49.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 225015847 (215M) [application/x-gzip]
Saving to: ‘nagioslogserver-latest.tar.gz’

nagioslogserver-latest.tar.g 100%[=============================================>] 214.59M  4.26MB/s    in 36s     

2022-01-24 23:18:43 (5.95 MB/s) - ‘nagioslogserver-latest.tar.gz’ saved [225015847/225015847]

root@hqnaglogi1:/tmp.bpxOikyR3a# ls
nagioslogserver-latest.tar.gz
root@hqnaglogi1:/tmp.bpxOikyR3a# tar zxf nagioslogserver-latest.tar.gz 
root@hqnaglogi1:/tmp.bpxOikyR3a# cd nagioslogserver/
root@hqnaglogi1:/tmp.bpxOikyR3a/nagioslogserver# ls
CHANGELOG.txt  fullinstall  libinstall.sh  mibs             sourceguardian  upgrade
addnode        get-pip.py   licenses       nagioslogserver  subcomponents
root@hqnaglogi1:/tmp.bpxOikyR3a/nagioslogserver# ./fullinstall
It looks like Nagios Log Server is already installed. Use ./upgrade to upgrade instead.
root@hqnaglogi1:/tmp.bpxOikyR3a/nagioslogserver#
Getting closer!! I don't know why it thinks it is already installed... maybe because I have pre-created the nagioslogserver directory under the /usr/local/ directory?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Log Server initial install

Post by gsmith »

Hi

Look at the results from "mount | grep noexec" particularly:
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,size=1048576k,inode64)

I am thinkinging Ansible is resetting the options on your mount points.

Look at the results from "mount | grep noexec" particularly:
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,size=1048576k,inode64)

You can try:
cd /
umount /tmp
mount -o exec tmpfs /tmp
cd /tmp/nagioslogserver
./fullinstall

Then change it back so it uses the settings in /etc/fstab:
umount /tmp
mount -a

Thanks
NMFSTeam
Posts: 88
Joined: Thu Nov 12, 2015 9:01 am

Re: Log Server initial install

Post by NMFSTeam »

That seems to have worked, but it still thinks I already have the Nagios Log Server installed.

Code: Select all

root@hqnaglogi1:/tmp/nagioslogserver# ./fullinstall
It looks like Nagios Log Server is already installed. Use ./upgrade to upgrade instead.
root@hqnaglogi1:/tmp/nagioslogserver# ./upgrade
Could not find an installed version of Nagios Log Server.
root@hqnaglogi1:/tmp/nagioslogserver#
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Log Server initial install

Post by gsmith »

Hi

Please run:

rm -rf /usr/local/nagioslogserver
cd /tmp/nagioslogserver
./fullinstall


Thanks
NMFSTeam
Posts: 88
Joined: Thu Nov 12, 2015 9:01 am

Re: Log Server initial install

Post by NMFSTeam »

Thank you. I had a separate disk mounted to /usr/local/nagioslogserver, so I'll just remove that temporarily, get the install done, then see if I can move all the files over.

The install seems to have completed OK.

Code: Select all

Nagios Log Server Installation Success!

You can finish the final setup steps for Nagios Log Server by visiting:
    http://192.168.0.5/nagioslogserver/


root@hqnaglogi1:/tmp/nagioslogserver#

Thank you for all your help with this, it has been most appreciated.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Log Server initial install

Post by gsmith »

Fantastic! I am glad you got it working.

Thanks
Locked