So when you have a custom plugin and you run it locally you will get the correct output but when you call the same plugin from the remote server (nagiosadmin) the output will be wrong . This is a user permission issue on some files you specified in the plugin script .For eg :...
When you are scripting in shell , you might need the output of a shell command assigned to a variable and then you use that variable somewhere else in the script . So in this case there are chances that the whitespace occurs in the command output and when you use it somewhere else...
If you want to display the largest files from the current directory To display output from a specific directory , here I m looking for the files from /var directory To see the same output in more readable format like in GB from the current directory some of the options thats using with the...
Prerequsites : Install OpenVPN client packages Now create openvpn folder in /usr/local/etc/ . I always create seperate folders for client and server . So I can use it if I need to run both server and client from a same device . Now you can copy a sample client config to this location ,...
nohup stands for no hangup is a commandline utility that ignores the HUP signals coming to the commands running on a shell. So when a shell is terminated , the processes associated with that shell recieves a hup signal . So that those processes gets stopped or hangup . So the nohup helps us...
Live streaming camera footage, such as watching pets or observing a bird’s nest, has become a popular hobby. Platforms like YouTube and Facebook allow anyone to view these streams from anywhere in the world, often driving significant traffic to your channel. In this guide, we’ll explore how to set up a live stream using...
FFMPEG is an encoding/decoding tool , you might need it if you want to live stream a camera to youtube , facebook etc via your Linux machines . The below is a popular error you might encounter if your camera password has special characters like ?,$ etc . So in the above error you...
I’ve been using a MacBook for quite some time and have been very satisfied with its performance. It has 8GB of RAM, but the storage is limited to just 128GB. As I started using more software, I decided it was time to upgrade the storage on my MacBook. The first step I took was...
Sometimes , you might need to create files of different sizes for various testing purposes. For eg : testing an FTP or downloading a large file via VPN etc . The dd command in Linux is used to create the empty file with a specific size The above dd command creates a 10 MB...
If your hardware has multiple CPUs, you can set CPU affinity to run certain processes on specific cores. In FreeBSD, the cpuset command is used for this purpose. I have a test server on AWS with two CPU cores. First, let’s verify the hardware by running the following command: So you can see I...