Re: problem with submit_check_result
Eddie Bindt <[email protected]> Thu, 12 Dec 2002 07:49:29 +0100 (CET)
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 12 Dec 2002, Stanley Hopcroft wrote: > The difference may be that I am not using NCSA: my snmptrapd and > Nag/Netsaint are on the same (single monitor) host. No, same here, snmptrapd and netsaint are on the same machine > Are you using distributed monitoring ? No snmptrapd works fine, the "handle-trap" script is executed for each trap I receive (I added a line to write to a log file)... This looks to me to the "submit_check_result" script. This is also executed on each trap I receive. > # get the current date/time in seconds since UNIX epoch > datetime=`date +%s` > > # create the command line to add to the command file > cmdline="[$datetime] > PROCESS_SERVICE_CHECK_RESULT;$hostname;$service_desc;$state;$output" > > # append the command to the end of the command file > `$echocmd $cmdline >> $CommandFile` (I added a line to this script to write logging too...) Now comes the problem : I see anly a few of the external commands coming trhu "submit_check_result" getting into netsaint. I miss a lot of passive results. I know that I only see service states every minute, because of the refresh rate of the web interface. But there is NO sign of the passive results in the netsaint.log either ... The passive results are actually coming from MRTG threhold checking. MRTG runs every 5 minutes and on threshold breaching it executes a script that runs netsaint's "submit_check_result" So, every 5 minutes there is a passive result for a defined service ... Yesterday, during the day, only 4 of the passive results reached the netsaint.log ... Any suggestions how to debug ? (oh yeah, (reminder) passive results submitted from the webinterface work fine) > Mainly this is taken from the Nag/Netsaint docs for Integrating Net-SNMP > with Netsaint/Nagios and the Net-SNMP docco. Yes, nice doco, good point to start with ... > If you have a distributed set up (ie more than one Netsaint host) then > its harder to debug > > Please post again if this is the case. > > Yours sincerely. Eddie ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/