Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
pbrunnen
bypbrunnen, April 25, 2018
Really like this for checking the state of rsnapshot. Two quick things that will save you some time getting this working.
1. On debian, make sure to install 'libnagios-plugin-perl' on deb8 and prior or 'libmonitoring-plugin-perl' on deb9 and newer.
2. There is a minor parser bug as it doesn't account for consecutive tabs. This is easily corrected and fixes issue I was having not detecting a value for some parameters. The change is in sub parse_config, line 259 to make the tab split match one or more tabs.
Line 259:
- my @fields = split( /\t/, $_ );
+ my @fields = split( /\t+/, $_ );
Thanks again for a great plugin!
-Cheers, Peter.
1. On debian, make sure to install 'libnagios-plugin-perl' on deb8 and prior or 'libmonitoring-plugin-perl' on deb9 and newer.
2. There is a minor parser bug as it doesn't account for consecutive tabs. This is easily corrected and fixes issue I was having not detecting a value for some parameters. The change is in sub parse_config, line 259 to make the tab split match one or more tabs.
Line 259:
- my @fields = split( /\t/, $_ );
+ my @fields = split( /\t+/, $_ );
Thanks again for a great plugin!
-Cheers, Peter.