check_tomcatSessions
check_tomcatSessions
I am currently trying to install this plugin to monitor tomcat, however I am getting and error reading
http://exchange.nagios.org/directory/Pl ... ns/details
Error : The permissions on one or more configuration files or scripts appear to be incorrect. This will prevent your configuration from being applied properly.
When I go to the command line portion though I do not know how many parameters to give and even when I follow the doc I still get errors.
Thanks in advance
http://exchange.nagios.org/directory/Pl ... ns/details
Error : The permissions on one or more configuration files or scripts appear to be incorrect. This will prevent your configuration from being applied properly.
When I go to the command line portion though I do not know how many parameters to give and even when I follow the doc I still get errors.
Thanks in advance
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_tomcatSessions
Can you explain what actions you performed to get the error?
You should be able to upload this plugin vi Admin > Manage Plugins
The details for the plugin on code.google.com are as follows:
You should be able to upload this plugin vi Admin > Manage Plugins
The details for the plugin on code.google.com are as follows:
Code: Select all
Usage: check_tomcatSessions [ -H hostname or IP address ] [ -P port ] [ -u username ] [ -p password ] [ -s session_name ] [ -w warning ] [ -c critical ] [ -V tomcat_version (6 for tomcat pre-7 or 7) ]
If session_name is omitted (default) then the total number of sessions is calculated
DEFAULTS
hostname=localhost
port=8080
username=Administrator
password=password
session_name=
warning=100
critical=400
tomcat_version=6As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: check_tomcatSessions
I have tried that exactly but when I go to add it in Nagios I keep getting this error
Error : The permissions on one or more configuration files or scripts appear to be incorrect. This will prevent your configuration from being applied properly.
Error : The permissions on one or more configuration files or scripts appear to be incorrect. This will prevent your configuration from being applied properly.
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_tomcatSessions
Are you getting the error upon trying to execute the check, or when attempting to apply configuration?
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_tomcatSessions
These would be completely separate cases. Getting a permissions error when attempting to write config files, indicates an issue with the permissions in /usr/local/nagios/etc/ getting them when attempting to execute the plugin, means that the plugin is missing a config file that you need to provide or correct permissions on. Could you show us a screenshot or text output from when you are seeing this error in both cases?
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.
Re: check_tomcatSessions
Here are the errors I get
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_tomcatSessions
OK so the first image, is an unknown likely due to the plugin not being able to communicate with your tomcat server, not due to permissions issues on nagios configs. The second message is due to XI scripts or the nagios configs having bad permissions. Let's check those out first. Please run the following and send back the results.
Code: Select all
ls -lart /usr/local/nagios/etc/services
ls -lart /usr/local/nagios/etc/services -d
ls -lart /usr/local/nagios/etc/hosts
ls -lart /usr/local/nagios/etc/hosts -d
ls -lart /usr/local/nagios/etc/
ls -lart /usr/local/nagios/etc/ -d
ls -lart /usr/local/nagios/ -dNagios-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.
Re: check_tomcatSessions
Ok here is what I get
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_tomcatSessions
Those permissions look correct, but it seems to indicate that you currently have no hosts and services, is this correct? If so, there are (or at least were) known issues with having no configs in hosts and services folders, and this may be related.
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.