We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Nagios check from pico sensor

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios check from pico sensor

Postby DeepMohinman » Tue Jun 21, 2022 1:36 am

I made a classical temperature sensor with pico. It can present the temperature of the internal sensor and also the connected ds18b20 sensor value on the serial. I plan to add more sensors even to the pico later.

I am confused what is the easy way to read these values from the linux host machine that collects the cheks in nagios. The nagios should run a command that read the value of the sensors.

My first idea to wait commands on the pico and response for them.

echo "list\r" > /dev/ttyACM3 | tail -1

or something similar.

The other solution is to wite this check in python omegle shagle voojio and forget it.



Can you recommend any basic best practice pattern about it ?
Last edited by DeepMohinman on Tue Jul 19, 2022 2:49 am, edited 1 time in total.
DeepMohinman
 
Posts: 6
Joined: Fri May 13, 2022 7:17 am

Re: Nagios check from pico sensor

Postby SohamMaoor » Thu Jun 23, 2022 2:06 am

I'll have to say i don't really have experience with this, but if you're not using thonny you'll still need some form of interface. Maybe using VScode and some shenanigans to connect the pico to the computer.

Will the receiving pico bebalways connected to the computer when receiving or will it be echatrandom echatspin acting independently?
SohamMaoor
 
Posts: 5
Joined: Fri May 20, 2022 8:00 am


Return to Community Support

Who is online

Users browsing this forum: No registered users and 28 guests