Category / Linux

After reading cron.weekly a few weeks ago, I was intrigued by binsnitch.py, a tool that creates a baseline file with the md5/sha256/… hash of every file you wish to monitor. In case you think you have a virus, malware or cryptovirus you can verify easely what files have been changed. This is kinda fun, the […]

Read More

I have not found easy explanation on what kind of error states are in Rocks, Grid Engine, so I am collecting them here as I find them. Show states First let’s find the overview of the nodes; this can be done using qstaf -f qstat -f Result should be something like : # qstat -f […]

Read More

I hit upon this error : Cannot open your terminal ‘/dev/pts/0’ – please check. after being logged in under root and su to a user profile; su user and then willing to resume a screen : # screen -r copy.pid Cannot open your terminal ‘/dev/pts/3’ – please check. The issue is resolved using : script /dev/null I previously had similar issues, but […]

Read More

I found these errors today in my the cron log : /var/log/cron  May 10 09:53:01 sysadmin CROND[2267]: (librenms) CMD ( /opt/librenms/alerts.php >> /dev/null 2>&1) May 10 09:54:01 sysadmin crond[63]: (root) BAD FILE MODE (/etc/cron.d/librenms.cron) I wrongly assumed a 755 permission was needed for crons, seems I was wrong. For cron execution we only need 644. Surprisingly […]

Read More

ZFS quota

19 April, 2017

ZFS is loaded with useful features, just a while ago I took a peak at setting quotes. Using just a few commands you limit the amount  of storage a certain pool can take. First let’s check if there is no quota set : zfs get quota This would result in something like : # zfs […]

Read More

One of those things I never spend much time on was reading about NFS. There is no need for it, it just kinda works out the box. Most of the time that is. The headache starts when it stops working, or pushes your cluster to a grind. One of the first resources you will find […]

Read More

error libwrap missing

22 March, 2017

While compiling bareos I got this error : checking for socket… yes using socket from libc checking for library containing nanosleep… no checking for libwrap… configure: error: *** libwrap missing The missing library on Centos is : tcp_wrappers-devel Fix : yum install tcp_wrappers-devel

Read More

The well known, good’ol LAMP stack has slowly made place for a LEMP stack in many of my configurations. Enough articles have been written on why Apache or Nginx are better in certain situations, but I like the clean way of configuration that Nginx uses. (pronounced Engine X, hence the E in LEMP). So I generally […]

Read More

We recently moved over from Slack to a self-hosted communication app : Rocket.chat . One of the things I really enjoyed on slack, was the fact that there is a huge amount of integrations. Even from bash one can write to slack. This is particularly nice for reports of cron jobs, previously I relied on e-mails, but those tend to get […]

Read More

After setting up my first job in bareos, I got this error : sysadmin-fd JobId 4: Error: bsock_tcp.c:187 bnet_host2ipaddrs() for host “bareos” failed: ERR=Name or service not known sysadmin-fd JobId 4: Fatal error: Failed to connect to Storage daemon: bareos:9103 bareos-dir JobId 4: Fatal error: Bad response to Storage command: wanted 2000 OK storage , […]

Read More