Hello everyone,
I'm tired of click checkboxes if I acknowledge a service in Nagios.
So I wan't du modify the prechecked checkboxes.
I found this lines in cmd.cgi, so this is a compiled .c file.
I downloaded source-code of installed version and copied out the cmd.c
so my problem:
if I want to compile this cmd.c - file, it gives a lot of errors.
how can I compile this file?
I tried with "gcc cmd.c -o cmd.cgi",
this throws a lot of errors like "error: âOKâ undeclared (first use in this function)"
Can someone please help me?
Thanks a lot and kind regards
V3xX
[SOLVED] compile only cmd.c
[SOLVED] compile only cmd.c
Last edited by V3xX on Fri Nov 23, 2012 4:02 am, edited 1 time in total.
Re: compile only cmd.c
You should really recompile all of Nagios. The CGIs are not separate executables.
Re: compile only cmd.c
Thanks for your answer.
Didn't get it how to compile whole nagios under RHEL 5.8.
can someone assist me?
Thanks and kind regards
Didn't get it how to compile whole nagios under RHEL 5.8.
can someone assist me?
Thanks and kind regards
Re: compile only cmd.c
I think this document will help you a lot with that.
Re: compile only cmd.c
hello,
every time i try to run following error occures:
here is the group:
here is user nagios:
i'm logged in with root
where is my fault?
Thanks for your help and kind regards
V3xX
every time i try to run
Code: Select all
./configure --with-command-group=nagcmdCode: Select all
[root@ch10mgm9001 nagios-3.2.3]# ./configure --with-command-group=nagcmd
-bash: ./configure: Permission deniedhere is the group:
Code: Select all
nagcmd:x:501:nagiosCode: Select all
nagios:x:101:102:nagios:/var/log/nagios:/bin/shwhere is my fault?
Thanks for your help and kind regards
V3xX
Re: compile only cmd.c
oh, i got it.
the file permission was the problem.
edit it with chmod cleared that error.
thanks anyway
V3xX
the file permission was the problem.
edit it with chmod cleared that error.
thanks anyway
V3xX
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: [SOLVED] compile only cmd.c
If this is related to your other "cmd.cgi" thread please let us know so that we may check that one as solved as well.
Re: [SOLVED] compile only cmd.c
hi, this is only a few related. after i could compile the .c - file i'm unable to replace the .cgi - file.
but for this case i opened a new thread.
but for this case i opened a new thread.