Search found 3 matches

by dnte69
Thu Nov 12, 2015 11:03 am
Forum: Open Source Nagios Projects
Topic: How monitoring python program output values in nagios?
Replies: 5
Views: 6598

Re: How monitoring python program output values in nagios?

Since this script only exits on error it won't work being called by NRPE. Your options are as follows. 1) Rewrite the script so that it sends passive results after every sleep state. 2) Rewrite the script to exit upon every invocation using sys.exit(0) for OK, sys.exit(1) for WARNING, sys.exit(2) f...
by dnte69
Wed Nov 11, 2015 1:43 pm
Forum: Open Source Nagios Projects
Topic: How monitoring python program output values in nagios?
Replies: 5
Views: 6598

Re: How monitoring python program output values in nagios?

You can either have NRPE run the program and capture the output directly, or you can have the program log the output to a file and have NRPE check that file. Either way you will need to make some slight modifications to the script. We can help with the NRPE side of things, but the script modificati...
by dnte69
Wed Nov 11, 2015 12:23 pm
Forum: Open Source Nagios Projects
Topic: How monitoring python program output values in nagios?
Replies: 5
Views: 6598

How monitoring python program output values in nagios?

Dear colleagues and Regards from Brazil I created a device that monitors temperature and humidity using a Raspberry and DHT22 sensor output values (humidity and temperature) are shown every 5 seconds in a python program, that is the code (not mine): # Autor : FILIPEFLOP # load libs import Adafruit_D...