Discussion:
[Check_mk (english)] How do I define multiple datasource checks for a single host
Ron Wurzberger
2018-10-04 18:23:38 UTC
Permalink
I have a datasource script that performs checks on hardware sensors using
IPMI. It can only check one sensor type at a time. I must call it multiple
times if I want to check fans, temp, etc.. If I create 2 rules for a host
(i.e. fans & temp), only one rule is run. The other rule shows up as
matching, but is not run because of the first rule. How do I get both rules
(both checks) to occur for a given host? I am using OMD 1.4 on CentOS 7.4.

Ron
Marcel Schulte
2018-10-05 06:52:06 UTC
Permalink
Hi Ron,

that does not sound like a datasource program at all, more like an active check!

Why is it used as datasource program?

BR,
Marcel
I have a datasource script that performs checks on hardware sensors using IPMI. It can only check one sensor type at a time. I must call it multiple times if I want to check fans, temp, etc.. If I create 2 rules for a host (i.e. fans & temp), only one rule is run. The other rule shows up as matching, but is not run because of the first rule. How do I get both rules (both checks) to occur for a given host? I am using OMD 1.4 on CentOS 7.4.
Ron
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ron Wurzberger
2018-10-05 13:40:09 UTC
Permalink
My monitoring guidelines are to monitor compute servers and other hardware
via their hardware interfaces only. It's a IaaS shop and we do not have
access to, or even know, what OS is being used. Therefore, whatever checks
I perform I must execute from the monitoring host. For example, on most
devices I can access Fan, Temp, Voltage, etc via IPMI from the monitoring
host. I'm new to OMD and the documentation is somewhat thin regarding how
to set up agents/checks from the monitoring host. I also must make other
checks against a device's hardware interface depending on the vendor and
model (i.e. some allow me to check RAID drives and some don't, via the
hardware interface). With certain models we do install a hypervisor (ESXi),
but I do not have vSphere. There are scripts/programs I can use from the
monitoring host to query ESXi health and status. So I may need to make 1-n
checks depending on the device, and all from the monitoring host. A
datasource program was the only thing I found so far that I could set up
via OMD WATO, but you're right, I am calling the equivalent of an active
check. I have yet to find guidelines for writing a "special agent" except
for the simplest of examples, nor have I found out how to call multiple
scripts/programs from the monitoring host against a single target host. Any
links or other assistance you can provide would be appreciated.

Ron
Post by Marcel Schulte
Hi Ron,
that does not sound like a datasource program at all, more like an active check!
Why is it used as datasource program?
BR,
Marcel
Am Do., 4. Okt. 2018 um 20:24 Uhr schrieb Ron Wurzberger <
Post by Ron Wurzberger
I have a datasource script that performs checks on hardware sensors
using IPMI. It can only check one sensor type at a time. I must call it
multiple times if I want to check fans, temp, etc.. If I create 2 rules for
a host (i.e. fans & temp), only one rule is run. The other rule shows up as
matching, but is not run because of the first rule. How do I get both rules
(both checks) to occur for a given host? I am using OMD 1.4 on CentOS 7.4.
Post by Ron Wurzberger
Ron
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ron Wurzberger
2018-10-05 16:07:30 UTC
Permalink
Based on your initial reply, I looked into adding active checks directly. I
found the place in WATO to define them. All is well. Thanks
Post by Ron Wurzberger
My monitoring guidelines are to monitor compute servers and other hardware
via their hardware interfaces only. It's a IaaS shop and we do not have
access to, or even know, what OS is being used. Therefore, whatever checks
I perform I must execute from the monitoring host. For example, on most
devices I can access Fan, Temp, Voltage, etc via IPMI from the monitoring
host. I'm new to OMD and the documentation is somewhat thin regarding how
to set up agents/checks from the monitoring host. I also must make other
checks against a device's hardware interface depending on the vendor and
model (i.e. some allow me to check RAID drives and some don't, via the
hardware interface). With certain models we do install a hypervisor (ESXi),
but I do not have vSphere. There are scripts/programs I can use from the
monitoring host to query ESXi health and status. So I may need to make 1-n
checks depending on the device, and all from the monitoring host. A
datasource program was the only thing I found so far that I could set up
via OMD WATO, but you're right, I am calling the equivalent of an active
check. I have yet to find guidelines for writing a "special agent" except
for the simplest of examples, nor have I found out how to call multiple
scripts/programs from the monitoring host against a single target host. Any
links or other assistance you can provide would be appreciated.
Ron
Post by Marcel Schulte
Hi Ron,
that does not sound like a datasource program at all, more like an active check!
Why is it used as datasource program?
BR,
Marcel
Am Do., 4. Okt. 2018 um 20:24 Uhr schrieb Ron Wurzberger <
Post by Ron Wurzberger
I have a datasource script that performs checks on hardware sensors
using IPMI. It can only check one sensor type at a time. I must call it
multiple times if I want to check fans, temp, etc.. If I create 2 rules for
a host (i.e. fans & temp), only one rule is run. The other rule shows up as
matching, but is not run because of the first rule. How do I get both rules
(both checks) to occur for a given host? I am using OMD 1.4 on CentOS 7.4.
Post by Ron Wurzberger
Ron
_______________________________________________
checkmk-en mailing list
Manage your subscription or unsubscribe
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Loading...