Ad Widget

Collapse

Using nagios scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattsmith
    Member
    Zabbix Certified Specialist
    • Aug 2010
    • 33

    #1

    Using nagios scripts

    Are you able to assist with a problem that I have in getting an external script that we previously used with nagios working with zabbix?

    The output of my script is as below, this has an exit status of 3

    Error: value "blah blah" not found | 2

    The number 2 is the time in seconds that the script took to execute. (this needs to be graph-able)

    This script also has a exit status of 3 (previously used by nagios) to flag up the error state

    and the text "Error... " was then used as the string displayed in the error message.

    Is it possible to use this output with zabbix? will i need to modify the script to change the output? or can i use triggers to pick out the bits individually?

    Many Thanks
    Matt
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Originally posted by mattsmith
    Are you able to assist with a problem that I have in getting an external script that we previously used with nagios working with zabbix?

    The output of my script is as below, this has an exit status of 3

    Error: value "blah blah" not found | 2

    The number 2 is the time in seconds that the script took to execute. (this needs to be graph-able)

    This script also has a exit status of 3 (previously used by nagios) to flag up the error state

    and the text "Error... " was then used as the string displayed in the error message.

    Is it possible to use this output with zabbix? will i need to modify the script to change the output? or can i use triggers to pick out the bits individually?

    Many Thanks
    Matt
    Hi, quickly- change output yours script to print only number.
    Or you can parse output error text with function str in trigger expression.

    Comment

    Working...