Hi All,
Thanks for u r help..
Now i am able to monitor all the systems performance. and reports.,
I Installed in new system . proble is
1) PHP. - I installed php-5.0.4-Win32
2) RRD toold : - rrdtool-1.0.48.win32-perl58-distr
This is really good.
I will getback to u if i got any problems ..
Thanks a lot ..
Ravi
[EMAIL PROTECTED] wrote:
Send jffnms-users mailing list submissions to
jffnms-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/jffnms-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of jffnms-users digest..."
Today's Topics:
1. Re: Incorrect Log File Names (Javier Szyszlican)
2. Re: New Action Question (Javier Szyszlican)
3. Re: Please help me .. RRD Tool error (Brian)
4. Re: Please help me .. RRD Tool error (Javier Szyszlican)
5. Re: Please help me .. RRD Tool error (Brian)
--__--__--
Message: 1
Date: We d, 28 Sep 2005 18:41:11 -0300
From: Javier Szyszlican <[EMAIL PROTECTED]>
Organization: JFFNMS
CC: jffnms-users@lists.sourceforge.net
Subject: Re: [jffnms-users] Incorrect Log File Names
This is a known problem.
I'll try to find a fix (I think one has already been proposed on the list
sometime ago) in the next version.
The issue is in api.inc.php logger() function.
Javier
Tim Carr wrote:
> Has anyone run into a problem where, when you turn on logging, the log
> file name(s) are not working properly? The format I'm getting has all
> logging activity going into one file like "-2004-09-27.log". This makes
> it hard to use as any system actions look at the "-2" as a command line
> switch, rather than the file name.
>
> I'm running on a Fedora Core 3 system. I didn't have this problem on
> FC4 (but did have too many other problems to stay on FC4).
>
> Thanks,
> Ti m Carr
> Buchanan Associates
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate
--__--__--
Message: 2
Date: Wed, 28 Sep 2005 18:42:42 -0300
From: Javier Szyszlican <[EMAIL PROTECTED]>
Organization: JFFNMS
CC: jffnms-users@lists.sourceforge.net
Subject: Re: [jffnms-users] New Action Question
You should define a new action called Make a Ticket and assign it the function
makeaticket so it will work.
Then you have to use that Action in the trigger.
Send email is configured as the email function.
Javier
Tim Carr wrote:
> It doesn't look like any trigger actions are being matched (even though
> it shows alarms going off) as I can't find any instances of a "T 2" in
> the log file, and the only trigger I ha ve in my JFFNMS configuration is
> the default trigger, which is #2.
>
> I've not changed the trigger setup from the default installation
> configuration:
>
> ID = 2
> Position = 10
> Field = Type
> Operator = Not In
> Value = SLA and Administrative
> Action = "" Mail
> Parameter (From) = blank
> Parameter (Subject) =
>
> Parameter (Comment) = Default Trigger
> If Match = Continue, And
>
> I'm assuming this trigger should be matched if I unplug a machine that
> JFF is monitoring, and JFF sees that it is down, goes red, generates an
> event, etc?
>
>
> Thanks,
> Tim Carr
> Buchanan Associates
>
> ------------------------------------------------------------------------
> *From:* [EMAIL PROTECTED] on behalf of Javier
> Szyszlican
> *Sent:* Tue 9/27/2005 4:08 PM
> *Cc:* jffnms-users@lists.sourceforge.net
> *Subject:* Re: [jffnms-users] New Action Question
>
> You should enable debugging/logging in setup.php and check the
> logs/trigger.log
> file to see if the trigger you created is being matched.
>
> Javier
>
> Tim Carr wrote:
> > OK, back from vacation and trying to get this up and running again. I'm
> > trying to get JFF to execute a script if something happens. I've
> > modified the "email.inc.php" to "makeaticket.inc.php" (see below for the
> > script) to just try to create a file so I can see what parameters are
> > passed in what variables.
> >
> > The steps I followed, from a default JFFNMS install (which will fire off
> > the email action when something happens, right?), w ere to:
> > - Go to the "Actions Definition" menu.
> > - For the "Send Mail" action, I changed the command to be "makeaticket"
> > from "email".
> >
> > JFF will show that a system goes down in the event log, but it doesn't
> > create my file, so I'm guessing the action isn't happening (or my script
> > is screwed up somehow). Any thoughts here?
> >
> > The script I'm using is:
> >
> >
> > function action_makeaticket ($data) {
> > extract($data);
> > //debug ($data);
> > $from = $parameters[from];
> > $to = $parameters[to];
> > $subject = $parameters[subject];
> > $short = (isset($parameters["short"])?true:false);
> > if (!$short) $content[hello] = "Hello ".$user[fullname].":\n";
> >
> > if (!$short) $signature =
> >
> "---------------------------------------------------------------------\nJFFNMS
> > - Just for Fun Network Management System\n";
> > if (is_array($alarm)) {
> > $content[alarm]= "Alarm Time:\t".$alarm[date_start];
> >
> > if ($alarm[alarm_state]==ALARM_UP)
> > $content[alarm] .= " To ".$alarm[date_stop];
> >
> > $content[alarm] .= "\n".
> > "Alarm Type:\t".$alarm[type_description]." ".
> > $alarm[state_description]." ".
> > ($short?"":"\n");
> > }
> >
> > if (is_array($interface))
> > $content["interface"]= "Interface:\t".
> > $interface[type_descripton]." ".
> > $interface[host_name]." ".
> > $interface[zone_shortname]." ".
> > $interface["interface"]." ".
> > $interface[client_name]." ".
> > $interface[description]." ".
> > "\n";
> > if (is_array($event) && !$ short) //FIXME
> > foreach ($event as $key=>$event)
> > $content["event-$key"]= "Event:\t".
> > $event[date]." ".
> > $event[type]." ".
> > $event[host_name]." ".
> > $event[zone]."\n".
> > "Event:\t".events_replace_vars($event,$event[text])." ".
> > "\n";
> >
> > $all_content = join($content,"\n");
> >
> > if ($parameters[comment] && !$short)
> > $all_content .= "\nComment: ".$parameters[comment]."\n";
> >
> >
> > $body = "$all_content \n$signature";
> >
> > if ($short) $body = str_replace("\t"," ",$body);
> >
> > $file = "./testoutput.txt";
> > $testdata = "event-date = $event[date]\n".
> > "event-type = $event[type]\n".
> > "event-host_name = $event[host_name]\n".
> > "event-text = $event[text]\n".
> > "alarm-date_start = $alarm[date_start]\n".
> > "alarm-type_description = $alarm[type_description]\n".
> > "alarm-state_description = $alarm[$state_description]\n".
> > "interface-type_description = $interface[type_descripton]\n".
> > "interface-host_name = $interface[host_name]\n".
> > "interface-interface = $interface[interface]\n".
> > "interface-description = $interface[description]\n";
> >
> > $fp = fopen ("$file", "wb");
> > fwrite ($fp, $testdata);
> > fclose ($fp);
> >
> > return $result;
> > }
> > ?>
> >
> > Thanks,
> > Tim Carr
> > Buchanan Associates
> >
> > ------------------------------------------------------------------------
> > *From:* [EMAIL PROTECTED] on behalf of Craig Small
> > *Sent:* Mon 9/12/2005 5:24 PM
> > *To:* jffnms-users@lists.sourceforge.net
> > *Subject:* Re: [jffnms-users] New Action Question
> >
> > On Mon, Sep 12, 2005 at 02:38:58PM -0500, Tim Carr wrote:
> > > - I've not had any PHP experience. Does anyone have an example php
> > > script that would do something like that?
> > Look at the email.inc.php Instead of the mail command you could
> > use exec()
> >
> > > - I'm having trouble understanding how the existing PHP action
> scripts
> > > (i.e., email.inc.php) are getting their information about what is
> down.
> > > Is there some sort of documentation about that?
> > Hmm, that section needs some work!
> > Time to fire up vim.
> >
> > Javier evilly uses extract() in that example.
> >
> > The action function gets one parameter, which is an array of
> > arrays. The arrays are:
> > $data['parameters'] = an array of the user and action parameters,
> > defined in the gui
> > $data['alarm'] = the usual alarm values
> > $data['interface'] = the usual interface vaues
> >
> > See
> > http://www.jffnms.org/docs/expanding.html#sec:commonparms
> > for that those values are.
> >
> > >
> > > Thanks,
> > > Tim Carr
> > > Buchanan Associates
> > >
> >
> > --
> > Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
> > Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer
> > csmall at : enc.com.au ieee.org debian.org
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecy cle
> Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > jffnms-users mailing list
> > jffnms-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jffnms-users
> >
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Javier Szyszlican, Project Leader, JFFNMS
> [EMAIL PROTECTED]
>
> I hope JFFNMS or I were helpful to you, if you
> can, please donate at http://jffnms.org/donate
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> jffnms-users mailing list
> jffnms-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate
--__--__--
Message: 3
Date: Wed, 28 Sep 2005 20:47:03 -0400
From: Brian <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Javier Szyszlican <[EMAIL PROTECTED]>
CC: jffnms-users@lists.sourceforge.net
Subject: Re: [jffnms-users] Please help me .. RRD Tool error
Is there a way to test RRDTool to see if it is working?
I removed 1.2.x and downgraded to 1.0.x, but still have the same errors
as Ravi too.
Can I run the job that creates the RRD files manually or even run
something simple just to verify my RRDTool install is ok?
Thanks.
Javier Szyszlican wrote:
> If you are using RRDTool 1.2.x please downgrade to 1.0.x.
> And Read the ARCHIVES before asking.
>
> If you are not, check your crontab or scheduled tasks.
>
> Javier
>
> Ravi wrote:
>
>> Hi all I am getting this below error.
>>
>> How can i view my System Performance.???
>>
>> The RRDTool files for Interface ID 24 (from Host ID 4), has not been
>> created by the Poller Process yet
>>
>>
>> Thanks in advance
>>
>> Ravi
>
>
--__--__--
Message: 4
Date: Wed, 28 Sep 2005 21:52:10 -0300
From: Javier Szyszlican <[EMAIL PROTECTED]>
Organization: JFFNMS
CC: jffnms-users@lists.sourceforge.net
Subject: Re: [jffnms-users] Please help me .. RRD Tool error
First, does this happen on all the interfaces?
Second, do you have any files in /opt/jffnms/rrd?
Third, are you sure your crontab (or scheduled tasks are running)?
Javier
Brian wrote:
> Is there a way to test RRDTool to see if it is working?
>
> I removed 1.2.x and downgraded to 1.0.x, but still have the same errors
> as Ravi too.
>
> Can I run the job that creates the RRD files manually or even run
> something simple just to verify my RRDTool install is ok?
>
> Thanks.
>
> Javier Szyszlican wrote:
>
>> If you are using RRDTool 1.2.x please downgrade to 1.0.x.
>> And Read the ARCHIVES before asking.
>>
>> If you are not, check your crontab or scheduled tasks.
>>
>> Javier
>>
>> Ravi wrote:
>>
>>> Hi all I am getting this below error.
>>>
>>> How can i view my System Performance.???
>>>
>>> The RRDTool files for Interface ID 24 (from Host ID 4), has not been
>>> created by the Poller Process yet
>>>
>>>
>>> Thanks in advance
>>>
>>> Ravi
>>
>>
>>
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate
--__--__--
Message: 5
Date: Wed, 28 Sep 2005 22:21:02 -0400
From: Brian <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Javier Szyszlican <[EMAIL PROTECTED]>,
jffnms-users@lists.sourceforge.net
Subject: Re: [jffnms-users] Please help me .. RRD Tool error
Javier Szyszlican wrote:
> First, does this happen on all the interfaces?
Yes. All interfaces repo rt no RRDTool info.
>
> Second, do you have any files in /opt/jffnms/rrd?
Yes, but all created on 9/21 at a few different times. I am thinking
maybe I was doing some testing or something.
>
> Third, are you sure your crontab (or scheduled tasks are running)?
I am not sure on this one, but I am thinking they are not based on the
date/times on my rrd files from question #2. How can I verify that?
Thank you again for your help.
>
> Javier
>
> Brian wrote:
>
>> Is there a way to test RRDTool to see if it is working?
>>
>> I removed 1.2.x and downgraded to 1.0.x, but still have the same
>> errors as Ravi too.
>>
>> Can I run the job that creates the RRD files manually or even run
>> something simple just to verify my RRDTool install is ok?
>>
>> Thanks.
>>
>> Javier Szyszlican wrote:
>>
>>> If you are using RRDTool 1.2.x please downgrade to 1.0.x.
>>> And Read the ARCHIVES before asking.
>>>
>>> If you are not, check your crontab or scheduled tasks.
>>>
>>> Javier
>>>
>>> Ravi wrote:
>>>
>>>> Hi all I am getting this below error.
>>>>
>>>> How can i view my System Performance.???
>>>>
>>>> The RRDTool files for Interface ID 24 (from Host ID 4), has not been
>>>> created by the Poller Process yet
>>>>
>>>>
>>>> Thanks in advance
>>>>
>>>> Ravi
>>>
>>>
>>>
>>>
>>
>
--__--__--
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users
End of jffnms-users Digest
Yahoo! India Matrimony: Find your partner now.