- or download this
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <NAGIOS>
...
37 <MAX></MAX>
38 </DATASOURCE>
...
- or download this
1 #!/usr/bin/env perl
2
...
10 my $file = $ARGV[0];
11 my $doc = $xs1->XMLin($file, forcearray => 1);
12
- or download this
$VAR1 = {
'NAGIOS_NOTIFICATIONRECIPIENTS' => {},
...
'WARN_RANGE_TYPE' => {}
},
...
- or download this
20 foreach my $datasource ($doc->{DATASOURCE}){
21
...
28 print $datasource[$element];
29 }
30 }
- or download this
$VAR1 = 'max';
Element = 0
- or download this
$VAR1 = undef;
Element = 2
HASH(0x10e2ef0)