Changeset a2bc0627348db5a662bb7da049146d10ca677782

Show
Ignore:
Timestamp:
11/06/09 16:13:18 (4 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1257523998 +0000
git-parent:

[44f41a865b12ba78b94312868723b43c4b6b8dbb]

git-author:
Mark Harrison <mark@omniti.com> 1257523998 +0000
Message:

Work correctly when we have a type attribute or blank message

git-svn-id: https://labs.omniti.com/resmon/trunk@226 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resources/check_resmon_xml_part

    r77a4ccc ra2bc062  
    7575    # Get the message 
    7676    my $message = $ref->{ResmonResult}->{message}; 
     77    # If we have attributes, then get the text content 
     78    if (ref($message) eq 'HASH') { 
     79        $message = $message->{'content'}; 
     80    } 
     81    if (!defined($message)) { 
     82        $message = "(no message)"; 
     83    } 
    7784    my $last_update = time() - $ref->{ResmonResult}->{last_update}; 
    7885    # If we have stale information, then go critical