hobbit-clients.cfg - Handling FILE rules
Heya,
Just been playing around with doing some FILE monitoring and having issues with its processing order or its ignoring a host I want a different setting for. Originally I defined the FILE checks in the default section with the host1.acme.com above it but it wasn't working so I tried setting a HOST=* one and putting it under there but I still get the same thing. I have used it in the past for defining different proc checks for hosts, different loads, and different disk usage on partitions but never for FILE before.
Basically want host1.acme.com to either not care about files at all or make them 755 and all other hosts to be 644 for gcc and make (non exec)
Can someone point me in the direction of what I might be doing wrong as I THINK what I'm doing is right.
Below is the config that I'm currently using. I am able to define other checks under host1.acme.com and they work fine.
HOST=host1.acme.com FILE /usr/bin/make MODE=755 FILE /usr/bin/gcc MODE=755 HOST=* PROC ntpd PROC cron FILE /usr/bin/make MODE=644 FILE /usr/bin/gcc MODE=644
DEFAULT # These are the built-in defaults. UP 15m CLOCK 60 LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 65 80 MEMACT 90 97
Allan
Allan Spencer wrote:
Heya,
Just been playing around with doing some FILE monitoring and having issues with its processing order or its ignoring a host I want a different setting for. Originally I defined the FILE checks in the default section with the host1.acme.com above it but it wasn't working so I tried setting a HOST=* one and putting it under there but I still get the same thing. I have used it in the past for defining different proc checks for hosts, different loads, and different disk usage on partitions but never for FILE before.
Basically want host1.acme.com to either not care about files at all or make them 755 and all other hosts to be 644 for gcc and make (non exec)
Can someone point me in the direction of what I might be doing wrong as I THINK what I'm doing is right.
Below is the config that I'm currently using. I am able to define other checks under host1.acme.com and they work fine.
HOST=host1.acme.com FILE /usr/bin/make MODE=755 FILE /usr/bin/gcc MODE=755 HOST=* PROC ntpd PROC cron FILE /usr/bin/make MODE=644 FILE /usr/bin/gcc MODE=644
DEFAULT # These are the built-in defaults. UP 15m CLOCK 60 LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 65 80 MEMACT 90 97
Allan
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Dont normally bump things but still having issues with this and hoping someone can give me a clue
Allan
On Thursday 07 February 2008, Allan Spencer wrote:
Allan Spencer wrote:
Heya,
Just been playing around with doing some FILE monitoring and having issues with its processing order or its ignoring a host I want a different setting for. Originally I defined the FILE checks in the default section with the host1.acme.com above it but it wasn't working so I tried setting a HOST=* one and putting it under there but I still get the same thing. I have used it in the past for defining different proc checks for hosts, different loads, and different disk usage on partitions but never for FILE before.
Basically want host1.acme.com to either not care about files at all or make them 755 and all other hosts to be 644 for gcc and make (non exec)
Can someone point me in the direction of what I might be doing wrong as I THINK what I'm doing is right.
Below is the config that I'm currently using. I am able to define other checks under host1.acme.com and they work fine.
HOST=host1.acme.com FILE /usr/bin/make MODE=755 FILE /usr/bin/gcc MODE=755 HOST=* PROC ntpd PROC cron FILE /usr/bin/make MODE=644 FILE /usr/bin/gcc MODE=644
DEFAULT # These are the built-in defaults. UP 15m CLOCK 60 LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 65 80 MEMACT 90 97
Allan
Dont normally bump things but still having issues with this and hoping someone can give me a clue
Allan
If you put the Host=* entries in the DEFAULT section, I believe that should of worked. But anyways the HOST=* definition is wrong, I think it needs to be HOST=%.*.
participants (2)
-
allan@zandahar.net
-
s_aiello@comcast.net