Subversion Repositories vnag

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

// Put this file in /etc/icinga2/conf.d/...

// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2018-07-15

object CheckCommand "vnag_webreader" {
        command = [ "/daten/vnag/plugins/webreader/vnag_webreader" ]

        arguments = {
                "-u" = {
                        value = "$vnag_webreader_url$"
                        description = "The URI of the page that contains an embedded machine readable VNag output"
                        required = true
                }
                "-i" = {
                        value = "$vnag_webreader_id$"
                        description = "The ID (serial or individual name) of the embedded Nagios output. Usually '0' if only one monitor is used without individual names"
                }
                "-b" = {
                        value = "$vnag_webreader_basicAuth$"
                        description = "In case the target website requires Basic Auth, please pass username and password, divided by double-colon, into this argument"
                }
                "-p" = {
                        value = "$vnag_webreader_password$"
                        description = "In case the machine readable VNag output is encrypted, enter the password here"
                }
                "-k" = {
                        value = "$vnag_webreader_signPubKey$"
                        description = "In case the machine readable VNag output is signed, enter the filename of the public key (PEM) file here, to verify the signature of the output"
                }
        }
}

// Example usage:
//
// apply Service "example_remote_ipfm" {
//      import "generic-service"
//      check_command = "vnag_webreader"
//      vars = {
//              vnag_webreader_url = "https://www.example.com/vnag/ipfm/"
//      }
//      assign where host.name == NodeName
// }