Hello Team
I am trying to use this plugin: https://exchange.nagios.org/directory/P ... ls/details
I am getting the following error, do you if any prerequisites needed for this plugin? do we need perl?
[root@prodnagios libexec]# ./check_unread_mails.pl
-bash: ./check_unread_mails.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
Thanks
Insurity
check_unread_mails Plugin in NagiosXI
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_unread_mails Plugin in NagiosXI
this looks like you have windows line ending in the file
Lets install a line ending converter
Then run the following
Lets install a line ending converter
Code: Select all
yum install dos2unix -yCode: Select all
dos2unix /usr/local/nagios/libexec/check_unread_mails.pl