mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 01:53:44 +01:00
Inserted the UID into the temp files - otherwise its very easy to
accidentally make temp files inaccessible by running as a non-nagios user
This commit is contained in:
parent
e7290f2a89
commit
8ebed28a47
@ -279,7 +279,7 @@ $fname = $opt_i;
|
||||
$fname =~ s/:/-/g;
|
||||
$fname =~ s/\//-/g;
|
||||
$fname =~ s/\./-/g;
|
||||
$fname = $tmp . "/check_cisco_qos." . $hostname . "." . $fname . "." . $class;
|
||||
$fname = $tmp . "/check_cisco_qos." . $> . "." . $hostname . "." . $fname . "." . $class;
|
||||
if ( $opt_d ) {
|
||||
print "Using temporary file: $fname\n";
|
||||
}
|
||||
@ -630,8 +630,8 @@ sub get_config
|
||||
if ($qos_config_value == $class_id ) {
|
||||
foreach $ifIndex (sort keys %qos_interfaces) {
|
||||
if ($ifIndex eq $qos_index[0]) {
|
||||
$tmp = $ifIndex . "." . $ifIndex;
|
||||
$policyIndex = $qos_config{$tmp};
|
||||
my $tmpi = $ifIndex . "." . $ifIndex;
|
||||
$policyIndex = $qos_config{$tmpi};
|
||||
$policyName = $qos_policies{$policyIndex};
|
||||
$ifPolicy = $qos_interfaces{$ifIndex};
|
||||
$post_oid = $cbQosCMPostPolicyByte.".".$i;
|
||||
|
Loading…
Reference in New Issue
Block a user