Portál AbcLinuxu, 10. května 2025 03:03

Dotaz: Nagios + nagsrv

22.3.2006 19:07 PD
Nagios + nagsrv
Přečteno: 107×
Odpovědět | Admin
Ahoj, používám Nagios a na http://www.vanheusden.com/nagserv/ jsem našel doplněk, kterej by měl umět vyexportovat status.log jako RSS kanál. Nějak ale nejsem schopnej to rozeběhnout. V programu je takováhle nápověda:

-f x path and filename to the nagios status.log (the file selected in nagios.cfg with 'status_file')

-p x portnumber to listen on (for nagios 1.x output)

-r x portnumber to listen on (for RSS feed)

-L x log RSS requests in apache logformat to file x

-a do not filter, send all records to the client

-z x when the status has changed, execute command 'x'

-l x set URL(!) to your nagios cgi-bin directory (for RSS feed)

-x do not fork into the background

-i how often to check if the status.log got changed: use only when you use the '-z' parameter

-V show version number and exit

-h this help

Tak že podle toho by to spustil takhle:

./nagserv -f /var/log/nagios/ -r 2000 -x -l http://x.x.x.x/cgi-bin/ -L /var/log/nagios/mujlog

pořád to, ale nefunguje. Určitě by se to hodilo vícero lidem, ale chtělo by to příklad.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Na otázku zatím nikdo bohužel neodpověděl.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.