<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I run nagios for a few organisations and write a lot of plugins
myself for checkpoint firewalls and other networking equipment.<br>
<br>
My plugins rely on some macros to be available as environment
variables and I just switched my first nagios qa environment to
naemon which was pretty smooth except for the macro part.<br>
<br>
I found in the documentation of naemon
(<a class="moz-txt-link-freetext" href="http://www.naemon.org/documentation/usersguide/macros.html">http://www.naemon.org/documentation/usersguide/macros.html</a>) that I
should specify my macros in the command and I understand the logic
behind not evaluating all macros:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
define command {<br>
command_name my_old_notification_script<br>
command_line NAGIOS_HOSTNAME="$HOSTNAME$"
/usr/local/bin/notifiy.pl ...<br>
}<br>
<br>
But this doesnt work for me when my plugin is run naemon says this
on the service output.<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<br>
(No output on stdout) stderr: execvp(NAEMON_HOSTNAME=SC_cswitch01,
...) failed. errno is 2: No such file or directory<br>
<br>
Is there something wrong with my setup or is the documentation
wrong?<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
define host {<br>
host_name linuxbox<br>
address 192.168.1.1<br>
_MACADDRESS 00:01:02:03:04:05<br>
...<br>
}<br>
<br>
Also it would be great if at least the custom macros could be made
available as environment variables. They will never be many so I
think from a performance standpoint they should not cause to much
overhead. Are they available as environment variables now?<br>
<br>
Thanks for all the hard work you put into this and I really
appreciate naemon which I anticipate will have a much faster
development rate than nagios and already includes more modern
components than nagios-core (like thruk and livestatus).<br>
<br>
Best Regards<br>
Magnus<br>
</body>
</html>