statusmap.c [RESOLVIDO]

1. statusmap.c [RESOLVIDO]

Orlando Vasques
khyron

(usa Fedora)

Enviado em 04/04/2012 - 14:11h

Boa tarde !

Pessoal estou tentando fazer funcionar o plugin de mapas do nagios

""nagios-3.2.1"" e como o statusmap nao veio no pacote do nagios, nem no plugin do nagios
eu baixei o arquivo na internet.

mas quando vou dar um make tenho esta saida.

ja instalei tudo quanto é lib de tudo q ja vi em forum por ai...mas nao consegui resolver, e o mapa no nagios nao carrega.

AJUDA AEWWWWWW

----SAIDA-------------------------------------------------------------------------------

#make statusmap.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
statusmap.c:43:54: error: gd.h: No such file or directory
statusmap.c:44:61: error: gdfonts.h: No such file or directory
statusmap.c:146: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘load_image_from_file’
statusmap.c:178: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unknown_logo_image’
statusmap.c:179: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘logo_image’
statusmap.c:180: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_image’
statusmap.c:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘background_image’
statusmap.c: In function ‘load_background_image’:
statusmap.c:1390: error: ‘background_image’ undeclared (first use in this function)
statusmap.c:1390: error: (Each undeclared identifier is reported only once
statusmap.c:1390: error: for each function it appears in.)
statusmap.c: In function ‘draw_background_image’:
statusmap.c:1414: error: ‘background_image’ undeclared (first use in this function)
statusmap.c:1418: error: ‘map_image’ undeclared (first use in this function)
statusmap.c: In function ‘draw_hosts’:
statusmap.c:1638: error: ‘logo_image’ undeclared (first use in this function)
statusmap.c:1642: error: ‘map_image’ undeclared (first use in this function)
statusmap.c:1807: error: ‘unknown_logo_image’ undeclared (first use in this function)
statusmap.c: In function ‘draw_text’:
statusmap.c:1867: error: ‘gdFontSmall’ undeclared (first use in this function)
statusmap.c:1870: error: ‘map_image’ undeclared (first use in this function)
statusmap.c: In function ‘draw_host_text’:
statusmap.c:1923: error: ‘gdFontSmall’ undeclared (first use in this function)
statusmap.c: In function ‘draw_line’:
statusmap.c:2064: error: ‘map_image’ undeclared (first use in this function)
statusmap.c: In function ‘draw_dotted_line’:
statusmap.c:2075: error: ‘gdTransparent’ undeclared (first use in this function)
statusmap.c:2088: error: ‘map_image’ undeclared (first use in this function)
statusmap.c:2091: error: ‘gdStyled’ undeclared (first use in this function)
statusmap.c: In function ‘draw_dashed_line’:
statusmap.c:2104: error: ‘gdTransparent’ undeclared (first use in this function)
statusmap.c:2114: error: ‘map_image’ undeclared (first use in this function)
statusmap.c:2117: error: ‘gdStyled’ undeclared (first use in this function)
statusmap.c: In function ‘initialize_graphics’:
statusmap.c:2136: error: ‘map_image’ undeclared (first use in this function)
statusmap.c:2166: error: ‘unknown_logo_image’ undeclared (first use in this function)
statusmap.c: At top level:
statusmap.c:2174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘load_image_from_file’
statusmap.c: In function ‘write_graphics’:
statusmap.c:2227: error: ‘map_image’ undeclared (first use in this function)
statusmap.c: In function ‘cleanup_graphics’:
statusmap.c:2243: error: ‘map_image’ undeclared (first use in this function)
statusmap.c: In function ‘draw_circular_layer_markup’:
statusmap.c:3114: error: ‘map_image’ undeclared (first use in this function)
make: *** [statusmap.cgi] Error 1



  


2. MELHOR RESPOSTA

João Marcos Menezes
stremer

(usa Arch Linux)

Enviado em 05/04/2012 - 17:44h

Tudo indica que esta faltando a biblioteca GD.

Talvez seja este:
http://www.boutell.com/gd/

Só usei GD com o PHP... geralmente instalo a libgd direto do repositório das distros que utilizo.


3. statusmap.c

Orlando Vasques
khyron

(usa Fedora)

Enviado em 05/04/2012 - 21:22h

stremer escreveu:

Tudo indica que esta faltando a biblioteca GD.

Talvez seja este:
http://www.boutell.com/gd/

Só usei GD com o PHP... geralmente instalo a libgd direto do repositório das distros que utilizo.


oi boa noite....valeu a dica... mas era isso mesmo, eu esqueci de instalar algumas lib's ....eu q fiz [*****]...

obrigado

abraço






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts