Page 1 of 1
not able to generate Nagios graph for apache connection
Posted: Fri Apr 25, 2014 7:39 am
by niraj_vara
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 ???
Re: not able to generate Nagios graph for apache connection
Posted: Fri Apr 25, 2014 9:29 am
by tmcdonald
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.
Re: not able to generate Nagios graph for apache connection
Posted: Mon Apr 28, 2014 11:45 pm
by niraj_vara
Re: not able to generate Nagios graph for apache connection
Posted: Tue Apr 29, 2014 9:46 am
by slansing
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.
Re: not able to generate Nagios graph for apache connection
Posted: Tue Apr 29, 2014 11:57 pm
by niraj_vara
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.
Re: not able to generate Nagios graph for apache connection
Posted: Wed Apr 30, 2014 11:49 am
by sreinhardt
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.
Re: not able to generate Nagios graph for apache connection
Posted: Thu May 01, 2014 4:47 am
by niraj_vara
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.
Re: not able to generate Nagios graph for apache connection
Posted: Thu May 01, 2014 9:34 am
by slansing
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...
Re: not able to generate Nagios graph for apache connection
Posted: Thu May 01, 2014 11:50 pm
by niraj_vara
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.
Re: not able to generate Nagios graph for apache connection
Posted: Fri May 02, 2014 10:11 am
by sreinhardt
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.