folder watch
folder watch
Thanks in advance for trying to help.
Using the configuration wizard, trying to setup "folder watch" where if a file is created in a folder then an email will get sent out.
In using the configuration wizard, i'm getting:
It looks like the install script has failed. You may need to run the script as root:
sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
In running install.sh, i'm getting:
root@node-0:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
/usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh: 2: /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh: yum: not found
Seems install.sh installs perl and i checked to see if perl has been installed.
root@node-0:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# perl -version
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Using the configuration wizard, trying to setup "folder watch" where if a file is created in a folder then an email will get sent out.
In using the configuration wizard, i'm getting:
It looks like the install script has failed. You may need to run the script as root:
sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
In running install.sh, i'm getting:
root@node-0:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
/usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh: 2: /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh: yum: not found
Seems install.sh installs perl and i checked to see if perl has been installed.
root@node-0:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# perl -version
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Re: folder watch
What OS is this machine using? Can you share the output of:
Can you also share the output of:
Code: Select all
cat /etc/*-releaseCode: Select all
yum updateFormer Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: folder watch
root@vps-cl0:/usr/local/nagiosxi/html# cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
Re: folder watch
Nagios XI is not currently supported for Ubuntu based systems. We only currently support clean minimal CentOS and RHEL systems.
Having said that, you might try to modify the /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh file to use apt-get instead of yum. Not sure if the packages being installed for this wizard are in apt though.
You could also install the module through cpan:
Having said that, you might try to modify the /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh file to use apt-get instead of yum. Not sure if the packages being installed for this wizard are in apt though.
You could also install the module through cpan:
Code: Select all
cpan -i Date::ParseFormer Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: folder watch
thanks mcapra.
The specific install.sh is trying to install perl.
root@vps-cl0:/usr/local/nagiosxi/html# more /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
#!/bin/sh
yum install 'perl(Date::Parse)' -y
exit 0
However, perl is already on the server.
root@vps-cl0:/usr/local/nagiosxi/html# perl -version
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Do I still need to run install.sh replacing yum with apt-get
The specific install.sh is trying to install perl.
root@vps-cl0:/usr/local/nagiosxi/html# more /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
#!/bin/sh
yum install 'perl(Date::Parse)' -y
exit 0
However, perl is already on the server.
root@vps-cl0:/usr/local/nagiosxi/html# perl -version
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Do I still need to run install.sh replacing yum with apt-get
Re: folder watch
The script is actually trying to install the perl module Date::Parse which is required for the folder watch plugin.
It looks like the equivalent apt package is libdatetime-format-dateparse-perl if installing the module through cpan is not an option.
It looks like the equivalent apt package is libdatetime-format-dateparse-perl if installing the module through cpan is not an option.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: folder watch
thanks mcapra.
root@node-1:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# more install.sh
#!/bin/sh
#yum install 'perl(Date::Parse)' -y
cpan -i Date::Parse
exit 0
And running install.sh, I got below.
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Date::Parse is up to date (2.30).
However, still getting same error message from configuration wizard.
It looks like the install script has failed. You may need to run the script as root:
sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
root@node-1:/usr/local/nagiosxi/html/includes/configwizards/folder_watch# more install.sh
#!/bin/sh
#yum install 'perl(Date::Parse)' -y
cpan -i Date::Parse
exit 0
And running install.sh, I got below.
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Date::Parse is up to date (2.30).
However, still getting same error message from configuration wizard.
It looks like the install script has failed. You may need to run the script as root:
sh /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
Re: folder watch
Again, this is likely the result of trying to use Nagios XI on an Ubuntu system; We currently only support and test against CentOS and RHEL.
Can you share the output of the following from the CLI:
Can you share the output of the following from the CLI:
Code: Select all
perl -MDate::Parse -e ';'
echo $?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: folder watch
thanks mcapra again.
command seems to have executed ok.
root@node-1:/home/vps# perl -MDate::Parse -e ';'
root@node-1:/home/vps# echo $?
0
command seems to have executed ok.
root@node-1:/home/vps# perl -MDate::Parse -e ';'
root@node-1:/home/vps# echo $?
0
Re: folder watch
What version of Nagios XI are you using? Also what version of the Folder Watch wizard are you using?
You should be able to find the Folder Watch version under Admin->Manage Config Wizards.
You should be able to find the Folder Watch version under Admin->Manage Config Wizards.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/