nevermind.. i dropped it to 50 and i get an alert right away..
I have created a contact email .. I assume i will be getting a email vary soon..
I also looked at the boolean device_status..
I figured since i want to be alerted when down that the condition for booleans would look like this:
device_status equal 0
Fra: "Casper Allerslev Jensen" casper@dingit.dk Til: "Observium Network Observation System" observium@observium.org Sendt: onsdag, 26. august 2015 19:30:04 Emne: Re: [Observium] help creating alerts
well i figured it was ok to specific EVERYTHING because storage_perc only relates to storage I assumed? so yes it was cutting corners but :)
how can i see if it worked? is there a sign in the web interface that it has been added to my NAS?
Fra: "Adam Armstrong" adama@memetic.org Til: observium@observium.org Sendt: onsdag, 26. august 2015 19:22:37 Emne: Re: [Observium] help creating alerts
You haven't specified harddisk in the association entry, you've specified "everything", the entity association box exists so that you can chose only a subset of your "storage" entities, for example by "storage_descr", which is usually the mountpoint, like "/var/".
That alert looks like it should work.
adam.
On 26/08/2015 18:20:51, Casper Allerslev Jensen casper@dingit.dk wrote: Thanks for answering Adam.
Ok I think i follow you..
But isn't it a little redudant to have Entity? I mean with the alert im trying to make im looking at specifik storage usages. Wouldn't it go without saying the entity im looking at is the disks? my condition is storage_perc and so i don't see the point in also specifying harddisk in the association entity?
I have made my alert this way now.. is this correct? will it work?
Check condition: storage_perc gt 90 Associations device match: * Associations Entity match: *
Fra: "Adam Armstrong" adama@memetic.org Til: observium@observium.org Sendt: onsdag, 26. august 2015 18:51:19 Emne: Re: [Observium] help creating alerts
Hi,
The entity match is the same as the device match, but for the entity (port, memory pool, etc), rather than the device.
If you want to match all devices, you put * in the device box. If you want to match all ports for a port entity type alert, you put * in the entity box.
If you want to only match ethernet ports on a port alert, you put "ifType eq ethernetCsmacd" in the entity box.
adam.
BQ_BEGIN
On 26/08/2015 16:47:34, Casper Allerslev Jensen casper@dingit.dk wrote: Hi all..
im trying understand how to make different alerts in Observium..
for testing im trying to creat a alert that will hit all device and set the flag if diskspace becomes 90% used.
For that i used the storage_perc alert and created the alert like this:
Check condition: storage_perc gt 90 Associations device match: os match * Associations Entity match: storage_perc match *
Now the example i found in the documentation was here: http://observium.org/docs/alert_checker/ and was for mempool_perc. Now i know my storage exampel doesn't use the same entity match but thats because i don't understand what that is?
My logics behind my alert is like this.
Check condition see if storage usages reach 90% or more.
Association device is to set what devices in observium should be hit by this alert. I set mine to os match wildcard beacuse i want all device to be hit by this alert.
Association Entity im not sure i fully understand?
Any help would be apriciated... and please .. i rather be taught to fish then be given a fish :) if you know what i mean :)
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
BQ_END
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium