tac.cgi colors
Toto Capuccino
shoktai at gmail.com
Fri Feb 24 18:37:49 CET 2006
Hi,
I'd like to have the tactical overview giving colors more meaningful as
yellow for warning and orange for unknown. I have seen a tac.c file on
Nagios Exchange but i failed to compile it. Is it compatible with nagios 1.3?
The compile time gives that :
linuxserver:/usr/local/nagios/cgi# gcc -o tac.cgi2 tac.c
tac.c:66: error: syntax error before '*' token
tac.c:66: warning: data definition has no type or storage class
tac.c:67: error: syntax error before '*' token
tac.c:67: warning: data definition has no type or storage class
tac.c: In function 'main':
tac.c:220: error: 'READ_ALL_STATUS_DATA' undeclared (first use in this
function)
tac.c:220: error: (Each undeclared identifier is reported only once
tac.c:220: error: for each function it appears in.)
tac.c: In function 'analyze_status_data':
tac.c:393: error: 'servicestatus' undeclared (first use in this function)
tac.c:393: error: 'temp_servicestatus' undeclared (first use in this
function)
tac.c:395: error: 'hoststatus' undeclared (first use in this function)
tac.c:395: error: 'temp_hoststatus' undeclared (first use in this function)
tac.c:437: error: 'SERVICE_OK' undeclared (first use in this function)
tac.c:437: error: 'SERVICE_RECOVERY' undeclared (first use in this function)
tac.c:445: error: 'SERVICE_WARNING' undeclared (first use in this function)
tac.c:447: error: 'HOST_DOWN' undeclared (first use in this function)
tac.c:447: error: 'HOST_UNREACHABLE' undeclared (first use in this function)
tac.c:468: error: 'SERVICE_UNKNOWN' undeclared (first use in this function)
tac.c:491: error: 'SERVICE_CRITICAL' undeclared (first use in this function)
tac.c:514: error: 'SERVICE_PENDING' undeclared (first use in this function)
tac.c:592: error: 'HOST_UP' undeclared (first use in this function)
tac.c:636: error: 'HOST_PENDING' undeclared (first use in this function)
tac.c: In function 'find_hosts_causing_outages':
tac.c:685: error: 'hoststatus' undeclared (first use in this function)
tac.c:685: error: 'temp_hoststatus' undeclared (first use in this function)
tac.c:697: error: 'HOST_UP' undeclared (first use in this function)
tac.c:697: error: 'HOST_PENDING' undeclared (first use in this function)
tac.c: In function 'is_route_to_host_blocked':
tac.c:800: error: 'hoststatus' undeclared (first use in this function)
tac.c:800: error: 'temp_hoststatus' undeclared (first use in this function)
tac.c:816: error: 'HOST_UP' undeclared (first use in this function)
tac.c:816: error: 'HOST_PENDING' undeclared (first use in this function)
tac.c: In function 'display_tac_overview':
tac.c:1046: error: 'HOST_DOWN' undeclared (first use in this function)
tac.c:1047: error: 'HOST_UNREACHABLE' undeclared (first use in this
function)
tac.c:1048: error: 'HOST_UP' undeclared (first use in this function)
tac.c:1049: error: 'HOST_PENDING' undeclared (first use in this function)
tac.c:1186: error: 'SERVICE_CRITICAL' undeclared (first use in this
function)
tac.c:1187: error: 'SERVICE_WARNING' undeclared (first use in this function)
tac.c:1188: error: 'SERVICE_UNKNOWN' undeclared (first use in this function)
tac.c:1189: error: 'SERVICE_OK' undeclared (first use in this function)
tac.c:1190: error: 'SERVICE_PENDING' undeclared (first use in this function)
tac.c:1311: error: 'SERVICE_RECOVERY' undeclared (first use in this
function)
Thanks for support.
--
Le bon sens est la chose du monde la mieux partagée.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060224/9d9a2321/attachment.html>
More information about the Users
mailing list