David Sloboda
2012-01-19 19:35:36 UTC
David Sloboda [http://community.zenoss.org/people/david_sloboda] created the discussion
"How to pull Datasource from nagios style script and zencommand?"
To view the discussion, visit: http://community.zenoss.org/message/63773#63773
--------------------------------------------------------------
Zenoss 3.2.1 on RHEL5
I have a nagios-style command in libexec that works great. Command output is in the format:
   Datasource|Datapoint=integer
and the threshold detects on Datapoint. So far, so good.
[***@bby1ems05 ~]$ /opt/zenoss/libexec/lsload-query-command.py
ERROR: kel-lx62 has low free swap, only [2232M] |result=2
[***@bby1ems05 ~]$
The challenge I have is that this particular command can produce useful detail in Datasource.
I would like to put that detail into the evt.message
It would help staff who get the alert and who are not Zenoss administrators.
[***@bby1ems05 libexec]$ ./lsload-query-command.py
ERROR: kel-lx19 has low free swap, only [7792M]ERROR: kel-lx25 has low free swap, only [4M]ERROR: kel-lx52 has low free swap, only [0M] |result=2
[***@bby1ems05 libexec]$
I've searched the forum and these posts, and Jane Curry's event management paper
http://community.zenoss.org/docs/DOC-2514 http://community.zenoss.org/docs/DOC-2514
http://community.zenoss.org/docs/DOC-3909 http://community.zenoss.org/docs/DOC-3909
http://community.zenoss.org/thread/15493 http://community.zenoss.org/thread/15493
I suspect Datasource is thrown away. I would like to confirm that somehow.
If that part of the output is thrown away, does anyone have any suggestions on how to find that data using an event transform?Â
Thanks,
David Sloboda
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63773#63773]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"How to pull Datasource from nagios style script and zencommand?"
To view the discussion, visit: http://community.zenoss.org/message/63773#63773
--------------------------------------------------------------
Zenoss 3.2.1 on RHEL5
I have a nagios-style command in libexec that works great. Command output is in the format:
   Datasource|Datapoint=integer
and the threshold detects on Datapoint. So far, so good.
[***@bby1ems05 ~]$ /opt/zenoss/libexec/lsload-query-command.py
ERROR: kel-lx62 has low free swap, only [2232M] |result=2
[***@bby1ems05 ~]$
The challenge I have is that this particular command can produce useful detail in Datasource.
I would like to put that detail into the evt.message
It would help staff who get the alert and who are not Zenoss administrators.
[***@bby1ems05 libexec]$ ./lsload-query-command.py
ERROR: kel-lx19 has low free swap, only [7792M]ERROR: kel-lx25 has low free swap, only [4M]ERROR: kel-lx52 has low free swap, only [0M] |result=2
[***@bby1ems05 libexec]$
I've searched the forum and these posts, and Jane Curry's event management paper
http://community.zenoss.org/docs/DOC-2514 http://community.zenoss.org/docs/DOC-2514
http://community.zenoss.org/docs/DOC-3909 http://community.zenoss.org/docs/DOC-3909
http://community.zenoss.org/thread/15493 http://community.zenoss.org/thread/15493
I suspect Datasource is thrown away. I would like to confirm that somehow.
If that part of the output is thrown away, does anyone have any suggestions on how to find that data using an event transform?Â
Thanks,
David Sloboda
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63773#63773]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]