Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
What distro are you on? You should have a /usr/local/nagios/libexec directory by default if you configured the plugins package on Centos/RHEL.
For the top one you posted, you did not follow the directions... you need to use the node package manager, not yum, I suggest you re-read the instructions and try that one out first.
Most likely, the path with nagios-html-email in it is not in the PATH variable for the Nagios server. Ensure the path given by which nagios-html-email is in the PATH of the Nagios server.
root@Nagios objects]# nagios-html-email service http://nagios.example.com | mailx -t
env NAGIOS_CONTACTEMAIL or `-a <address>` must be supplied!
Usage: nagios-html-email [options] <service|host> [arg1] [arg2] ...
This command is meant to be run from nagios when a service or host
experiences problems. The output will be suitable for passing to
a mail program that takes raw email data like `mailx -t`
Options
-a, --address <email> the email address to send mail to, defaults to env NAGIOS_CONTACTEMAIL
-h, --help print this message and exit
-s, --subject <subject> the email subject to use, defaults to _subject for the host/service, or default nagios subject
-t, --template-dir <dir> dir to find ejs template files, defaults to builtin templates
-u, --updates check for available updates on npm
-v, --version print the version number and exit
No message, no subject; hope that's ok
No recipients specified
"/root/dead.letter" 7/186
[root@Nagios objects]#
su nagios
nagios-html-email service http://nagios.example.com | mailx -t
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Let us know if you have issues with the nagios account and /bin/login or nologin).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.