Icinga / Nagios Plugin for checking Entitlement of an paytv subscription on a running oscam server.
- check entitlement
- select reader
- select subscription
1.2
1.2 Forked from https://github.com/DazClimax
- Added support for SSL and non-standard port
- removed requirement for Scalar::MoreUtils, because it is not available as a debian package
1.1 Small bugfix wrong character for id parameter, function help print s instead of i. Reduce date function and add version to script.
Copy to your plugin folder
$ git clone https://github.com/tobox/check_oscam.git
object CheckCommand "COMANDNAME" {
import "plugin-check-command"
command = [ PluginDir + "/check_oscam" ]
arguments = {
"-H" = "$oscam_hostname$"
"-P" = "$oscam_webif_port$"
"-s" = "$oscam_webif_use_ssl$"
"-u" = "$oscam_user$"
"-p" = "$oscam_password$"
"-r" = "$oscam_reader$"
"-i" = "$oscam_subscription$"
"-w" = "$oscam_warningtime$"
"-c" = "$oscam_criticaltime$"
}
vars.oscam_hostname = "$address$"
}
object Service "Entitlement NAME" {
import "generic-service"
host_name = "HOSTNAME"
check_command = "COMANDNAME"
vars.sla = "24x7"
vars += {
oscam_webif_port = "8888"
oscam_webif_use_ssl = "0"
oscam_user = "USERNAME"
oscam_password = "PASSWORD"
oscam_reader = "READERNAME"
oscam_subscription = "SUBSCRIPTIONID"
}
}
GPLv3 [tobox]: https://github.com/tobox [DazClimax]: https://github.com/DazClimax [git-repo-url]: https://github.com/DazClimax/check_oscam.git