Re: [jffnms-users] New poller problem

2004-09-07 Thread Javier Szyszlican
Pierre, Well, we 'implemented' that in PHP inside JFFNMS. So JFFNMS does the HTTP GET to apache, parses that return info and feeds the graphs. Javier Pierre-Damien Gatouillat wrote: I'm sorry, but I have no dev installation of jff to try it, maybe I try it on this week-end. The script I use is al

Re: [jffnms-users] New poller problem

2004-09-07 Thread Pierre-Damien Gatouillat
I'm sorry, but I have no dev installation of jff to try it, maybe I try it on this week-end. The script I use is also based on the /server-status? URL (used with MRTG) #!/usr/bin/perl # depends on availability of status and extended status info from your # Apache webserver -- your httpd.conf need

Re: [jffnms-users] New poller problem

2004-09-07 Thread Javier Szyszlican
Hi Pierre, Yes, this seems to be a bug/feature of ucd-snmp maybe net-snmp too. I use "pass" instead of exec that allows me to specify the type, but its more complex. And for the Apache Hits, we made an interface type for it, its on todays nightly, and it will be included in 0.7.9. This uses the

Re: [jffnms-users] New poller problem

2004-09-07 Thread Pierre-Damien Gatouillat
Hi, My shell script is : #!/bin/bash DATE=`date +%Y%m%d` LOG_TEMP="/tmp/log.imss" grep "Final action" /usr/local/trend/imss/log/log.imss.$DATE* > $LOG_TEMP TOTAL=`wc -l $LOG_TEMP | awk {'print $1'}` DELETE=`grep Delete $LOG_TEMP | wc -l` QUARANTINE=`grep Quarantine $LOG_TEMP | wc -l` echo $TOTAL ec

Re: [jffnms-users] New Poller Problem

2004-09-02 Thread Javier Szyszlican
Hi Pierre, Everything is fine. Except that the return value is a string, and it has to be a number. You don't see it in the RRD line because its not a number. So, you have 3 options. - Modify the stat_mail.sh to return an INTEGER without the " " - Create a poller to get this OID and convert it to

[jffnms-users] New Poller Problem

2004-09-02 Thread Pierre-Damien Gatouillat
Hello everybody, I have had a new poller item like that : ID Description Name (Match RRD Struct DS) Poller Command (file) Parameters 10001 Mail Accounting Total mail_delete snmp_counter .1.3.6.1.4.1.2021.51.101.1 The OID is a private one and exec un shell script via