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...
It’s now been a hobby for many to live stream a camera footage (for eg : watching their pets or watching a bird’s nest etc ) to Youtube, Facebook etc , so that anyone can see it from anywhere in the world . It also attracts a good traffic to your channel . So...
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...
So I have been using Macbook for a good while and was absolutely happy with its performance . The RAM on it is 8GB but the storage is only 128GB . As I started using more softwares on it, I have decided to upgrade the storage on my Macbook . The first thing ,...
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 CPU’s you can set the cpu affinity to run certain processes on speicifc cores . cpuset is the command in FreeBSD for this . So I have a test server in AWS with two CPU cores . First we can verify the hardware by running the command : So...