Nathan Gibbs
2006-12-22 18:17:33 UTC
The Program:
I have a Perl script that reads a list of hosts from a file, uses
Net::Ping to check them with the icmp protocol, then writes an HTML
status report into a file on my apache server. This script is run every
minute by cron.
The Original Problem:
I usually use the status report after a split second disturbance in
electrical power, to get a quick overview of the damage to my network.
If the script ran right before the disturbance, I have to wait for it to
run again to get an accurate picture of what is going on.
The Original Solution:
The plan was to turn this script into a cgi, so that I wouldn't
need cron to drive it, and so that the results would always be current.
Basically it would only run when I loaded in my browser, as opposed to
all the time.
The current Problem:
Net::Ping won't do icmp as a non root user. I RTM, which said that
if I suid'ed ( Hmmm is that a word ?? )the script it would work, however
it still refuses to work.
I must be missing some detail here.
What am I missing?
Thanks
I have a Perl script that reads a list of hosts from a file, uses
Net::Ping to check them with the icmp protocol, then writes an HTML
status report into a file on my apache server. This script is run every
minute by cron.
The Original Problem:
I usually use the status report after a split second disturbance in
electrical power, to get a quick overview of the damage to my network.
If the script ran right before the disturbance, I have to wait for it to
run again to get an accurate picture of what is going on.
The Original Solution:
The plan was to turn this script into a cgi, so that I wouldn't
need cron to drive it, and so that the results would always be current.
Basically it would only run when I loaded in my browser, as opposed to
all the time.
The current Problem:
Net::Ping won't do icmp as a non root user. I RTM, which said that
if I suid'ed ( Hmmm is that a word ?? )the script it would work, however
it still refuses to work.
I must be missing some detail here.
What am I missing?
Thanks