It's uploaded to Nagios Exchange:
https://exchange.nagios.org/directory/P ... up/details
Search found 15 matches
- Wed Feb 19, 2025 2:30 am
- Forum: Open Source Nagios Projects
- Topic: check_hostgroup command
- Replies: 3
- Views: 10435
- Mon Jan 06, 2025 8:24 am
- Forum: Open Source Nagios Projects
- Topic: check_hostgroup command
- Replies: 3
- Views: 10435
check_hostgroup command
Hello, everyone! I’d like to share a Nagios plugin I created for monitoring hostgroups. This plugin enables precise monitoring by checking the percentage of hosts in a DOWN state within a hostgroup. This plugin is very useful when working with a host group containing many devices. If notifications a...
- Mon Mar 02, 2020 4:09 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
Are you using sendmail for mail client?
- Wed Feb 26, 2020 9:50 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
root@nagios:/tmp# su nagios -c 'env|grep LANG' LANG=en_US.UTF-8 root@nagios:/tmp# su nagios -c 'locale' LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8&quo...
- Tue Feb 25, 2020 3:59 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
Earlier you mentioned it worked from the commandline with the -a flags combined, can you try the following /usr/bin/printf "%b" "$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nDuration: $HOSTDURATION$\nAlias: $HOSTALIAS$\n\nDate/T...
- Mon Feb 24, 2020 4:34 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
Even tried with: command_line /usr/bin/printf "%b" "Здрасти, това тук е тестов текст на кирилица, изпратен от NAGIOS CGI." | /usr/bin/mail -a "Content-Type: text/plain; charset=UTF-8" -s "Заглавие на тестовия мейл" And again i received unterminated quoted stri...
- Fri Feb 21, 2020 3:40 pm
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
with -a 'Content-Type: text/plain; charset=UTF-8' : [1582317513] EXTERNAL COMMAND: SEND_CUSTOM_HOST_NOTIFICATION;$NameOfTheHost$;0;Nagios Admin;qwww [1582317528] wproc: Core Worker 16659: job 266 (pid=21826) timed out. Killing it [1582317528] wproc: CHECK job 266 from worker Core Worker 16659 timed ...
- Fri Feb 21, 2020 9:30 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
Well i tried with the following command line: /usr/bin/printf "%b" "$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nDuration: $HOSTDURATION$\nAlias: $HOSTALIAS$\n\nDate/Time: $LONGDATETIME$ \n" | /usr/bin/mail -s "**SITE1 ...
- Fri Feb 21, 2020 4:32 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
/usr/bin/printf "%b" "текст на кирилица" | /usr/bin/mail -s "proben tekst" -a "'From: anothermail@mail.com <anothermail@mail.com>'; Content-Type: text/plain; charset=UTF-8" mymail@mail.com Successfull received mail, but it's not taking the arguments after -a ...
- Tue Feb 18, 2020 3:30 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 4.4.5 email alerts with encoding
- Replies: 16
- Views: 22376
Re: Nagios 4.4.5 email alerts with encoding
I am using sendmail.
The command is working fine executed from the command line. With:
I receive
The command is working fine executed from the command line. With:
Code: Select all
-a "'From: someone <[email protected]>'; Content-Type: text/plain; charset=UTF-8"stderr line 01: /bin/sh: 1: Syntax error: Unterminated quoted string