Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to connect to remote machine

by talexb (Chancellor)
on Jan 22, 2008 at 13:52 UTC ( [id://663575]=note: print w/replies, xml ) Need Help??


in reply to How to connect to remote machine

    .. However i want to fetch the OS parameters like free memory,total RAM of the remote machine.Both the local and host machine are linux based ..

This may be like using an eighteen-wheeler to deliver an envelope, but I've really enjoyed using Nagios to monitor my collection of servers and services. It uses plugins to collect important information about a server's health.

Failing that, you may be able to build something using the Net::SSH and Expect modules.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^2: How to connect to remote machine
by naChoZ (Curate) on Jan 22, 2008 at 15:16 UTC

    I second the Nagios recommendation. It may be an eighteen-wheeler, but to set it up with a small config like this is very quick.

    On the other hand, since ssh access is already set up, the nagios check plugins can be installed on the remote server without bothering to set up a full blown Nagios server. Then just use a script to ssh in and run one of the nagios checks and take action based on the exit code of the plugin.

    --
    naChoZ

    Therapy is expensive. Popping bubble wrap is cheap. You choose.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found