2014-04-27 Junichi Satoh <junichi@rworks.jp>

* util/recon_scripts/snmp-recon.pl: Added support for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2014-04-27 04:16:31 +00:00
parent a92308a539
commit 277f76c0ac
2 changed files with 26 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2014-04-27 Junichi Satoh <junichi@rworks.jp>
* util/recon_scripts/snmp-recon.pl: Added support for FreeBSD.
2014-04-27 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed plugin execution failure

View File

@ -28,14 +28,28 @@ my $ALLIFACES = '';
my %ARP_CACHE;
# Default configuration values.
my %CONF = (
'nmap' => '/usr/bin/nmap',
'pandora_path' => '/etc/pandora/pandora_server.conf',
'ping_retries' => 1,
'ping_timeout' => 2,
'PID' => '',
'quiet' => 1,
);
my $OSNAME = $^O;
my %CONF;
if ($OSNAME eq "freebsd") {
%CONF = (
'nmap' => '/usr/local/bin/nmap',
'pandora_path' => '/usr/local/etc/pandora/pandora_server.conf',
'ping_retries' => 1,
'ping_timeout' => 2,
'PID' => '',
'quiet' => 1,
);
} else {
%CONF = (
'nmap' => '/usr/bin/nmap',
'pandora_path' => '/etc/pandora/pandora_server.conf',
'ping_retries' => 1,
'ping_timeout' => 2,
'PID' => '',
'quiet' => 1,
);
}
# Connections between devices.
my %CONNECTIONS;