I can disable SNMP log using snmpd.options in RHEL or CentOS, but I can't find any solution in BSDs. Does anyone knows how to disable it or change the log location? The SNMP message is fillng up my /var directory always, and it's annoying.
You can configure the options to pass to daemons, but how you can configure it is depends on BSDs (much like it differ between Linux distributions). So, you better refer to documentation.
For FreeBSD 9.x + net-snmp installed via ports, you can configure such in /usr/local/etc/rc.conf as variable snmpd_flags. Check /usr/local/etc/rc.d/snmpd how it is used.
Related
I made my own linux distribution with buildroot. In "make menuconfig" and "make linux-menuconfig" I checked all options related to "ppp" and "pppd". Unfortunately, after building my distribution I can't use the commands "pon", "poff", "plog" and probably others. The system cannot see them. I looked and they are not in "/ usr / bin" or "/ usr / sbin". What could be causing this? I found out somewhere that these are debian-only commands, but how can I enable the pppd daemon?
ppd, pppd, pon, and etc are userland applications you need to install them using buildroot. So far you have enabled support in the kernel for ppp but you have not installed the actual application that manages the ppp connections which is pppd
If build root doesn't already have a package for ppp/pppd, you can make a recipe to do that. The official website is: https://ppp.samba.org/
pon, poff, and plog can be found in the scripts directory of the sources code.
I want to enable SSH service on BusyBox server (currently I can connect only via Telnet), so I think , that I need to compile SSH server , and send it to BusyBox router. So my question is - how to create SSH server binary to send it to BusyBox via FTP?
You're taking a wrong direction.
1/ "How to enable SSH on BusyBox."
You can't.
2/ And "without recompiling BusyBox?"
You won't, because #1.
Because busybox in itself does not provide an SSH server nor client.
Now that your question is answered:
The usual way to add an SSH server to a busybox based system is to add dropbear, first on the list of "tiny utilities whose functionality is not provided by busybox":
https://busybox.net/tinyutils.html
https://matt.ucc.asn.au/dropbear/dropbear.html
How to compile dropbear (because you will have to), then install and run on your system is now another topic, on which no one can help you without further details on your target system or your cross toolchain.
Multiple zabbix agent can be easily installed on windows system like this
zabbix_agentd.exe --config <configuration_file_for_instance_1> --install --multiple-agents
zabbix_agentd.exe --config <configuration_file_for_instance_2> --install --multiple-agents
...
zabbix_agentd.exe --config <configuration_file_for_instance_N> --install --multiple-agents
You can find more details on zabbix official documentation I have tried and It is working perfectly.
But, I could not find any documentation on multiple linux agents. Even I could not found any info whether it is possible or not.
I have tried running zabbix_agentd with same parameters(--install --multiple-agents) on linux. But these parameters are not valid on linux system. Or any other similar parameter exists.
So, basicly is it possible to run multiple agent on linux environment(especially centos)? And, if it is possible how?
Yes, it is possible. One should simply specify different configuration files that specify different PID files, log files, ports to listed on, etc., so that agents do not conflict with one another, similar to how you would do it on Windows.
In particular, in Unix there is a concept of a PID file. A PID file is created automatically by Zabbix agent when it starts and contains the PID of the main process. Scripts use this information to stop the currently running agent. When Zabbix agent is stopped, the PID file is automatically removed.
I am looking for a solution for a remote development environment as follows:
Editor - Windows Source Insight / Visual Studio
Source control - Clearcase
Build server - Linux
The above can't be modified.
In my current setup, I can view and edit the sources on Windows using a Windows Cleacase client.
My problem is mainly the build (and the later on, the debug) process.
I need to invoke 'make' from Windows on a specific Clearcase view on the Linux Server.
I can login in a separate process using SSH to the Linux server and run 'make', but it is a cumbersome procedure.
I am also unable to view the 'make' results and double-lick them to go to the specific warning/errors.
Is there any way to remotely bind a Windows command/batch to a Linux environment?
Perhaps through SSH?
Thank you for any suggestion you might have.
The usual solution is rather a pull strategy (where your build server fetches information on Linux, rather than trying to pilot everything from Windows.
If you follow the SSH path, be aware of technote swg21351507:
Linux SSH connection hangs when attempting to exit after starting ClearCase.
This can affect the use of scripts to start/stop ClearCase remotely using SSH.
Cause
This is a due to a OpenSSH server design, which will not close the console until all process/jobs executed by the user are completed.
Refer to this SSH FAQ for further details, regarding background jobs.
Resolving the problem
Redirect the ClearCase start script to either /dev/null or to a log file.
Example:
/usr/atria/etc/clearcase start < /dev/null >& /dev/null
/usr/atria/etc/clearcase start < /tmp/ccstart >& /tmp/ccstart
Try sshfs. I don't if there is a sshfs client for windows. If not, you can try NFS, or even SAMBA. Those definately work in Windows and Linux.
I just came across this and wanted to answer, even if the original poster has surely resolved their issue. This could be quite easily resolved by installing a jenkins instance on the build machine. You could kick off the build from the web interface and have it pull the files from clearcase and tell you the results.
Kcachegrind rocks and it's of my favorite tools, however from time to time I'm missing the ability to run it in terminal(e.g using ssh) on the remote server.
I know it's possible to setup VNC or X-server forwarding but it's quite clumsy while I need something simple.
Is there any kcachegrind console alternative(e.g ncurses based)?
You can get basic information and annotations from callgrind output file (created by valgrind --tool=callgrind) with the command-line utility callgrind_annotate. (manual page section in docs). For files, generated by cachegrind (valgrind --tool=cachegrind), you can use a cg_annotate (section in docs). These utilities are build by default with valgrind itself.
Another way is to copy program and cache/callgrind output files to your machine and then analyze them with local kcachegrind as usual. But this way it can be difficult if your machine have no unix but windows or you running on incompatible arch (kcachegrind can call local objdump to get information about program).
I also want to recommend command line options to valgrind:
valgrind --tool=cachegrind --branch-sim=yes
valgrind --tool=callgrind --dump-instr=yes --trace-jump=yes
You can also specify cache sizes for cachegrind with --I1=32768,8,64 --D1=32768,8,64 --L2=3145728,12,64
webgrind is a web-frontend written in PHP that parses the output of XDebug (which uses the same format as callgrind).
Use SSHFS to mount the remote directory that you're working in (see e.g. SSHFS installation instructions for Ubuntu).
Then just ssh in and run valgrind --tool=callgrind with whatever options you want in the remote directory. Since you have that directory mounted locally, it's as easy to open the data files with KCacheGrind as if you were debugging locally.
Running Valgrind/Callgrind at the remote host appears to be a good option. Or, you could scp the output from Valgrind or Callgrind to your PC and run KCachegrind on it.
If you use Emacs, you could fire it up on the remote host and do as shown here, which will give you an Emacs'ish frontend for the valgrind tool.
kcachegrind states in its help that it is a frontend to cachegrind and callgrind.
cachegrind and callgrind are parts of the latest version (3.5) of valgrind. So, download valgrind from http://valgrind.org/downloads/current.html#current and build it. Run valgrind --help, it shows you how to use callgrind functionality.
For more information I need to know what you want to do.