I am trying to offload some of the compute from the Central Server by deploying a Poller in the Environment.
I have deployed them on Ubuntu 20.04 LTS and I didn’t have any issues in the install. REDIS, RRDTool and MEMCACHED have been deployed on the central server but there seems to be issues when the poller setup happens. They don’t seem to communicate right and I need some help in sorting the issues out.
The Validates have been done and they come out with no major failures. Attached are the screenshots for the same. Any suggestions from anyone is highly appreciated.
root@Test-ksantosh01-Ubuntu20:~# systemctl status librenms
● librenms.service - LibreNMS SNMP Poller Service
Loaded: loaded (/etc/systemd/system/librenms.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-10-19 13:15:15 UTC; 754ms ago
Main PID: 867138 ((rvice.py))
Tasks: 0 (limit: 19108)
Memory: 0B
CGroup: /system.slice/librenms.service
└─867138 (rvice.py)
Oct 19 13:15:15 Test-ksantosh01-Ubuntu20 systemd[1]: Started LibreNMS SNMP Poller Service.
root@Test-ksantosh01-Ubuntu20:~# systemctl status redis
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-10-19 09:53:00 UTC; 3h 22min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 836591 (redis-server)
Tasks: 4 (limit: 19108)
Memory: 14.2M
CGroup: /system.slice/redis-server.service
└─836591 /usr/bin/redis-server 10.28.132.61:6379
Oct 19 09:52:37 Test-ksantosh01-Ubuntu20 systemd[1]: Starting Advanced key-value store…
Oct 19 09:53:00 Test-ksantosh01-Ubuntu20 systemd[1]: redis-server.service: Can’t open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted
Oct 19 09:53:00 Test-ksantosh01-Ubuntu20 systemd[1]: Started Advanced key-value store.
Can you please help me understand what could be stopping the services on my central instance. I have deployed both the poller and the central server on Ubuntu 20.04 LTS.
Please let me know if you need some stats from my side.
redis-server.service: Can’t open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted
who owns the file ? looks like a permission issue. In the worst case, change the file mod to 777 (permission to everything for all) and see
however, before 777, investigate which user owns that file, and which should own it for redis to work properly.
Thanks for the command. I have applied it and hit the redis service for a restart:
root@Test-ksantosh01-Ubuntu20:~# systemctl status redis
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-10-27 12:58:16 UTC; 10s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 1229373 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Main PID: 1229398 (redis-server)
Tasks: 5 (limit: 19107)
Memory: 9.0M
CGroup: /system.slice/redis-server.service
└─1229398 /usr/bin/redis-server *:6379
Oct 27 12:58:16 Test-ksantosh01-Ubuntu20 systemd[1]: Starting Advanced key-value store…
Oct 27 12:58:16 Test-ksantosh01-Ubuntu20 systemd[1]: redis-server.service: Can’t open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted
Oct 27 12:58:16 Test-ksantosh01-Ubuntu20 systemd[1]: Started Advanced key-value store.
It still throws me the same error. Just for your validation, below is a snippet of the redis version I am using.
root@Test-ksantosh01-Ubuntu20:~# redis-server -v
Redis server v=6.0.6 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=d463d609620685c0