Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

monitoring a script via irc

by morgon (Priest)
on Feb 02, 2017 at 23:33 UTC ( [id://1180899]=perlquestion: print w/replies, xml ) Need Help??

morgon has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I have some stuff running on a little openwrt device that will be moving between networks and I cannot always connect to it.

But nevertheless I would like to monitor it, and so I came up with the idea of using irc for that, ie. my script would simply send every 30 mins or so a status-message to a private channel.

I've just tried it out and technically it would be extremely simple (which is important as I don't have access to the whole of CPAN on Openwrt but I have IO::Socket and IO::Select and that's enough for irc) but as I never really used irc a lot I wonder if maybe there are issues I don't see at the moment (like server-operators maybe identifying and banning such bots).

So my question is: Would this be a good idea and if so what server would be best (I am currently using foonetic)?

Replies are listed 'Best First'.
Re: monitoring a script via irc
by huck (Prior) on Feb 03, 2017 at 00:13 UTC

    I would think the problems with reliably logging onto a server and getting your message sent might be high. Can it connect to you? Just create a port listener on your machine.

      No, it cannot connect to me either.

      And I would like to monitor it when on the move on my phone.

      I don't need reliable logging, I just want to be able to see that it's still alive.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1180899]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found