[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
check for loaded kernel module
From: |
Gerrit Kühn |
Subject: |
check for loaded kernel module |
Date: |
Thu, 26 Apr 2012 10:51:56 +0200 |
Hi all,
I want to check if a certain kernel module is loaded under Linux, and
tried this:
check file sasmodule with path /proc/modules
if not match "^g2sasfe.*Live" then alert
However, this appears to evaluate true (monit reports file as being
"accessible") even if the module is not listed in /proc/modules.
Any hints why this does not work, or how I can do this properly?
cu
Gerrit