Help for this page

Select Code to Download


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