not able to generate Nagios graph for apache connection
-
niraj_vara
- Posts: 20
- Joined: Thu Dec 13, 2012 1:38 am
not able to generate Nagios graph for apache connection
Hi
I have configure the following nagios plugin but I was not able to generate the Nagios graph. check_apacheconcreq check_connections.pl plugins.
From googling I found that perf data not generetad.
would anybody help how can I generate a perfdata for this two plugin ???
I have configure the following nagios plugin but I was not able to generate the Nagios graph. check_apacheconcreq check_connections.pl plugins.
From googling I found that perf data not generetad.
would anybody help how can I generate a perfdata for this two plugin ???
Re: not able to generate Nagios graph for apache connection
Can you post links to the two plugins? We might be able to take a look and make the changes. Barring that you can talk to the author and see if it could be added.
Former Nagios employee
-
niraj_vara
- Posts: 20
- Joined: Thu Dec 13, 2012 1:38 am
Re: not able to generate Nagios graph for apache connection
Hi
The following link from I downloaded the same
check_connections.pl
http://exchange.nagios.org/directory/Pl ... ns/details
check_apacheconcreq_1.1
http://exchange.nagios.org/directory/Pl ... eq/details
check_apache_load.pl
http://exchange.nagios.org/directory/Pl ... ad/details
The following link from I downloaded the same
check_connections.pl
http://exchange.nagios.org/directory/Pl ... ns/details
check_apacheconcreq_1.1
http://exchange.nagios.org/directory/Pl ... eq/details
check_apache_load.pl
http://exchange.nagios.org/directory/Pl ... ad/details
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: not able to generate Nagios graph for apache connection
If you feel comfortable making the changes you could read up on Performance Data here:
https://nagios-plugins.org/doc/guidelines.html
Otherwise I would contact the plugin's author if I were you and ask them to include it.
https://nagios-plugins.org/doc/guidelines.html
Otherwise I would contact the plugin's author if I were you and ask them to include it.
-
niraj_vara
- Posts: 20
- Joined: Thu Dec 13, 2012 1:38 am
Re: not able to generate Nagios graph for apache connection
Hi
Ohhhh I checked the link I feel that its very difficult for me to make changes on it. I am system admin and I dont much have knowledge on code side.
If you can help on this then it would be the great help from you.
Ohhhh I checked the link I feel that its very difficult for me to make changes on it. I am system admin and I dont much have knowledge on code side.
If you can help on this then it would be the great help from you.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: not able to generate Nagios graph for apache connection
Normally, we would not do this, however both of these are quite simple so I went ahead and made the changes. Give the attached plugin a shot and see if it will work for you. Note that it will take at least 3 checks before a graph will be generated.
- Attachments
-
check_connections.pl- (5.25 KiB) Downloaded 310 times
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
niraj_vara
- Posts: 20
- Joined: Thu Dec 13, 2012 1:38 am
Re: not able to generate Nagios graph for apache connection
Hi sreinhardt
This was very very great help. I am very greateful to you to spare your time to made changes on it . Really really very thankful to you.
For me main file for apache connection record is
check_apacheconcreq_1.1
http://exchange.nagios.org/directory/Pl ... eq/details
if possible then Please help on this file for graph.
I am not a developer so it's little difficult for me to understand the code. and made changes on it. You spare a time for me its really realy greate.
I really appreciate your help. thnks again.
This was very very great help. I am very greateful to you to spare your time to made changes on it . Really really very thankful to you.
For me main file for apache connection record is
check_apacheconcreq_1.1
http://exchange.nagios.org/directory/Pl ... eq/details
if possible then Please help on this file for graph.
I am not a developer so it's little difficult for me to understand the code. and made changes on it. You spare a time for me its really realy greate.
I really appreciate your help. thnks again.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: not able to generate Nagios graph for apache connection
As sreinhardt already mentioned this is not something we do.... we already did more then we normally would to help add this for you. I suggest you either ask the developer of the plugin, or you learn a bit of scripting to make the magic happen, we are not developers by trade either...
-
niraj_vara
- Posts: 20
- Joined: Thu Dec 13, 2012 1:38 am
Re: not able to generate Nagios graph for apache connection
Hi
would tell us the logic what would required in the scripts that will help to generate the nagios graph. so i can try to understand the script and add the same to generate the graph.
I have checked the following diff I found with your file
| 'Connections'=$count;$opt_w;$opt_c;;";
what actually it do. So the same logic also I can apply into the other script also.
would tell us the logic what would required in the scripts that will help to generate the nagios graph. so i can try to understand the script and add the same to generate the graph.
I have checked the following diff I found with your file
| 'Connections'=$count;$opt_w;$opt_c;;";
what actually it do. So the same logic also I can apply into the other script also.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: not able to generate Nagios graph for apache connection
If you read through the plugin guidelines as slansing posted above, this adds performance data to your check. Thus allowing nagios with proper extensions, to make graphs for you. Specifically you need to read the performance data section from the plugins guidelines.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.