HariSekhon / Nagios-Plugins

450+ AWS, Hadoop, Cloud, Kafka, Docker, Elasticsearch, RabbitMQ, Redis, HBase, Solr, Cassandra, ZooKeeper, HDFS, Yarn, Hive, Presto, Drill, Impala, Consul, Spark, Jenkins, Travis CI, Git, MySQL, Linux, DNS, Whois, SSL Certs, Yum Security Updates, Kubernetes, Cloudera etc...
https://www.linkedin.com/in/HariSekhon
Other
1.14k stars 506 forks source link

support proxy for check_yum.py #427

Closed aroskamp closed 4 months ago

aroskamp commented 4 months ago

We had a problem using check_yum.py behind a firewall. With this little change, i solved the problem for us.

Do You want to integrate my patch?

Or do You have another great idea?

HariSekhon commented 4 months ago

Where those keys don't exist in the environment isn't that code likely to result in KeyError exceptions being raised?

I've just pushed an update which should be more portable. Please pull and try the latest.

aroskamp commented 4 months ago

Your changes seem to work pretty fine. Thank You