View Issue Details

IDProjectCategoryView StatusLast Update
0000262My infrastructureGeneralpublic2024-12-13 01:56
Reporterdvl Assigned Todvl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0000262: add checks for librenms cache files
DescriptionMake sure the librenms cache files are never stale
TagsNo tags attached.

Activities

dvl

2024-12-12 02:37

manager   ~0000347

Last edited: 2024-12-12 15:12

In addition to these hosts see all hosts running snmpd.

[dvl@r720-02:~] $ ls -l /var/cache/librenms
total 5
-rw-r--r--  1 snmpd snmpd  74 Dec 12 14:59 postfixdetailed
-rw-r--r--  1 snmpd snmpd 610 Dec 12 15:00 smart

[15:03 r730-01 dvl ~] % ls -l /var/cache/librenms
total 5
-rw-r--r--  1 snmpd snmpd 1768 2024.12.12 15:00 smart

[15:03 r730-03 dvl ~] % ls -l /var/cache/librenms
total 5
-rw-r--r--  1 snmpd snmpd 681 2024.12.12 15:00 smart

[15:03 x8dtu dvl ~] % ls -l /var/cache/librenms
total 5
-rw-r--r--  1 snmpd snmpd  76 2024.12.12 14:59 postfixdetailed
-rw-r--r--  1 snmpd snmpd 384 2024.12.12 15:00 smart

[15:03 tallboy dvl ~] % ls -l /var/cache/librenms
total 1
-rw-r--r--  1 snmpd snmpd  72 2024.12.12 14:59 postfixdetailed
-rw-r--r--  1 snmpd snmpd 188 2024.12.12 15:03 smart

dvl

2024-12-12 15:05

manager   ~0000348

All these hosts use:

[dvl@r720-02:~] $ ls -l /var/cache/oslv_monitor
total 42
-rw-r--r--  1 root wheel 78606 Dec 12 15:04 freebsd_proc_cache.json
-rw-r--r--  1 root wheel  6102 Dec 12 15:04 json
-rw-r--r--  1 root wheel  1993 Dec 12 15:04 snmp
[dvl@r720-02:~] $ 

dvl

2024-12-12 15:16

manager   ~0000349

Last edited: 2024-12-12 15:29

It seems like the easy solution: for each file in /var/cache/librenms/ and /var/cache/oslv_monitor , make sure the files are less than 10 minutes old.

What hosts does this apply to? all

What jails does this apply to:

[15:28 beta-bsdcan dvl /var/cache/librenms] % ls -l
total 5
-rw-r--r--  1 snmpd snmpd 984 2024.12.12 15:24 apache-snmp

[15:28 zuul-mysql dvl /var/cache/librenms] % ls -l
total 5
-rw-r--r--  1 snmpd snmpd 1506 2024.12.12 15:27 agent-local-mysql

[15:28 svn dvl /var/cache/librenms] % ls -l
total 5
-rw-r--r--  1 snmpd snmpd 961 2024.12.12 15:24 apache-snmp

[15:28 mailman dvl /var/cache/librenms] % ls -l
total 5
-rw-r--r--  1 root  wheel 973 2024.12.12 15:25 apache-snmp
-rw-r--r--  1 snmpd snmpd  72 2024.12.12 15:28 postfixdetailed

[15:28 svn dvl /var/cache/librenms] % ls -l
total 5
-rw-r--r--  1 snmpd snmpd 970 2024.12.12 15:23 apache-snmp

[dvl@webs01:/var/cache/librenms]: $ ls -l
total 5
-rw-r--r--  1 snmpd snmpd 987 Dec 12 15:23 apache-snmp

[15:18 mysql01 dvl ~] % ls -l /var/cache/librenms 
total 5
-rw-r--r--  1 snmpd snmpd 1502 2024.12.12 15:18 agent-local-mysql

[15:22 webserver dvl ~] % ls -l /var/cache/librenms/
total 5
-rw-r--r--  1 snmpd snmpd 987 2024.12.12 15:19 apache-snmp
 

Issue History

Date Modified Username Field Change
2024-12-11 16:17 dvl New Issue
2024-12-11 16:17 dvl Status new => assigned
2024-12-11 16:17 dvl Assigned To => dvl
2024-12-12 02:37 dvl Note Added: 0000347
2024-12-12 15:05 dvl Note Edited: 0000347
2024-12-12 15:05 dvl Note Added: 0000348
2024-12-12 15:10 dvl Note Edited: 0000347
2024-12-12 15:12 dvl Note Edited: 0000347
2024-12-12 15:12 dvl Note Edited: 0000347
2024-12-12 15:16 dvl Note Added: 0000349
2024-12-12 15:29 dvl Note Edited: 0000349
2024-12-13 01:56 dvl Status assigned => closed
2024-12-13 01:56 dvl Resolution open => fixed