03-07-2006 11:38 PM
I need script for getting system informaiotn like
2.Last fail date and time:
and also i am implementing cacti for monitor i want to monitor all the unix server without using SNMP so please if you have any idea or script get datas thr' ssh please share to me
Solved! Go to Solution.
03-07-2006 11:47 PM
Interesting idea but why not.
Is the place to look for scripts
03-07-2006 11:50 PM
You can use commands like,
and tools like http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo
Also, Do a search with ITRC, you will get lot of threads, like this one.
03-07-2006 11:51 PM
To be simplistic - forget about last fail date and time, go for uptime. Anyway,clean reboots,halts and hang/panic events would be often seen in /etc/shutdownlog.
Now,what do you mean by "monitor the unix server"? What kind of monitoring?
Hardware events can be monitored by some methods,like Online Diagnostics for example (EMS) which capable to send e-mails on critical events.Or Webes tool.
Software events...well sky is the limit here.
So prepare a list of what you'd like to monitor first.
03-08-2006 02:39 AM
You can use "remsh" to get these values. Just you use the commands given JRF.
03-08-2006 03:59 AM
But i want to do run the php file i,e
$system = x.x.x.x;
$data = shell_exec("ssh root@$system uptime");
print "Uptime: $data
But its error is showing please help me how to define ssh on PHP file