Welcome to Pandora FMS Community › Forums › Community support › how to make an alert based on text string detection?
-
how to make an alert based on text string detection?
Posted by daggett on December 7, 2006 at 14:03Hi,
I have an agent which monitors a RAID card with several units of disks.
The RAID card specific software returns text strings representing the global state and the state of each unit and each disk i.e.:
“REBUILDING 33 OK DEGRADED” for global state, percentage completed, disk0 state, disk1 state.And I wish to set an alert if there is the text string “DEGRADED” in the collected status string.
I know that I can do conversion like OK=1 DEGRADED=2 REBUILDING=3 so now I can process these numerical data… but it’s not straight forward at all, and it’s not really representing anything anymore if you have “3 33 1 2” displayed in the console…
So how can I set an alert on text string?
bye for now,
Denismanu replied 18 years, 2 months ago 4 Members · 7 Replies -
7 Replies
-
::
Hi,
I have an agent which monitors a RAID card with several units of disks.
The RAID card specific software returns text strings representing the global state and the state of each unit and each disk i.e.:
“REBUILDING 33 OK DEGRADED” for global state, percentage completed, disk0 state, disk1 state.And I wish to set an alert if there is the text string “DEGRADED” in the collected status string.
I know that I can do conversion like OK=1 DEGRADED=2 REBUILDING=3 so now I can process these numerical data… but it’s not straight forward at all, and it’s not really representing anything anymore if you have “3 33 1 2” displayed in the console…
So how can I set an alert on text string?
bye for now,
DenisThis is planned for Pandora 1.3 release, in a few months 🙂
-
-
-
::
ok, but I don’t know much about perl nor PHP, I need to learn them before 😛
That’s why I’m concentrated on script parts for now.But I will try.
An idea for the console: it would be nice to make a “scan mode” I expain:
every N minutes the page is cycling from one agent to another (from the entire list of agents or just user-selected ones), showing the last hour or 24hours graphs of every modules of the agents (or user-selected graphs from each agent modules-list).
And if there is an Alarm, then the graph for the incriminated module of the relative agent is shown at the top of the page, maybe circled in red or something flashing.So this “scan mode” page can be displayed on a big flat HD plasma/LCD screen to always keep an eye on everything without having to decrypt or read tiny texts, it’s straight forward (a picture worths a thousand words!).
we constantly see everything ok cycling, and all the triggered alarms are constantly displayed thus to be sure not to miss them.it’s just an idea of one thing we wish to do with Pandora, so it may be possible that a mate will do this part of the agent for me/you <:O)) . bye
-
::
Ummm, dunno if it´s a good idea or not.
Let´s think about a big big big big scenario with thousands of monitorized boxes, and therefore, data. Refreshing it every X minutes will be, in my humble opinion, a unnecessary wast of time even recurses, that´s to say, what´s the real goal of doing this?
Pandora agents average refreshing time is set more or less in seven days, at least, in one of our clients (nil knows which one i´m talking about), so no one is going to keep an eye on the monitor from 2nd to 6th day, do you know what I mean?One way or another, I do support that feature if we let users to choose if they want or not to do that, with a tick on the pandora_server setup or whereever 🙂
That´s all folk!
-
::
ok, well yes, you’re right: for very large pandora agents number it won’t be possible.
But I think it can be interesting in some case, so maybe that the possibility to build/display a page that will display a user-made selection of modules/alarms constantly could be a plus. And make it accessible to those who choose to enable this function.
I can’t evaluate the amount of work to do this though…anyway it’s just an idea!
bye
-