Tag Archives: Nagios

How to reload nagios configuration as user nagios.

Hopefully you’re running Nagios under a special user with restricted permissions – mine is named nagios. There are many times when we’re adding and removing configuration files that we need to reload the configuration without restarting the service. The /sbin/service command usually requires elevated permissions and thus isn’t a tool that we can use to [...]
Posted in Nagios | Tagged | Leave a comment

Parse list_disk.pl to configure disk checks for nagios.

I wrote a post earlier regarding listing the available disks on a remote server using list_disks.pl and NRPE. This time, I’m going to provide a code snippet that you can use to parse that output. The code isn’t very complicated, so I’ll just provide it for your uses. my $list_disks = 'list_disks'; my $libexec = [...]
Posted in Nagios | Also tagged , | Leave a comment

List disks on linux server for nagios.

I wrote this simple script that I named list_disks.pl to help me configure my hosts. I use it as a NRPE check to query a server for all of its available disks, and parse the output to write configuration files. It is useful for automating host configuration files when the hosts don’t have consistent naming [...]
Posted in Nagios | Also tagged , , | Leave a comment