Sponsored Content
Operating Systems Linux Nagios Installation in CentOS is having "Error #2 " Post 302589067 by lovesaikrishna on Tuesday 10th of January 2012 04:53:54 PM
Old 01-10-2012
Nagios Installation in CentOS is having "Error #2 "

Hello All,

I was trying to install Nagios on CentOS 6.2 by following the below link and having few errors at the "Install Nagios" section in the website, could you please let me know how to get rid of it and successfully install.

Install Nagios in CentOS CENTREON 6 | Linux Tutorial

I have pasted the link as well as system specifications along with error messages.

[root@nagiospoc nagios-3.2.0]# uname -a
Linux nagiospoc 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@nagiospoc nagios-3.2.0]# cat /etc/redhat-release
CentOS release 6.2 (Final)


[root@nagiospoc nagios-3.2.0]# make all
cd ./base && make
make[1]: Entering directory `/root/nagios-3.2.0/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
In file included from checks.c:40:
../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory
../include/epn_nagios.h:12:18: error: perl.h: No such file or directory
In file included from checks.c:40:
../include/epn_nagios.h:31: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âvoidâ
checks.c: In function ârun_async_service_checkâ:
checks.c:356: error: âSVâ undeclared (first use in this function)
checks.c:356: error: (Each undeclared identifier is reported only once
checks.c:356: error: for each function it appears in.)
checks.c:356: error: âplugin_hndlr_crâ undeclared (first use in this function)
checks.c:357: error: âSTRLENâ undeclared (first use in this function)
checks.c:357: error: expected â;â before ân_aâ
checks.c:363: error: âdSPâ undeclared (first use in this function)
checks.c:557: error: âENTERâ undeclared (first use in this function)
checks.c:558: error: âSAVETMPSâ undeclared (first use in this function)
checks.c:559: error: âSPâ undeclared (first use in this function)
checks.c:564: error: âPUTBACKâ undeclared (first use in this function)
checks.c:568: error: âG_SCALARâ undeclared (first use in this function)
checks.c:568: error: âG_EVALâ undeclared (first use in this function)
checks.c:570: error: âSPAGAINâ undeclared (first use in this function)
checks.c:572: error: âERRSVâ undeclared (first use in this function)
checks.c:581: error: âPOPsâ undeclared (first use in this function)
checks.c:634: error: âFREETMPSâ undeclared (first use in this function)
checks.c:635: error: âLEAVEâ undeclared (first use in this function)
checks.c:713: error: âG_ARRAYâ undeclared (first use in this function)
checks.c:717: error: âPOPpxâ undeclared (first use in this function)
checks.c:718: error: âPOPiâ undeclared (first use in this function)
make[1]: *** [checks.o] Error 1
make[1]: Leaving directory `/root/nagios-3.2.0/base'
make: *** [all] Error 2

Thanks
Saikrishna
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Red Hat

"No Drives Found" error during Redhat Linux AS 4 installation

I'm trying to install Redhat LInux AS 4 update 4 on an IBM x306 series server. I keep getting following error: "No Drives Found. An error has occurred - no valid devices were found on which to create new file systems. Please check your hardware for the cause of this problem." I called IBM and... (2 Replies)
Discussion started by: pieman8080
2 Replies

3. HP-UX

ERROR: more than one instance of overloaded function "vprintf" has "C" linkage

Hi people! I've got this own library: -------------------------------------------- Personal.h -------------------------------------------- #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdarg.h> #include <string.h> ... (0 Replies)
Discussion started by: donatoll
0 Replies

4. AIX

Ssh installation error "RSA key generation failed"

While trying to upgrade ssh from v4.7 to v5.0 on AIX 5.3 TL9, I end up with the following error. Has anyone come across this? Note: openssl has been upgraded to 0.9.8.840 before this upgrade Bala (0 Replies)
Discussion started by: balaji_prk
0 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

7. Red Hat

Nagios is sending "Service Alert: CentOS 5/HTTP is WARNING"

Hello All, I have setup Nagios 3.2.3 on CentOS release 5.7 (Final) with the default config files and added 1 host to it and it is sending "Service Alert: CentOS 5/HTTP is WARNING" frequently, how do you fix this one? what are the additional files that need to be added so that I can monitor the... (0 Replies)
Discussion started by: lovesaikrishna
0 Replies

8. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

9. Linux

Read only access for Group called "Developers" to all folders on the Centos 6.6

Linux Gurus, I need to provide Read only access for particular group of users, they should have Read only access to entire server except their Home directory. I tried using setfacl that's not helping. Can you please suggest is there any other alternate way to address this request. Your help is... (5 Replies)
Discussion started by: shekar777
5 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
ISALPHA(3)						     Linux Programmer's Manual							ISALPHA(3)

NAME
isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit - character classifi- cation routines SYNOPSIS
#include <ctype.h> int isalnum(int c); int isalpha(int c); int isascii(int c); int isblank(int c); int iscntrl(int c); int isdigit(int c); int isgraph(int c); int islower(int c); int isprint(int c); int ispunct(int c); int isspace(int c); int isupper(int c); int isxdigit(int c); DESCRIPTION
These functions check whether c, which must have the value of an unsigned char or EOF, falls into a certain character class according to the current locale. isalnum() checks for an alphanumeric character; it is equivalent to (isalpha(c) || isdigit(c)). isalpha() checks for an alphabetic character; in the standard "C" locale, it is equivalent to (isupper(c) || islower(c)). In some locales, there may be additional characters for which isalpha() is true--letters which are neither upper case nor lower case. isascii() checks whether c is a 7-bit unsigned char value that fits into the ASCII character set. This function is a BSD extension and is also an SVID extension. isblank() checks for a blank character; that is, a space or a tab. This function is a GNU extension. iscntrl() checks for a control character. isdigit() checks for a digit (0 through 9). isgraph() checks for any printable character except space. islower() checks for a lower-case character. isprint() checks for any printable character including space. ispunct() checks for any printable character which is not a space or an alphanumeric character. isspace() checks for white-space characters. In the "C" and "POSIX" locales, these are: space, form-feed ('f'), newline (' '), carriage return (' '), horizontal tab (' '), and vertical tab ('v'). isupper() checks for an uppercase letter. isxdigit() checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F. RETURN VALUE
The values returned are nonzero if the character c falls into the tested class, and a zero value if not. CONFORMING TO
ANSI - C, BSD 4.3. isascii() is a BSD extension and is also an SVID extension. isblank() is a GNU extension. NOTE
The details of what characters belong into which class depend on the current locale. For example, isupper() will not recognize an A - umlaut as an uppercase letter in the default C locale. SEE ALSO
tolower(3), toupper(3), setlocale(3), ascii(7), locale(7) GNU
1995-09-02 ISALPHA(3)
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy