Change your entity type to storage. It won't work as device.
Michael
On 13 May 2016 6:05:50 AM AEST, Epco Dijk epco.dijk@northpool.nl wrote:
Hi,
Thanks for all your answers. However I didn’t get it to work.
[cid:image001.png@01D1AC9A.71C211A0]
[cid:image002.png@01D1AC9A.71C211A0]
It doesn’t seem to pick it up. Otherwise I would expect it to be in the Matching Entities.
When I replace the entity match to * it does get pickup in the alert, but then the alert is useless for me:
[cid:image003.png@01D1AC9A.71C211A0]
But from the earlier sent attachment you see that Storage_type hrStorageFixedDisk is being returned.
If someone can shine a light, much appreciated.
KR,
Epco
From: observium observium-bounces@observium.org on behalf of Adam Armstrong adama@memetic.org Reply-To: Observium Network Observation System observium@observium.org Date: Thursday 12 May 2016 at 20:31 To: Observium Network Observation System observium@observium.org Subject: Re: [Observium] Disk size alert Windows
Well, I did write it :D
Match does a str_match() style comparison. Easier, faster and sufficient in most instances.
Adam.
Sent from BlueMailhttp://www.bluemail.me/r On 12 May 2016, at 19:07, "Pål Rydningen" <paal.rydningen@gmail.commailto:paal.rydningen@gmail.com> wrote: That changes everything Adam! I was not aware that "regex" could be a test-keyword... You got access to the source-code or something? ;)
Seriously tho - this did spur me into looking twice at things and a plain "storage_descr match C*" did the trick.
On Thu, May 12, 2016 at 7:50 PM, Adam Armstrong <adama@memetic.orgmailto:adama@memetic.org> wrote: You can use regular expressions.
storage_descr regex /^c/ or something? :D
adam.
On 12/05/2016 18:41:57, Pål Rydningen <paal.rydningen@gmail.commailto:paal.rydningen@gmail.com> wrote: CE scrub here; Yes it does - and this checker is a partial success to me:
Error! Filename not specified.
The only thing I still haven't figured out is how to match particular drive-letters. When its listed as "C:\ Label: Serial Number 58edd0c8" - Im fumbling trying to find a way to match the beginning of the string and look for "C:"
I presume there is some magic involved with the "match" keyword and how to use it with a regex?
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Pål R.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Epco Dijk Systems Administrator
Northpool bv Kanaalpark 140 2321JV Leiden The Netherlands Tel: +31 (0)88 2400300 Fax: +31 (0)88 2400399 E-mail: epco.dijk@northpool.nl Web: www.northpool.nl
[http://www.northpool.nl/wp-content/uploads/2015/09/signature.png]
This message and any attachments (the "message") are confidential and intended solely for the addressees. If you are not the addressee indicated in this message or if this message has been addressed to you by error, you may not copy or deliver this message to anyone but destroy it and kindly notify the sender by reply email. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Northpool bv shall not be liable for the message if altered, changed or falsified.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium