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> 2014-04-27 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/PluginServer.pm: Fixed plugin execution failure * lib/PandoraFMS/PluginServer.pm: Fixed plugin execution failure

View File

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