i'm having some weird problem with this little (and quite simple) script :
Code: Select all
#!/bin/perl
$host=$ARGV[0];
use Net::Ping;
$p = Net::Ping->new();
$p->port_number(80);
if ($p->ping($host))
{
print 1;
}
else
{
print 0;
}
$p->close();
im testing it on a server that DOES have the http port open, but Cacti refuses to graph the "1" value.
here my tests/templates/graphs