Hello, Yes, it can be done with your solution and sometimes it is ok, but in this case I need to modify an external script. I don't like it. What Will I do in the next release, modify it again ?
As idea, why don't add a new entry parameters below path in the output table? For example: path -> /usr/local/nagios_plugins/check_dirsize11.sh params -> -d /cygdrive/c/PROGRA~1/SAP/ SAPSPrint/Logs -w 5000000 -c 10000000 Thanks a lot for your time. 2015-03-06 13:27 GMT+01:00 Jan-Henrik Haukeland <[email protected]>: > >> On 06 Mar 2015, at 12:44, Kizito Porta Balanyà <[email protected]> wrote: >> >> Hello, >> >> When I receive the alerts , the description doesn't contain the arguments >> >> My monit config: >> >> check program checkSize_SapSprintLogs with path >> "/usr/local/nagios_plugins/check_dirsize11.sh -d >> /cygdrive/c/PROGRA~1/SAP/SAPSPrint/Logs -w 5000000 -c 10000000" >> >> The alert description: >> Description: '/usr/local/nagios_plugins/check_dirsize11.sh' >> failed with exit status (1) -- 6939796 KB - warning >> >> What I would like (arguments added): >> Description: '/usr/local/nagios_plugins/check_dirsize11.sh -d >> /cygdrive/c/PROGRA~1/SAP/SAPSPrint/Logs -w 5000000 -c 10000000' failed >> with exit status (1) -- 6939796 KB - warning >> >> I have something misconfigured? Is it possible? > > No, only the program name is used, no arguments. However, why not have your > program write to stdout or stderr this information? _Then_ it will be part of > the alert. That is, instead of having the program write '6939796 KB - > warning’ have it write ‘Warning: 6939796 KB is inside the range [5GB..10GB]’ > or whatever it is you need. > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
