Archived community.zenoss.org | full text search
Skip navigation
1649 Views 3 Replies Latest reply: Mar 20, 2013 3:00 PM by Ryan Matte RSS
Daniel Garcia Newbie 2 posts since
Mar 17, 2013
Currently Being Moderated

Mar 18, 2013 11:17 PM

Custom Monitoring Template Not Working.

Hello everyone,

 

I have created a bash script to be used by a monitoring template.

I have created a monitoring template and locally binded it to a device in zenoss.

I then added a datasource of type "command".

The command template then points to the bash script that I have created.

 

Manually running the scripts shows that it is doing good.

I have also tested it via zentestcommand (with the option "-t 120") and it also returns the correct output.

 

Sample outputs:

- OK All hosts are valid. |

- Error Some hosts are not existing. |

 

What matters to me right now are the summary values of the output.

 

However, in the monitoring template, the command doesn't seem to be executed.

No alerts were generated.

 

The behavior I want is for zenoss to raise an alert when the output is -> "Error Some hosts are not existing |"

 

Your help and advices would greatly be appreciated.

 

Thanks,

Daniel

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    1. Mar 19, 2013 4:21 PM (in response to Daniel Garcia)
    Re: Custom Monitoring Template Not Working.

    Daniel:

     

    Is your bash script passing an exit code for the event severity? That's how the severity is communicated to zenoss by nagios type plugins.

     

    Best,

    --Shane Scott (Hackman238)

    SWS Consulting / Rackspace Hosting

    http://shanewilliamscott.com

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    3. Mar 20, 2013 3:00 PM (in response to Daniel Garcia)
    Re: Custom Monitoring Template Not Working.

    Well, it's clearly queuing the event properly.  Are you seeing issues with other events being generated as well or just with that specific event?  Do you have any event transforms/mapping that might act on that event and cause it to drop?  Is the event visible in the event history or archive?

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points