Hi @npolovenko,
The result of total=float(total) is 5119.0 and now nagios gets good information in the web interface. I suppose it's was because I compared integer with float. Thank you very much.
Search found 2 matches
- Wed Oct 24, 2018 2:42 am
- Forum: Open Source Nagios Projects
- Topic: python script return null information
- Replies: 3
- Views: 1665
- Tue Oct 23, 2018 8:49 am
- Forum: Open Source Nagios Projects
- Topic: python script return null information
- Replies: 3
- Views: 1665
python script return null information
Hello, I wrote a script in python to get the freedisk space with check_nrpe (bash command). the problem is when I want to convert a string to integer with int(), I see in nagios web interface "null" in information. When I run manually the script in a shell, it works. When I remove the func...