<br /><b>
What I don´t understand is that when I use:</b><br />
<br />
./check_mrtgtraf -F /var/www/mrtg/memswap.log -a MAX<br />
<br /><b>
I get this answer:</b><br />
<br />
Traffic CRITICAL - Max. In = 217.0 B/s, Max. Out = 0.0
B/s|in=217.000000B/s;;;0.000000<br />
in=0.000000B/s;;;0.000000<br />
<br /><b>
So, How do I translate this to the correct syntax in check_mrtgtraf! ...</b>
<br />
<br />
<br /><p>About Pre-flight check (/usr/local/nagios/bin/nagios -v
/etc/nagios/nagios.cfg)</p><p><b>That´s What I got:</b></p><br />
<br />
Nagios 3.0.2<br />
Copyright (c) 1999-2008 Ethan Galstad (<a target="_blank"
href="http://www.nagios.org">http://www.nagios.org</a>)<br />
Last Modified: 05-19-2008<br />
License: GPL<br />
<br />
Reading configuration data...<br />
<br />
Warning: Duplicate definition found for service 'cmbbkp01' on host 'Memory
Usage' (config<br />
file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 161)<br />
Running pre-flight check on configuration data...<br />
<br />
Checking services...<br />
Checked 46 services.<br />
Checking hosts...<br />
Checked 13 hosts.<br />
Checking host groups...<br />
Checked 7 host groups.<br />
Checking service groups...<br />
Checked 0 service groups.<br />
Checking contacts...<br />
Checked 2 contacts.<br />
Checking contact groups...<br />
Checked 2 contact groups.<br />
Checking service escalations...<br />
Checked 0 service escalations.<br />
Checking service dependencies...<br />
Checked 0 service dependencies.<br />
Checking host escalations...<br />
Checked 0 host escalations.<br />
Checking host dependencies...<br />
Checked 0 host dependencies.<br />
Checking commands...<br />
Checked 25 commands.<br />
Checking time periods...<br />
Checked 5 time periods.<br />
Checking for circular paths between hosts...<br />
Checking for circular host and service dependencies...<br />
Checking global event handlers...<br />
Checking obsessive compulsive processor commands...<br />
Checking misc settings...<br />
<br />
Total Warnings: 0<br />
Total Errors: 0<br />
<br />
Things look okay - No serious problems were detected during the pre-flight
check<br />
cmbmonitor01:/usr/local/nagios/etc/objects # service nagios start<br />
Starting nagios: done.<br />
<br />
> Hello,<br />
><br />
> you can test your nagios configs if you try:<br />
><br />
> (you have to set correct path to nagios and the config)<br />
><br />
> /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg<br />
><br />
> Perhaps you can post the output.<br />
><br />
> You can find the plugin in you nagios libexec Folder.<br />
> The service definition is ok, because the command definition looks like
that:<br />
><br />
> # 'check_local_mrtgtraf' command definition<br />
> define command{<br />
> command_name check_local_mrtgtraf<br />
> command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w <br
/>
> $ARG3$ -c $ARG4$ -e $ARG5$<br />
> }<br />
><br />
> How do you try to connect to the remote machine?<br />
> If you try to connect via ssh, you need the plugin on the remote <br />
> machine, too.<br />
><br />
><br />
> Steffen<br />
>><br />
>> Gentlemen.<br />
>><br />
>> I´ve been fighting with Nagios 3.0.2 on OpenSuse 10.3 while trying <br
/>
>> to integrate MRTG and Nagios.<br />
>><br />
>> I have followed the sample in Nagios docs which guides us to:<br />
>><br />
>> define service{<br />
>> use generic-service<br />
>> host_name linksys-srw224p<br />
>> service_description Port 1 Bandwidth Usage<br />
>> check_command <br />
>>
check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,2000000!5000000,5000000!10<br
/>
>> }<br />
>><br />
>> But first of all this plugin check_local_mrtgtraf! is not found, but
<br />
>> check_mrtgtraf and every time I try to adapt the sample with my <br />
>> path/mylog or changing check_local_mrtgtraf to check_mrtgtraf!<br />
>><br />
>> I don´t get any success. Besides I can´t even start Nagios and get <br
/>
>> this Msg: Starting nagios:CONFIG ERROR! Start aborted. Check your <br
/>
>> Nagios configuration.<br />
>><br />
>><br />
>>
------------------------------------------------------------------------<br />
>><br />
>>
-------------------------------------------------------------------------<br />
>> Check out the new SourceForge.net Marketplace.<br />
>> It's the best place to buy or sell services for<br />
>> just about anything Open Source.<br />
>> <a target="_blank"
href="http://sourceforge.net/services/buy/index.php">http://sourceforge.net/services/buy/index.php</a><br
/>
>><br />
>><br />
>>
------------------------------------------------------------------------<br />
>><br />
>> _______________________________________________<br />
>> Nagios-users mailing list<br />
>> Nagios-users@lists.sourceforge.net<br />
>> <a target="_blank"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br
/>
>> ::: Please include Nagios version, plugin version (-v) and OS when <br
/>
>> reporting any issue. ::: Messages without supporting info will risk <br
/>
>> being sent to /dev/null<br />
><br />
><br />
><br />
<br />
<br />