[FEATURE REQUEST] Add group info to XML output

Issue #650 closed
Gábor Garami created an issue

Please add the group info to XML output (it could be good for plaintext status out put too).

Comments (7)

  1. Tildeslash repo owner

    Please can you provide more details about the request and add examples of how the output should look like?

  2. Gábor Garami reporter
    • changed status to open

    Sorry, I didn't get notification emails from BitBucket until now.

    In monit, you can set group membership to the services, e.g.:

    check process mysql with pidfile /opt/mysql/data/myserver.mydomain.pid
       group database
       start program = "/etc/init.d/mysql start"
       stop program = "/etc/init.d/mysql stop"
       if failed host port 3306 protocol mysql then restart
       depends on mysql_bin
       depends on mysql_rc

    I'd like to see "group" information(s) in the XML, e.g.:

    <service ... >
  3. Mark

    This would be useful as you could use groups to indicate criticality level of the monitored target. Fe.x group critical, group warning, etc. Also adding the group info as an env variable for the m/monit notifications scripts would be helpful as you could forward the group info to your notification integration script

  4. Tildeslash repo owner

    the <servicegroups/> are present in the XML output already, right behind the <services/> element

  5. Log in to comment