Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
How do I make check_postgres.pl file make use of PGPASSFILE or PGPASSWORD parameters to connect to the database?
I tried setting up the environment variables in my Linux environment, but no success.
Also, is there a way to pass an encrypted password (like a md5hash) to the --dbpass variable and connect to the database?
If https://github.com/bucardo/check_postgres/blob/master/check_postgres.pl is the check_postgres.pl you are referring to, it does check the PGPASSWORD environment variable.
The question is then how to make sure that such variable exists on the environment check_postgres.pl is executed.
The nagios docs say to put whatever you need in /etc/sysconfig/nagios.
I suspect it depends a lot on how you installed nagios and/or if you installed it with some OS vendor package manager that does things differently, though.
At any rate, the docs: https://support.nagios.com/kb/article.php?id=489
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
So right now due to ERP system that I use in company I have heavily modified version 11 of Postgresql.
Now I need to have a clean version of Postgresql installed? Is that somehow possible to install Postgresql twice?
you can install the new version in another directory and start new postgresql in another port 5432 (example: 5433)
Yes, it is possible (see this answer also), but settings will slightly be different depending on OS that you use. Postgres uses by default port 5432 but you can change this, so even if you need both of versions to run at the same time it is not a problem. You just need to set a correct port. So simply put you can do that but need to change config file of one of the versions.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am trying to replicate an ubuntu OS which is has (NAT,Firewall etc) setup.I am trying to find away to install a preconfig os or the os image in production, to avoid installing and setting up manually in each and every machine.Is there a way to solve this problem?
Thank you
Two methods come to mind--both variations on a theme. There may be other better methods that others know of, but lets at least start with the following.
Method #1. Assuming that the hardware is exactly the same between systems, you may be able to copy an install from one disk to another (or clone it using 'dd').
Method #2. If you are using virtual machines, you may have a master copy that you copy as needed (instead of identical hardware, you have identical virtual hardware).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have written a custom command under user 'krishna' on my laptop, and now i want it to be available for other all user without redefining to each user. For now, i have defined the command in /home/krishna/.bashrc As this file exist under user krishna and work only for krishna. is there any way i can defile it globally for all users?
You can define the command in the /etc/bashrc or /etc/bash.bashrc file (which one depends on your distribution). One of these should exist on your machine.
Commands you define in your local /home/[USER]/.bashrc are only available for [USER].
Commands or aliase defined in /etc/bashrc are available for all useres
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
DBD::ODBC package is not available in repo. How to install the DBD::ODBC in fedora 17?.
How to achieve the ODBC DB connectivity using DBI->connect () module.
Thanks.
Your OS vendor's repo is always a nice convenience, but hardly comprehensive. Get everything else from CPAN.
Also, when using ODBC on a *nix box, your 1st step is to configure your ODBC data source according to your ODBC driver's documentation. Then provided you've set up ODBC & your Environment correctly, connecting from perl is trivial, your connect string would be "dbi:ODBC:$DSN"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Is it possible to write a System V init script (the scripts usually stored in /etc/init.d and run with service) in Perl, and have the shell recognize the #!/usr/bin/perl? Would there be any downside to doing this?
The scripts themselves can be written in any language, but support tools may need to parse the script for metadata required to decide when the initscript will start/stop. This restricts the choices to those which can make this metadata available in the form that the tools accept.
Additionally, there may be external files written in shell script which the initscript will require in order to operate properly/efficiently/effectively. Unless these files are very simple, any parser used to read them may grow very complex.