%attr(0750,crash_worker,crash_worker) %{_bindir}/crash-manager
%attr(0750,crash_worker,crash_worker) %{_bindir}/dump_systemstate
%{_sysconfdir}/dump_systemstate.conf.d/files/files.conf.example
+%{_sysconfdir}/dump_systemstate.conf.d/files/10-crash-worker.conf
%{_sysconfdir}/dump_systemstate.conf.d/programs/programs.conf.example
+%{_sysconfdir}/dump_systemstate.conf.d/programs/10-crash-worker.conf
%{_libexecdir}/crash-stack
%{_libexecdir}/crash-popup-launch
%{_libexecdir}/crash-notify-send
INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}/files.conf.example
DESTINATION ${DUMP_SYSTEMSTATE_CONFIG_DIR_PATH}/files
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}/files/10-crash-worker.conf
+ DESTINATION ${DUMP_SYSTEMSTATE_CONFIG_DIR_PATH}/files
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}/programs.conf.example
DESTINATION ${DUMP_SYSTEMSTATE_CONFIG_DIR_PATH}/programs
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}/programs/10-crash-worker.conf
+ DESTINATION ${DUMP_SYSTEMSTATE_CONFIG_DIR_PATH}/programs
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
char *du_args[] = {"/bin/du", "-ah", "/opt", "--exclude=/opt/usr", NULL};
spawn_wait_checked(du_args, NULL);
}
+
+ dpercent = get_disk_used_percent("/tmp");
+ if (80 < dpercent) {
+ fprintf_fd(out_fd, "\n==== tmp usage detail - %d%% (/bin/du -h /tmp)\n", dpercent);
+ char *du_args[] = {"/bin/du", "-h", "/tmp", NULL};
+ spawn_wait_checked(du_args, NULL);
+ }
+
fprintf_fd(out_fd, "\n==== System timezone (ls -al /opt/etc/localtime)\n");
char *ls_args[] = {"/bin/ls", "-al", "/opt/etc/localtime", NULL};
spawn_wait_checked(ls_args, NULL);
+# Please consider prefixing config names with numbers (NN-) if you need order
+# to be preserved.
+#
+# Crash-worker reserves number 00-19 for its purpose. Please add files
+# with number > 20.
+
[UNIQUE_ID_KEY]
title=header line that gets printed (path gets appended too)
path=/path/to/the/file
--- /dev/null
+[VMSTAT]
+title=Virtual Memory statistics
+path=/proc/vmstat
+
+[KERNEL_LOCKS]
+title=Kernel lock
+path=/proc/locks
+# See files.conf.example for note about file naming and ordering.
+
[UNIQUE_ID_KEY]
title=header line describing the program (will be printed alongside env, path and args)
path=/path/to/the/program/executable
--- /dev/null
+[IPC]
+title=System IPC facilities
+path=/usr/bin/ipcs
+args=-a