Posted at 12:37h
in
Nagios,
Perl,
Programming
I needed a quick way to check for XML well-formedness in a Perl Nagios script and I found that Test::XML has a test called is_well_formed_xml($xml) that does the job nicely. The only problem was that as part of the Test::More framework, Test::XML outputs test results...
Posted at 12:34h
in
Nagios,
Perl,
Programming,
WeMo
I monitor a number of servers using nagios and I always thought it would be neat to be able to have some sort of ambient device light up when there was a critical problem.
Yes, I get email and text alerts, and nagios is always up...
Posted at 10:55h
in
Perl,
Programming
Can you see what is wrong with this Perl code snippet?
foreach my $cat (@$categories) {
if ($cat->{col} == $column and $cat=>{pos} == $position) {
...