Fórumok
Sziasztok!
Feltettem nagioshoz az interfacetable_v3t nevű plugint, és minden szép és jó, kivéve, hogy a status linket rosszul dobja ki szervízhez: http://<$IP>/nagios/cgi-bin/%22/interfacetable_v3t/tables/dQ2DlinkQ5Fsw-Interfacetable.html%22 -t ír, ami ugye "" -ket szúr be a linkbe, ezáltal nem működik. Találkozott már valaki ezzel? Hogy lehet orvosolni? Így kéne kinézni a linknek: http://<$IP>/interfacetable_v3t/tables/dQ2DlinkQ5Fsw-Interfacetable.html
UPDATE: visszatérve a 3.5.1 -es nagioshoz, vígan működik
Hozzászólások
senki nem futott még bele ebbe?
--
>'The time has come,' the Walrus said<
Hogy néz ki a settings.cfg-d?
az egyenlőre remelve van, a running config
Default option values:
----------------------
General options:
{
'accessmethod' => undef,
'alias' => 0,
'alias-matching' => 0,
'cache' => 3600,
'config' => '',
'configtable' => 1,
'critical-property' => 0,
'critical-traffic' => '101,5000,5000',
'css' => 'icinga',
'debugfile' => '',
'default-table-sorting' => 'index',
'delta' => 600,
'duplex' => 1,
'enableperfdata' => 0,
'exclude' => undef,
'exclude-property' => undef,
'exclude-traffic' => undef,
'grapher' => 'pnp4nagios',
'grapherurl' => '/pnp4nagios',
'help' => 0,
'hostdisplay' => '',
'hostquery' => '',
'htmltabledir' => '/opt/nagios/interfacetable_v3t/share/tables',
'htmltablelinktarget' => '_self',
'htmltableurl' => '/interfacetable_v3t/tables',
'human' => 1,
'ifdetails' => 0,
'ifloadgradient' => 1,
'ifs' => ',',
'include' => undef,
'include-property' => undef,
'include-traffic' => undef,
'ipinfo' => 1,
'nodetype' => 'standard',
'outputshort' => 0,
'perfdatadir' => undef,
'perfdataformat' => 'full',
'perfdataservicedesc' => undef,
'perfdatathreshold' => 'full',
'pkt' => 1,
'portperfunit' => 'bps',
'regexp' => 0,
'reseturl' => '/interfacetable_v3t/cgi-bin',
'showdefaults' => 0,
'snapshot' => 0,
'statedir' => '/tmp/.ifState',
'stp' => 1,
'table-split' => 0,
'timeout' => 15,
'tips' => 1,
'track-property' => [
'ifOperStatus',
'ifStatus'
],
'type' => 1,
'usemacaddr' => 0,
'verbose' => 0,
'vlan' => 1,
'warning-property' => 0,
'warning-traffic' => '101,1000,1000'
}
Snmp options:
{
'64bits' => 0,
'authproto' => 'md5',
'cachedir' => '/tmp/.ifCache',
'community' => 'public',
'contextname' => '',
'domain' => 'udp',
'host' => 'localhost',
'login' => '',
'max-repetitions' => undef,
'passwd' => '',
'port' => 161,
'privpass' => '',
'privproto' => 'des',
'retries' => 2,
'timeout' => 2,
'unixsnmp' => 0,
'version' => '1'
}
--
>'The time has come,' the Walrus said<
Ez nem az aktuális konfig, hanem a default értékek (gondolom -D vel kérted le). Ami nem biztos, hogy neked jó, hacsak nem localhoston használod pnp4nagios-sal... Persze attól még futhat úgy is. Hogy hívod meg a plugint?
localhoston fut pnp-vel :)
command_line $USER1$/check_interface_table_v3t.pl -H $HOSTADDRESS$ -h $HOSTNAME$ -C public -2 -r --warning $ARG1$ --critical $ARG2$ --cp 1 --wp 1 -f --64bits --perfdatadir /opt/nagios/pnp/var/spool/ --perfdataservicedesc "Iterface status"
check_command check_iftable_v3t!80,10,3000!90,100,3000
--
>'The time has come,' the Walrus said<
Add meg meghíváskor a --htmltableurl kapcsolóval, hátha úgy jó :) Próbáld ki relatív és abszolút hivatkozással is.
Egyébként melyik verzió?
nagios 4 és interfacetable 0.05
abszolót hivatkozást már próbáltam, azt is betette "" közé, és beszúrta leghátulra :(
logban amúgy ez van:
[Tue Oct 22 09:48:43 2013] [error] [client 10.1.0.2] script not found or unable to stat: /opt/nagios/sbin/", referer: http://nagios.intra/nagios/cgi-bin/status.cgi?host=all
[Tue Oct 22 10:00:50 2013] [error] [client 10.1.0.2] script not found or unable to stat: /opt/nagios/sbin/"http:, referer: http://nagios.intra/nagios/cgi-bin/status.cgi?host=all&servicestatustyp…
--
>'The time has come,' the Walrus said<
Új kérdés: interface exlude-nál, ha interfész id-adok meg, miért szűri ki az összes olyan számot tartalmazót? van erre valami workaround?
--
>'The time has come,' the Walrus said<